Detailed description of stress parameters of Linux stress testing tool
We recommend the stress testing tool stress based on the server load. The installation method is not mentioned. This article mainly introduces the command parameters of stress, you can test the environment.
Parameter description:
-? Show Help Information
-V: display version number
-Q: No running information is displayed.
-N: displays completed commands.
-T -- timeout N: stops running for N seconds.
-- Backoff N: wait for n to start running after being subtle
-C generates n processes. Each process repeatedly calculates the square root of a random number.
-I generates n processes. Each process repeatedly calls sync (). sync () is used to write memory content to the hard disk.
-M -- vm n generates n processes, and each process continuously calls the memory allocation malloc and memory release free function.
-- Vm-bytes B specifies the number of bytes in memory for malloc (256 MB by default)
-- Vm-hang N specifies the number of seconds for free.
-D -- hadd n generates n processes that execute the write and unlink functions.
-Hadd-bytes B indicates the number of bytes written.
-- Hadd-noclean is not unlink
The time unit can be second s, minute m, hour h, day d, and year y. The file size unit can be K, M, or G.
Example:
13 cpu processes, 4 io processes, and 1 minute later
Stress-c 13-I 4 -- verbose -- timeout 1 m
This article permanently updates the link address: