stress: Stress Tester

Description Usage Arguments Details Value See Also Examples

Description

TODO.

Usage

 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())

Arguments

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

.

Details

TODO

cpu spins on sqrt
io spins on sync
vm spins on malloc/free
hdd spins on write/unlink

Value

Each function returns NULL.

See Also

options

Examples

1
2
3
4
5
6
## Not run: 
library(stressR)

stress.cpu(cpu=1)

## End(Not run)

shinra-dev/stressR documentation built on May 29, 2019, 9:25 p.m.