[LTP] [PATCH v1] swapping01.c: Add sleeps in the loop that dirties the memory
Wei Gao
wegao@suse.com
Mon Apr 22 14:39:41 CEST 2024
On Fri, Apr 19, 2024 at 10:36:19AM +0200, Cyril Hrubis wrote:
> Hi!
> > Yeah I proposed you can try to reduce the sleep time/frequency to basically
> > to lowest value (with some margin) that resolves the issue reliably in your
> > testing. That 10ms per MB was just a possible starting point.
>
> The usuall practice we do in LTP is to measure the minimal value
> required for the test to pass and then double that for the final value.
> But even with that I suppose that the value should be less than 10s.
>
> Wei can you please try to measure how long are the shortest sleeps we
> need in order to make the test pass?
>
Run 500 times on same build for each measurement.
1) No any sleep, 17 case will failed
https://openqa.suse.de/tests/14111469#next_previous
2) sleep 1ms, no failed case happen
https://openqa.suse.de/tests/14110476#next_previous
3) sleep 0.5ms, 1 failed case happen
https://openqa.suse.de/tests/14110476#next_previous
So currently 1ms is good candidate. I will sent second patch.
> --
> Cyril Hrubis
> chrubis@suse.cz
More information about the ltp
mailing list