stress(1)
π stress(1) π
okay bestie, so this is the manual page for stress β aka the tool to impose load on and stress test systems. it's in section 1, it's iconic, and by the end of this you're gonna be stress-testing like a main character. let's go π«Ά
β¨ NAME β¨
stress β tool to impose load on and stress test a computer system
π SYNOPSIS π
stress [OPTIONS]
that's it. that's the whole vibe. you give it options, it gives your machine a bad time (affectionately) π
πΈ DESCRIPTION πΈ
so stress is this tool that imposes a configurable amount of CPU, memory, I/O, or disk stress on a POSIX-compliant operating system, and then it reports any errors it detects. like, it's not just causing chaos, it's taking notes while it does it. queen behavior π
and before you get any ideas β stress is not a benchmark. not it. it's a tool used by:
- system administrators, to evaluate how well their systems will scale
- kernel programmers, to evaluate perceived performance characteristics
- systems programmers, to expose the classes of bugs which only β or more frequently β manifest themselves when the system is under heavy load
so basically it's the group-chat member who pokes the bear on purpose, but like, for science π¬β¨
π¦ OPTIONS π¦
-?,--helpβ Show this help statement.--versionβ Show version statement.-v,--verboseβ Be verbose. (yes bestie, talk to me, tell me everything π£οΈ)-q,--quietβ Be quiet. (the introvert setting, no cap)-n,--dry-runβ Show what would have been done. (window shopping, but for system stress)-t,--timeout <N>β Timeout after N seconds. Heads up: this option is ignored by-n.--backoff <N>β Wait for factor of microseconds before starting work.-c,--cpu <N>β Spawn N workers spinning onsqrt().-i,--io <N>β Spawn N workers spinning onsync().-m,--vm <N>β Spawn N workers spinning onmalloc()/free().--vm-bytes <B>β Malloc B bytes per vm worker (default is256MB).--vm-stride <B>β Touch a byte every B bytes (default is4096).--vm-hang <N>β Sleep N secs before free (default none,0is inf).--vm-keepβ Redirty memory instead of freeing and reallocating.-d,--hdd <N>β Spawn N workers spinning onwrite()/unlink().--hdd-bytes <B>β Write B bytes per hdd worker (default is1GB). The file will be created withmkstemp()in the current directory.
π Note: Numbers may be suffixed withs,m,h,d,y(time) orB,K,M,G(size). iykyk π
π EXAMPLES π
the simple case is that you just want to bring the system load average up to an arbitrary value. The following forks 13 processes, each of which spins in a tight loop calculating the sqrt() of a random number acquired with rand().
stress -c 13
Long options are supported, as well as is making the output less verbose. The following forks 1024 processes, and only reports error messages if any.
stress --quiet --cpu 1k
To see how your system performs when it is I/O bound, use the -i switch. The following forks 4 processes, each of which spins in a tight loop calling sync(), which is a system call that flushes memory buffers to disk.
stress -i 4
Multiple hogs may be combined on the same command line. The following does everything the preceding examples did in one command, but also turns up the verbosity level as well as showing how to cause the command to self-terminate after 1 minute.
stress -c 13 -i 4 --verbose --timeout 1m
You can write a file of arbitrary length to disk. The file is created with mkstemp() in the current directory.
stress -d 1 --hdd-bytes 13
Large file support is enabled.
stress -d 1 --hdd-bytes 3G
π AUTHOR π
stress was originally developed by Amos Waterland <apw@debian.org> and is maintained by some volunteers. π«Ά
Currently, source code and newer versions are available at https://github.com/resurrecting-open-source-projects/stress
and that's the whole page bestie!! πβ¨ this lil manual is from stress-1.0.7, dated 21 Jan 2023 β so if you're running something newer, go peek at the repo above, and if you're running this exact one, you're lowkey holding a piece of history. go forth and stress responsibly, my love πΈπ π¦
π¦ where this page comes from
- arch rolling: stress 1.0.7-3 Β· GPL-2.0-or-later
- debian bookworm: stress 1.0.7-1 Β· GPL-2.0-or-later
- debian trixie: stress 1.0.7-1 Β· GPL-2.0-or-later
- epel 10: stress 1.0.7-5.el10_0 Β· GPL-2.0-or-later
- fedora 43: stress 1.0.7-7.fc43 Β· GPL-2.0-or-later
- fedora 44: stress 1.0.7-8.fc44 Β· GPL-2.0-or-later
- nixos 26.05: stress 1.0.7
- nixpkgs unstable: stress 1.0.7
- ubuntu noble: stress 1.0.7-1 Β· GPL-2.0-or-later
- ubuntu questing: stress 1.0.7-1
- ubuntu resolute: stress 1.0.7-2 Β· GPL-2.0-or-later
- ubuntu stonking: stress 1.0.7-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms