[LTP] [RFC PATCH] fallocate05: increase the fallocate and defallocate size
Li Wang
liwang@redhat.com
Sun Sep 26 09:40:54 CEST 2021
> 5) Apply Li's patchset (with v2 of the 3rd patch)
>> Exactly the same behaviour as 4)
>> --> FAIL
>>
>
> Can you post the test log for this 5), it shouldn't be similar like 4)
> because we limit tmfs-size to 32MB in this case. and If you didn't remove
> .dev_min_size=512, it should be skip tmpfs test on your 153MB MemAva
> machine.
>
> With remove .dev_min_size=512 from fallocate05 in situation 5).
> If it is still OOM with 32MB tmpfs-size, I tend to agree with Cyril that is
> very likely you hit a kernel problem or configure issue.
>
FYI, for quick test and show tmpfs mount info, you could add debug code:
--- a/testcases/kernel/syscalls/fallocate/fallocate05.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate05.c
@@ -50,6 +50,8 @@ static void setup(void)
bufsize = FALLOCATE_BLOCKS * blocksize;
buf = SAFE_MALLOC(bufsize);
SAFE_CLOSE(fd);
+
+ tst_system("mount | column -t |grep tmpfs");
}
static void run(void)
@@ -153,4 +155,14 @@ static struct tst_test test = {
.setup = setup,
.cleanup = cleanup,
.test_all = run,
+ .skip_filesystems = (const char *const []) {
+ "ext2",
+ "ext3",
+ "ext4",
+ "nfs",
+ "xfs",
+ "ntfs",
+ "btrfs",
+ NULL
+ },
};
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210926/399fa5d4/attachment-0001.htm>
More information about the ltp
mailing list