Stress: info: dispatching hogs: 0 cpu, 0 io, 1 vm, 0 hdd To spwan one worker of malloc() and free() functions with a timeout of 60 seconds, run the following command. Stress: dbug: using backoff sleep of 3000us Stress: dbug: using backoff sleep of 6000us Stress: dbug: using backoff sleep of 9000us Stress: dbug: using backoff sleep of 12000us Stress: dbug: using backoff sleep of 15000us Stress: dbug: using backoff sleep of 18000us Stress: dbug: using backoff sleep of 21000us ~ $ uptime ~ $ sudo stress -cpu 8 -timeout 20 ~ $ uptime Sample Output ~ $ uptimeġ7:20:00 up 7:51, 2 users, load average: 1.91, 2.16, 1.93 forked After running stress, again run the uptime command and compare the load average. Next, run the stress command to spawn 8 workers spinning on sqrt() with a timeout of 20 seconds. To examine effect of the command every time you run it, first run the uptime command and note down the load average. Use –help to view help for using stress or view the manpage.ġ.To show more detailed information when running stress, use the -v option.Set a wait factor of N microseconds before any work starts by using the –backoff N option as follows.You can set a timeout after N seconds by using the –timeout N option.To spawn N workers spinning on write()/unlink() functions, use the –hdd N option.Set sleep to N seconds before freeing memory by using the –vm-hang N option.Instead of freeing and reallocating memory resources, you can redirty memory by using the –vm-keep option.To allocate memory per vm worker, use the –vm-bytes N option.
0 Comments
Leave a Reply. |