https://github.com/progrium/docker-stress
Docker container for generating workload stress
https://github.com/progrium/docker-stress
Last synced: over 1 year ago
JSON representation
Docker container for generating workload stress
- Host: GitHub
- URL: https://github.com/progrium/docker-stress
- Owner: progrium
- License: mit
- Created: 2014-07-20T15:17:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T05:52:43.000Z (about 4 years ago)
- Last Synced: 2025-01-14T12:15:46.358Z (over 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 231
- Watchers: 6
- Forks: 45
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-stress
A Docker container for [stress](http://people.seas.harvard.edu/~apw/stress/), a tool for generating workload. It can produce CPU, memory, I/O, and disk stress.
## Using the container
$ docker run --rm -it progrium/stress --cpu 2 --io 1 --vm 2 --vm-bytes 128M --timeout 10s
The container always runs in verbose mode.
### Options
```
-?, --help show this help statement
--version show version statement
-v, --verbose be verbose
-q, --quiet be quiet
-n, --dry-run show what would have been done
-t, --timeout N timeout after N seconds
--backoff N wait factor of N microseconds before work starts
-c, --cpu N spawn N workers spinning on sqrt()
-i, --io N spawn N workers spinning on sync()
-m, --vm N spawn N workers spinning on malloc()/free()
--vm-bytes B malloc B bytes per vm worker (default is 256MB)
--vm-stride B touch a byte every B bytes (default is 4096)
--vm-hang N sleep N secs before free (default is none, 0 is inf)
--vm-keep redirty memory instead of freeing and reallocating
-d, --hdd N spawn N workers spinning on write()/unlink()
--hdd-bytes B write B bytes per hdd worker (default is 1GB)
--hdd-noclean do not unlink files created by hdd workers
Example: stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
Note: Numbers may be suffixed with s,m,h,d,y (time) or B,K,M,G (size).
```
## Sponsor
This project was made possible by [DigitalOcean](http://digitalocean.com).
## License
BSD