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

Cyril Hrubis chrubis@suse.cz
Thu Sep 23 15:10:53 CEST 2021


Hi!
> > I do not think that it's a good idea to pass ~100MB buffer to a single
> > write()
> > and expect it to succeed anyways.
> >
> 
> I suddenly realized that it is 1MB buffer but not 100MB, so that block
> number
> is not the key point for OOM.
> 
> 1 Block == 4k on x86_64,
> 256 * 4k == 1024kB == 1MB

Uff my bad. Indeed the problem is the tmpfs that have been added to the
list of filesystems to test recently.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list