swapping01: Add sleeps in the loop that dirties the memory

In our test environment swapping01 sporadically fails, we suspect
swapout speed is not fast enough in some situations.

Link: https://lore.kernel.org/ltp/20240422124050.3598-1-wegao@suse.com/
Fixes: https://bugzilla.suse.com/show_bug.cgi?id=1217850#c34
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wei Gao <wegao@suse.com>
1 file changed