<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"> <br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div style="font-size:small"></div><div style="font-size:small">A simple way to verify my assumption, you can try:</div><div style="font-size:small"><br></div>--- a/testcases/kernel/syscalls/fallocate/fallocate05.c<br>+++ b/testcases/kernel/syscalls/fallocate/fallocate05.c<br>@@ -147,7 +147,7 @@ static void cleanup(void)<br> static struct tst_test test = {<br>        .needs_root = 1,<br>        .mount_device = 1,<br>-       .dev_min_size = 512,<br>+       .dev_min_size = 64,<br>        .mntpoint = MNTPOINT,<br>        .all_filesystems = 1,<br>        .setup = setup,<br></div></div></blockquote><div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">Or, another way I can think of, is to cancel the tmpfs size limitation</div><div class="gmail_default" style="font-size:small">when MemFree is less than the twofold size to be mounted.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">(I guess guarantee twofold size MemFree is safe enough for avoiding OOM)</div><br></div><div><br></div><div class="gmail_default" style="font-size:small">--- a/lib/tst_test.c</div>+++ b/lib/tst_test.c<br>@@ -895,6 +895,9 @@ static const char *limit_tmpfs_mount_size(const char *mnt_data,<br>        if (strcmp(fs_type, "tmpfs"))<br>                return mnt_data;<br> <br>+       if ((SAFE_READ_MEMINFO("MemFree:") / 1024) < (tdev.size * 2))<br>+               return mnt_data;<br>+<br>        if (mnt_data)<br>                snprintf(buf, buf_size, "%s,size=%luM", mnt_data, tdev.size);<br>        else<br><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>