public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] time taken by memcg_stress_test
@ 2017-03-22 22:58 Steve Ellcey
  2017-03-24 15:58 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Ellcey @ 2017-03-22 22:58 UTC (permalink / raw)
  To: ltp

I have a question about memcg_stress_test.  Looking at memcg_stress_test.sh
I see that RUN_TIME is set to 3600 (60*60) which means that run_stress runs
for an hour.  And this is run twice, once in testcase_1 and once in
testcase_2.  That is a long time for one test, do we really think it needs
to run that long for 'proper' testing?  I would love to see this cut in
half or even down to 15 minutes.  I know I can just change the script locally,
but I was wondering if makes sense to change the default value.

Steve Ellcey
sellcey@cavium.com

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

* [LTP] time taken by memcg_stress_test
  2017-03-22 22:58 [LTP] time taken by memcg_stress_test Steve Ellcey
@ 2017-03-24 15:58 ` Cyril Hrubis
  2017-04-10 20:21   ` Steve Ellcey
  0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2017-03-24 15:58 UTC (permalink / raw)
  To: ltp

Hi!
> I have a question about memcg_stress_test.  Looking at memcg_stress_test.sh
> I see that RUN_TIME is set to 3600 (60*60) which means that run_stress runs
> for an hour.  And this is run twice, once in testcase_1 and once in
> testcase_2.  That is a long time for one test, do we really think it needs
> to run that long for 'proper' testing?  I would love to see this cut in
> half or even down to 15 minutes.  I know I can just change the script locally,
> but I was wondering if makes sense to change the default value.

Two hours is excessive indeed however getting right balance between
runtime and stress test coverage is always tricky...

I guess that we can settle for 15 minutes, maybe shorten the interval
parameter that is currently set to 10 seconds to compensate for that.

Also running the two test separately (two records in the runtest file
that would call the script with a paramter selecting between the tests)
would make it better as well.

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] time taken by memcg_stress_test
  2017-03-24 15:58 ` Cyril Hrubis
@ 2017-04-10 20:21   ` Steve Ellcey
  2017-04-12 13:15     ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Ellcey @ 2017-04-10 20:21 UTC (permalink / raw)
  To: ltp

On Fri, 2017-03-24 at 16:58 +0100, Cyril Hrubis wrote:
> Hi!
> > 
> > I have a question about memcg_stress_test.  Looking at
> > memcg_stress_test.sh
> > I see that RUN_TIME is set to 3600 (60*60) which means that
> > run_stress runs
> > for an hour.  And this is run twice, once in testcase_1 and once in
> > testcase_2.  That is a long time for one test, do we really think
> > it needs
> > to run that long for 'proper' testing?  I would love to see this
> > cut in
> > half or even down to 15 minutes.  I know I can just change the
> > script locally,
> > but I was wondering if makes sense to change the default value.
> Two hours is excessive indeed however getting right balance between
> runtime and stress test coverage is always tricky...
> 
> I guess that we can settle for 15 minutes, maybe shorten the interval
> parameter that is currently set to 10 seconds to compensate for that.
> 
> Also running the two test separately (two records in the runtest file
> that would call the script with a paramter selecting between the
> tests)
> would make it better as well.

So would a patch that changed RUN_TIME to 15 minutes (15 * 60) and
changed the timout value sent to run_stress from 10 to 5 be considered
OK?  I can submit one if we think this is a reasonable change.  I am
not sure why splitting the test in two would help, LTP doesn't run any
tests in parallel does it?  I'd rather skip that part of the change as
I am worried I might mess something up.  Change 60 to 15 and 10 to 5 on
the other hand is completely straight forward.

Steve Ellcey

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

* [LTP] time taken by memcg_stress_test
  2017-04-10 20:21   ` Steve Ellcey
@ 2017-04-12 13:15     ` Cyril Hrubis
  0 siblings, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2017-04-12 13:15 UTC (permalink / raw)
  To: ltp

Hi!
> > Two hours is excessive indeed however getting right balance between
> > runtime and stress test coverage is always tricky...
> > 
> > I guess that we can settle for 15 minutes, maybe shorten the interval
> > parameter that is currently set to 10 seconds to compensate for that.
> > 
> > Also running the two test separately (two records in the runtest file
> > that would call the script with a paramter selecting between the
> > tests)
> > would make it better as well.
> 
> So would a patch that changed RUN_TIME to 15 minutes (15 * 60) and
> changed the timout value sent to run_stress from 10 to 5 be considered
> OK?

Looks reasonable to me.

> ??I can submit one if we think this is a reasonable change. ??I am
> not sure why splitting the test in two would help, LTP doesn't run any
> tests in parallel does it? ??I'd rather skip that part of the change as
> I am worried I might mess something up. ??Change 60 to 15 and 10 to 5 on
> the other hand is completely straight forward.

We can always do the split in a separate patch.

There are several reason why test should be split into resasonably small
portions. The most important is that if big long running test fails you
have no idea which part has failed and rerunning it to figure it out
takes a lot of time...

-- 
Cyril Hrubis
chrubis@suse.cz

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

end of thread, other threads:[~2017-04-12 13:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 22:58 [LTP] time taken by memcg_stress_test Steve Ellcey
2017-03-24 15:58 ` Cyril Hrubis
2017-04-10 20:21   ` Steve Ellcey
2017-04-12 13:15     ` Cyril Hrubis

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