[LTP] [RFC PATCH] fallocate05: increase the fallocate and defallocate size

Cyril Hrubis chrubis@suse.cz
Fri Sep 24 20:26:00 CEST 2021


Hi!
> >That's weird.
> >
> >What about the testing result with unlimit the tmpfs size?
> 
> With the .dev_min_size field set to zero, it still causes OOM. Looking 
> at the test output, it seems to use 256MB in this case:
> 
> tst_test.c:1421: TINFO: Testing on tmpfs
> tst_test.c:922: TINFO: Skipping mkfs for TMPFS filesystem
> tst_test.c:903: TINFO: Limiting tmpfs size to 256MB
> tst_test.c:1353: TINFO: Timeout per run is 0h 15m 00s
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file0 size 21710183
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file1 size 8070086
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2 size 3971177
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file3 size 36915315
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file4 size 70310993
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file5 size 4807935
> tst_fill_fs.c:32: TINFO: Creating file mntpoint/file6 size 90739786
> tcf-agent invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
> [...]
> Mem-Info:
> active_anon:229 inactive_anon:44809 isolated_anon:0
>   active_file:7 inactive_file:4 isolated_file:0
>   unevictable:0 dirty:0 writeback:0
>   slab_reclaimable:1205 slab_unreclaimable:3757
>   mapped:334 shmem:42064 pagetables:226 bounce:0
>   free:1004 free_pcp:0 free_cma:0
> Node 0 active_anon:916kB inactive_anon:179236kB active_file:28kB inactive_file:88kB unevictable:0kB isolated(anon):0kB isolated(file) :0kB mapped:1336kB dirty:0kB writeback:0kB shmem:168256kB writeback_tmp:0kB kernel_stack:1016kB all_unreclaimable? no
> Normal free:3776kB min:1872kB low:2340kB high:2808kB 
> reserved_highatomic:0KB active_anon:916kB inactive_anon:179236kB active_file:28k B inactive_file:16kB unevictable:0kB writepending:0kB present:262144kB managed:220688kB mlocked:0kB pagetables:904kB bounce:0kB free_pcp:224kB local_pcp:0kB free_cma:0kB
> lowmem_reserve[]: 0 0 0
> Normal: 1*4kB (M) 1*8kB (M) 22*16kB (U) 35*32kB (UE) 16*64kB (UE) 9*128kB (UE) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0* 16384kB = 3660kB
> 42138 total pagecache pages

That is strange, for me the tmpfs starts to return ENOSPC when the
system is getting low on memory.

> >> tst_test.c:903: TINFO: Limiting tmpfs size to 64MB
> >
> >Hmm, set to 16MB, 32MB? test result?
> 
> It does not reach the tmpfs test, because btrfs is unhappy:
> 
> tst_test.c:922: TINFO: Formatting /dev/loop0 with btrfs opts='' extra opts=''
> ERROR: '/dev/loop0' is too small to make a usable filesystem
> ERROR: minimum size for each btrfs device is 47185920
> tst_test.c:922: TBROK: mkfs.btrfs failed with exit code 1
> 
> With a size of 48MB, machine still crashes with OOM.

Uff that really sounds like something is wrong with tmpfs implementation
in your kernel.

Meanwhile Li posted another patchset that adds limits for tmpfs
filesystem only and limits it to 32MB. Can you please test that one?
Also if that one fails as well it's likely that something is wrong at
your side.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list