Description Usage Arguments Details Value See Also Examples
TODO.
1 2 3 4 5 6 7 8 9 10 11 12 | stress(timeout = 1, cpu = 0, io = 0, vm = 0, hdd = 0,
hdd_bytes = 1024 * 1024 * 1024, vmopts = vm.opts(),
opts = stress.opts())
stress.cpu(timeout = 1, cpu = 1, opts = stress.opts())
stress.io(timeout = 1, io = 1, opts = stress.opts())
stress.vm(timeout = 1, vm = 1, vmopts = vm.opts(), opts = stress.opts())
stress.hdd(timeout = 1, hdd = 1, hdd_bytes = 1024 * 1024 * 1024,
opts = stress.opts())
|
timeout |
Run time for the test in seconds. If 0, the test will run forever (and may be impossible to kill from the R console!). |
cpu |
The number of CPU workers to spawn. |
io |
The number of IO workers to spawn. |
vm |
The number of memory workers to spawn. |
hdd |
The number of writers to spawn. |
hdd_bytes |
The number of bytes written per hdd worker. |
vmopts |
. |
opts |
. |
TODO
cpu | spins on sqrt |
io | spins on sync
|
vm | spins on malloc/free |
hdd | spins on
write/unlink |
Each function returns NULL
.
1 2 3 4 5 6 | ## Not run:
library(stressR)
stress.cpu(cpu=1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.