* [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB
@ 2024-01-23 16:05 Martin Doucha
2024-01-23 17:22 ` Petr Vorel
2024-01-25 14:10 ` Cyril Hrubis
0 siblings, 2 replies; 5+ messages in thread
From: Martin Doucha @ 2024-01-23 16:05 UTC (permalink / raw)
To: ltp
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.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
Tested on affected SLE beta kernel.
testcases/kernel/syscalls/fallocate/fallocate06.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/fallocate/fallocate06.c b/testcases/kernel/syscalls/fallocate/fallocate06.c
index 124fb7eae..83b4d88e6 100644
--- a/testcases/kernel/syscalls/fallocate/fallocate06.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate06.c
@@ -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,
--
2.42.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB
2024-01-23 16:05 [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB Martin Doucha
@ 2024-01-23 17:22 ` Petr Vorel
2024-01-25 14:10 ` Cyril Hrubis
1 sibling, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2024-01-23 17:22 UTC (permalink / raw)
To: Martin Doucha; +Cc: ltp
Hi Martin,
> 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.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB
2024-01-23 16:05 [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB Martin Doucha
2024-01-23 17:22 ` Petr Vorel
@ 2024-01-25 14:10 ` Cyril Hrubis
2024-01-25 14:12 ` Martin Doucha
1 sibling, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2024-01-25 14:10 UTC (permalink / raw)
To: Martin Doucha; +Cc: ltp
Hi!
> diff --git a/testcases/kernel/syscalls/fallocate/fallocate06.c b/testcases/kernel/syscalls/fallocate/fallocate06.c
> index 124fb7eae..83b4d88e6 100644
> --- a/testcases/kernel/syscalls/fallocate/fallocate06.c
> +++ b/testcases/kernel/syscalls/fallocate/fallocate06.c
> @@ -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.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB
2024-01-25 14:10 ` Cyril Hrubis
@ 2024-01-25 14:12 ` Martin Doucha
2024-01-25 14:18 ` Cyril Hrubis
0 siblings, 1 reply; 5+ messages in thread
From: Martin Doucha @ 2024-01-25 14:12 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
On 25. 01. 24 15:10, Cyril Hrubis wrote:
> Hi!
>> diff --git a/testcases/kernel/syscalls/fallocate/fallocate06.c b/testcases/kernel/syscalls/fallocate/fallocate06.c
>> index 124fb7eae..83b4d88e6 100644
>> --- a/testcases/kernel/syscalls/fallocate/fallocate06.c
>> +++ b/testcases/kernel/syscalls/fallocate/fallocate06.c
>> @@ -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.
OK, let's add that just in case. Should I resubmit?
--
Martin Doucha mdoucha@suse.cz
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB
2024-01-25 14:12 ` Martin Doucha
@ 2024-01-25 14:18 ` Cyril Hrubis
0 siblings, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2024-01-25 14:18 UTC (permalink / raw)
To: Martin Doucha; +Cc: ltp
Hi!
> OK, let's add that just in case. Should I resubmit?
No need, I will add that and push, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-25 14:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23 16:05 [LTP] [PATCH] fallocate06: Increase test loop device size to 1GB Martin Doucha
2024-01-23 17:22 ` Petr Vorel
2024-01-25 14:10 ` Cyril Hrubis
2024-01-25 14:12 ` Martin Doucha
2024-01-25 14:18 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox