stress2: Enable more swap disk usage

This commit is contained in:
Peter Holm 2022-07-15 10:19:39 +02:00
parent b4a6661801
commit ac19e54390
2 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,7 @@
. ../default.cfg
[ `sysctl -n vm.swap_total` -eq 0 ] && exit 0
min=5 # percent swap usage
min=10 # percent swap usage
(cd ../testcases/swap; ./swap -t 10m -i 100 -l 100 -h > /dev/null) &
sleep 1
mx=0

View File

@ -155,10 +155,8 @@ test(void)
c[i] = 0;
i += page;
}
#if 0
if (op->hog != 1)
usleep(1000);
#endif
if (arc4random() % 100 < 10)
usleep(10000);
}
free((void *)c);