<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">LTP mount and make use of the whole tmpfs of the test system,</div><div class="gmail_default" style="font-size:small">generally, it's fine. But if a test (e.g fallocate06) try to fill full in the</div><div class="gmail_default" style="font-size:small">filesystem, it takes too long to complete testing on a large memory</div><div class="gmail_default" style="font-size:small">system.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm thinking whether we should limit the mount tmpfs size for the</div><div class="gmail_default" style="font-size:small">LTP test, maybe only give 512MB?  but the tricky part for me is to</div><div class="gmail_default" style="font-size:small">add options like "-o size=512M" to prepare_device(), or do some</div><div class="gmail_default" style="font-size:small">additional work for tmpfs mounting.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">and any else way can speed up is also welcome. I'd like to hear</div><div class="gmail_default" style="font-size:small">more advice. Thanks!</div><div><br></div><br>   120 tst_test.c:1379: TINFO: Testing on tmpfs<br>   121 tst_test.c:889: TINFO: Skipping mkfs for TMPFS filesystem<br>   122 tst_test.c:1313: TINFO: Timeout per run is 0h 05m 00s<br>   123 fallocate06.c:126: TINFO: Copy-on-write is not supported<br>   124 fallocate06.c:177: TINFO: Case 1. Fill FS: no; Use copy on write: no<br>   125 fallocate06.c:166: TPASS: write() successful<br>   126 fallocate06.c:210: TPASS: Misaligned allocation works as expected<br>   127 fallocate06.c:166: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) successful<br>   128 fallocate06.c:246: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) cleared the correct file range<br>   129 fallocate06.c:177: TINFO: Case 2. Fill FS: yes; Use copy on write: no<br>   130 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file0 size 21710183<br>   131 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file1 size 8070086<br>   132 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2 size 3971177<br>   133 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file3 size 36915315<br>   134 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file4 size 70310993<br>   135 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file5 size 4807935<br>   136 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file6 size 90739786<br>   137 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file7 size 76896492<br>   ...<br> <span class="gmail_default" style="font-size:small"> </span> 2382 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2252 size 57793556<br><span class="gmail_default" style="font-size:small"> </span>  2383 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2253 size 44128200<br> <span class="gmail_default" style="font-size:small"> </span> 2384 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2254 size 31600129<br>  <span class="gmail_default" style="font-size:small"> </span>2385 tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2255 size 1865251<span class="gmail_default" style="font-size:small">   <------- create too many files </span><br>  <span class="gmail_default" style="font-size:small"> </span>2386 tst_fill_fs.c:59: TINFO: write(): ENOSPC (28)<br>  <span class="gmail_default" style="font-size:small"> </span>2387 fallocate06.c:166: TPASS: write() successful<br>  <span class="gmail_default" style="font-size:small"> </span>2388 fallocate06.c:210: TPASS: Misaligned allocation works as expected<br>  <span class="gmail_default" style="font-size:small"> </span>2389 fallocate06.c:166: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) successful<br>  <span class="gmail_default" style="font-size:small"> </span>2390 fallocate06.c:246: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) cleared the correct file range<br>  <span class="gmail_default" style="font-size:small"> </span>2391 Test timeouted, sending SIGKILL!<span class="gmail_default" style="font-size:small">    <------- looks like takes too much time on purge dirs</span><br><div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small"># df -Th | grep tmpfs</div>Filesystem                             Type      Size  Used Avail Use% Mounted on<br>devtmpfs                               devtmpfs  126G     0  126G   0% /dev<br>tmpfs                                  tmpfs     126G  4.0K  126G   1% /dev/shm<br>tmpfs                                  tmpfs     126G   18M  126G   1% /run<br>tmpfs                                  tmpfs     126G     0  126G   0% /sys/fs/cgroup<br>/dev/loop0                             tmpfs     126G   23G  104G  18% /tmp/falywSTkc/mntpoint<br><div class="gmail_default" style="font-size:small"></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>