Forrest logo
tool overview
On this page you find all important commands for the CLI tool stress. If the command you are looking for is missing please ask our AI.

stress

Stress is a command line tool commonly used in Unix-like operating systems. It is primarily designed to impose a heavy CPU load on a system, allowing users to simulate high-stress conditions and test system stability. The stress tool is often used in performance testing and benchmarking to determine a system's ability to handle heavy workloads. It has several options to control the type and intensity of stress applied, including CPU, memory, IO, and even network stress. Users can specify the number of worker threads, the duration of the stress test, and various parameters to customize the stress levels for specific testing scenarios. By stressing specific system resources, administrators and developers can identify potential issues or bottlenecks in system performance and configuration. Overall, stress is a useful command line tool for testing system stability, load balancing, and performance under high-stress conditions.

List of commands for stress:

  • stress:tldr:51e7a stress: Spawn 2 workers to stress test IO and timeout after 5 seconds.
    $ stress -i ${2} -t ${5}
    try on your machine
    explain this command
  • stress:tldr:cd11d stress: Spawn 2 workers to stress test memory (each worker allocates 256M bytes).
    $ stress -m ${2} --vm-bytes ${256M}
    try on your machine
    explain this command
  • stress:tldr:cf874 stress: Spawn 2 workers spinning on write()/unlink() (each worker writes 1G bytes).
    $ stress -d ${2} --hdd-bytes ${1GB}
    try on your machine
    explain this command
  • stress:tldr:db298 stress: Spawn 4 workers to stress test CPU.
    $ stress -c ${4}
    try on your machine
    explain this command
tool overview