Skip to contentSkip to conversation

fallocate06: Increase test loop device size to 1GB

PATCH In review Martin Doucha 3 participants 5 messages Jan 23, 2024 – Jan 25, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fallocate06: Increase test loop device size to 1GB

Btrfs on newer kernels may have issues with running out of space for metadata in the fill FS+CoW subtest if the test device is too small. Increase minimal device size to avoid the corner case.

---

Tested on affected SLE beta kernel.

 testcases/kernel/syscalls/fallocate/fallocate06.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/fallocate/fallocate06.c +1 -0
index 124fb7eae..83b4d88e6 100644
@@ -260,6 +260,7 @@ static struct tst_test test = {
 	.test = run,
 	.tcnt = ARRAY_SIZE(testcase_list),
 	.needs_root = 1,
+	.dev_min_size = 1024,
 	.mount_device = 1,
 	.mntpoint = MNTPOINT,
 	.all_filesystems = 1,
Signature · 5 lines
2.42.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi Martin,

Quoted 3 lines

Btrfs on newer kernels may have issues with running out of space for metadata in the fill FS+CoW subtest if the test device is too small. Increase minimal device size to avoid the corner case.

I hope it's not a btrfs bug :).

Given you tested 512 MB and it still failed on Btrfs I agree with 1GB.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw
In reply to Martin Doucha

Hi!

testcases/kernel/syscalls/fallocate/fallocate06.c static struct tst_test test = { · line 266

Quoted 12 lines
testcases/kernel/syscalls/fallocate/fallocate06.c +1 -0
index 124fb7eae..83b4d88e6 100644
@@ -260,6 +260,7 @@ static struct tst_test test = {
 	.test = run,
 	.tcnt = ARRAY_SIZE(testcase_list),
 	.needs_root = 1,
+	.dev_min_size = 1024,
 	.mount_device = 1,
 	.mntpoint = MNTPOINT,
 	.all_filesystems = 1,

Don't we need to add at least .max_runtime = 120 here as well?

Looks like I'm getting quite close to the default 30s timeout on a machine with a old good rotating harddisc. I did measure between 10 and 20s for the case that we fill the 1GB filesystem.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw
Quoted 16 lines · Cyril Hrubis

Hi!

testcases/kernel/syscalls/fallocate/fallocate06.c static struct tst_test test = { · line 266

Quoted 12 lines
testcases/kernel/syscalls/fallocate/fallocate06.c +1 -0
index 124fb7eae..83b4d88e6 100644
@@ -260,6 +260,7 @@ static struct tst_test test = {
  	.test = run,
  	.tcnt = ARRAY_SIZE(testcase_list),
  	.needs_root = 1,
+	.dev_min_size = 1024,
  	.mount_device = 1,
  	.mntpoint = MNTPOINT,
  	.all_filesystems = 1,

Don't we need to add at least .max_runtime = 120 here as well?

Quoted 3 lines

Looks like I'm getting quite close to the default 30s timeout on a machine with a old good rotating harddisc. I did measure between 10 and 20s for the case that we fill the 1GB filesystem.

OK, let's add that just in case. Should I resubmit?

Signature · 11 lines
Martin Doucha   [email protected]
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw

Hi!

Quoted 1 line

OK, let's add that just in case. Should I resubmit?

No need, I will add that and push, thanks.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp