[LTP] [PATCH] swapping01: set .max_runtime to 90 seconds
Li Wang
liwang@redhat.com
Mon Jun 20 08:23:57 CEST 2022
On Fri, Jun 17, 2022 at 6:07 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> > # time ./swapping01
> > tst_kconfig.c:82: TINFO: Parsing kernel config
> '/boot/config-4.18.0-309.el8.x86_64+debug'
> > tst_test.c:1528: TINFO: Timeout per run is 0h 02m 00s
> > swapping01.c:110: TINFO: available physical memory: 1545 MB
> > swapping01.c:113: TINFO: try to allocate: 2008 MB
> > swapping01.c:152: TPASS: no heavy swapping detected, 218 MB swapped.
> > ...
> >
> > real 0m34.241s
> > user 0m0.386s
> > sys 0m16.040s
>
> I did play with the test for a bit and it's even more unpredictable for
> me, it tooks a minute or two on my workstation but there were outliners
> that took nearly four minutes as well.
>
> Hence I would propose to go even further and default to 10 minutes for
> max_runtime. At the same time I would limit the loop that waits for the
> swap usage to settle to run for a reminder of max_runtime/2 instead of
> the hardcoded 30 seconds. Something as:
>
Fair enough!
max_runtime/2 is about 5mins which is the previous default time of timeout
that works well.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220620/8f047895/attachment.htm>
More information about the ltp
mailing list