All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] mallocstress: extend test time on arm
@ 2018-03-09 10:01 Jan Stancek
  2018-03-09 10:41 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2018-03-09 10:01 UTC (permalink / raw)
  To: ltp

Arm systems with lot of memory and THP enabled are
hitting a timeout at ~5 minute mark as reported here:
  mallocstress poor performance with THP on arm64 system
  https://marc.info/?l=linux-mm&m=151864950330870&w=2

Extend the timeout to 10m (only for arm).

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/mem/mtest07/mallocstress.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/testcases/kernel/mem/mtest07/mallocstress.c b/testcases/kernel/mem/mtest07/mallocstress.c
index 2e900adac28b..fc3bfe7c4e20 100644
--- a/testcases/kernel/mem/mtest07/mallocstress.c
+++ b/testcases/kernel/mem/mtest07/mallocstress.c
@@ -243,6 +243,14 @@ static void cleanup(void)
 }
 
 static struct tst_test test = {
+/*
+ * extend test time on arm due to:
+ * "mallocstress poor performance with THP on arm64 system"
+ * https://marc.info/?l=linux-mm&m=151864950330870&w=2
+ */
+#if defined(__arm__) || defined(__aarch64__)
+	.timeout = 600,
+#endif
 	.needs_checkpoints = 1,
 	.setup = setup,
 	.cleanup = cleanup,
-- 
1.8.3.1


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

* [LTP] [PATCH] mallocstress: extend test time on arm
  2018-03-09 10:01 [LTP] [PATCH] mallocstress: extend test time on arm Jan Stancek
@ 2018-03-09 10:41 ` Cyril Hrubis
  2018-03-09 10:55   ` Jan Stancek
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2018-03-09 10:41 UTC (permalink / raw)
  To: ltp

Hi!
> Arm systems with lot of memory and THP enabled are
> hitting a timeout at ~5 minute mark as reported here:
>   mallocstress poor performance with THP on arm64 system
>   https://marc.info/?l=linux-mm&m=151864950330870&w=2
> 
> Extend the timeout to 10m (only for arm).

What about extending it unconditionally? It's not like it will hurt in
generall case and there are possible other slow systems that would
benefit from that as well.

Or do you have a strong reason to extend the timeout only on arm?

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH] mallocstress: extend test time on arm
  2018-03-09 10:41 ` Cyril Hrubis
@ 2018-03-09 10:55   ` Jan Stancek
  2018-03-09 12:04     ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2018-03-09 10:55 UTC (permalink / raw)
  To: ltp


----- Original Message -----
> Hi!
> > Arm systems with lot of memory and THP enabled are
> > hitting a timeout at ~5 minute mark as reported here:
> >   mallocstress poor performance with THP on arm64 system
> >   https://marc.info/?l=linux-mm&m=151864950330870&w=2
> > 
> > Extend the timeout to 10m (only for arm).
> 
> What about extending it unconditionally? It's not like it will hurt in
> generall case and there are possible other slow systems that would
> benefit from that as well.
> 
> Or do you have a strong reason to extend the timeout only on arm?

Just wanted to go with minimal impact on other arches (since they worked
OK so far as I'm aware). I don't have strong opinion either way,
I can make the timeout unconditional.

Regards,
Jan

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

* [LTP] [PATCH] mallocstress: extend test time on arm
  2018-03-09 10:55   ` Jan Stancek
@ 2018-03-09 12:04     ` Cyril Hrubis
  2018-03-09 12:14       ` Jan Stancek
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2018-03-09 12:04 UTC (permalink / raw)
  To: ltp

Hi!
> Just wanted to go with minimal impact on other arches (since they worked
> OK so far as I'm aware). I don't have strong opinion either way,
> I can make the timeout unconditional.

Given that the test seems to take 4m on successful run 5m timeout seems
to be a bit too strict to me. We are not primarily benchmarking the
kernel, so these timeouts are better to be set to be double of the
expecte runtime.

Also I like to avoid #ifdefs whenever possible.

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH] mallocstress: extend test time on arm
  2018-03-09 12:04     ` Cyril Hrubis
@ 2018-03-09 12:14       ` Jan Stancek
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Stancek @ 2018-03-09 12:14 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> Hi!
> > Just wanted to go with minimal impact on other arches (since they worked
> > OK so far as I'm aware). I don't have strong opinion either way,
> > I can make the timeout unconditional.
> 
> Given that the test seems to take 4m on successful run 5m timeout seems
> to be a bit too strict to me. We are not primarily benchmarking the
> kernel, so these timeouts are better to be set to be double of the
> expecte runtime.
> 
> Also I like to avoid #ifdefs whenever possible.

Pushed with your ACK as unconditional test time change to 10m.

Regards,
Jan

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

end of thread, other threads:[~2018-03-09 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 10:01 [LTP] [PATCH] mallocstress: extend test time on arm Jan Stancek
2018-03-09 10:41 ` Cyril Hrubis
2018-03-09 10:55   ` Jan Stancek
2018-03-09 12:04     ` Cyril Hrubis
2018-03-09 12:14       ` Jan Stancek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.