Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout
@ 2021-02-25 14:09 Martin Doucha
  2021-02-25 18:45 ` Petr Vorel
  2021-02-26  8:00 ` Richard Palethorpe
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Doucha @ 2021-02-25 14:09 UTC (permalink / raw)
  To: ltp

Writev03 is fairly slow and tests multiple filesystems, each getting another
round of timeout. Reduce fuzzy sync time limit to 25% of standard timeout
to make the test finish slightly faster.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/kernel/syscalls/writev/writev03.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/writev/writev03.c b/testcases/kernel/syscalls/writev/writev03.c
index 4dc55c191..6514404e6 100644
--- a/testcases/kernel/syscalls/writev/writev03.c
+++ b/testcases/kernel/syscalls/writev/writev03.c
@@ -49,6 +49,7 @@ static void setup(void)
 	mapfd = SAFE_OPEN(MAPFILE, O_CREAT|O_RDWR|O_TRUNC, 0644);
 	SAFE_WRITE(1, mapfd, buf, BUF_SIZE);
 
+	fzsync_pair.exec_time_p = 0.25;
 	tst_fzsync_pair_init(&fzsync_pair);
 }
 
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout
  2021-02-25 14:09 [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout Martin Doucha
@ 2021-02-25 18:45 ` Petr Vorel
  2021-02-26  8:00 ` Richard Palethorpe
  1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2021-02-25 18:45 UTC (permalink / raw)
  To: ltp

Hi Martin,

> Writev03 is fairly slow and tests multiple filesystems, each getting another
> round of timeout. Reduce fuzzy sync time limit to 25% of standard timeout
> to make the test finish slightly faster.

> Signed-off-by: Martin Doucha <mdoucha@suse.cz>

LGTM
Reviewed-by: Petr Vorel <pvorel@suse.cz>
> ---
>  testcases/kernel/syscalls/writev/writev03.c | 1 +
>  1 file changed, 1 insertion(+)

> diff --git a/testcases/kernel/syscalls/writev/writev03.c b/testcases/kernel/syscalls/writev/writev03.c
> index 4dc55c191..6514404e6 100644
> --- a/testcases/kernel/syscalls/writev/writev03.c
> +++ b/testcases/kernel/syscalls/writev/writev03.c
> @@ -49,6 +49,7 @@ static void setup(void)
>  	mapfd = SAFE_OPEN(MAPFILE, O_CREAT|O_RDWR|O_TRUNC, 0644);
>  	SAFE_WRITE(1, mapfd, buf, BUF_SIZE);

> +	fzsync_pair.exec_time_p = 0.25;
>  	tst_fzsync_pair_init(&fzsync_pair);
>  }

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout
  2021-02-25 14:09 [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout Martin Doucha
  2021-02-25 18:45 ` Petr Vorel
@ 2021-02-26  8:00 ` Richard Palethorpe
  2021-03-01  7:25   ` Li Wang
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Palethorpe @ 2021-02-26  8:00 UTC (permalink / raw)
  To: ltp

Hello,

Martin Doucha <mdoucha@suse.cz> writes:

> Writev03 is fairly slow and tests multiple filesystems, each getting another
> round of timeout. Reduce fuzzy sync time limit to 25% of standard timeout
> to make the test finish slightly faster.
>
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
>  testcases/kernel/syscalls/writev/writev03.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/testcases/kernel/syscalls/writev/writev03.c b/testcases/kernel/syscalls/writev/writev03.c
> index 4dc55c191..6514404e6 100644
> --- a/testcases/kernel/syscalls/writev/writev03.c
> +++ b/testcases/kernel/syscalls/writev/writev03.c
> @@ -49,6 +49,7 @@ static void setup(void)
>  	mapfd = SAFE_OPEN(MAPFILE, O_CREAT|O_RDWR|O_TRUNC, 0644);
>  	SAFE_WRITE(1, mapfd, buf, BUF_SIZE);
>  
> +	fzsync_pair.exec_time_p = 0.25;
>  	tst_fzsync_pair_init(&fzsync_pair);
>  }
>  
> -- 
> 2.30.0

LGTM.


-- 
Thank you,
Richard.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout
  2021-02-26  8:00 ` Richard Palethorpe
@ 2021-03-01  7:25   ` Li Wang
  0 siblings, 0 replies; 4+ messages in thread
From: Li Wang @ 2021-03-01  7:25 UTC (permalink / raw)
  To: ltp

Patch applied, thanks!

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210301/97b831d9/attachment.htm>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-01  7:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-25 14:09 [LTP] [PATCH] Reduce writev03 fuzzy_sync timeout Martin Doucha
2021-02-25 18:45 ` Petr Vorel
2021-02-26  8:00 ` Richard Palethorpe
2021-03-01  7:25   ` Li Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox