[LTP] [RFC PATCH] fallocate05: increase the fallocate and defallocate size
Li Wang
liwang@redhat.com
Fri Sep 24 06:27:54 CEST 2021
On Thu, Sep 23, 2021 at 9:09 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> > Or, another way I can think of, is to cancel the tmpfs size limitation
> > when MemFree is less than the twofold size to be mounted.
>
> This would fail horribly if the machine has all RAM used but there is
> plenty in buffers that should be freed.
>
> I guess that we should really add tst_available_ram() function that
> would print either MemAvailable or sum of MemFree + MemCached. And of
> course we shouldn't eat more than half of that in the tests.
>
Agreed. I would like to put into tst_memutils.h.
>
> > --- a/lib/tst_test.c
> > +++ b/lib/tst_test.c
> > @@ -895,6 +895,9 @@ static const char *limit_tmpfs_mount_size(const char
> > *mnt_data,
> > if (strcmp(fs_type, "tmpfs"))
> > return mnt_data;
> >
> > + if ((SAFE_READ_MEMINFO("MemFree:") / 1024) < (tdev.size * 2))
> > + return mnt_data;
>
> I guess that we should as well skip the tmpfs completely if we think
> that the size is too small as well.
>
Just canceling the tmpfs size should work so far, since Ralph said
he got PASS on 20210524-version, which does not include the size
limitation.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210924/59aa6732/attachment.htm>
More information about the ltp
mailing list