Detailed description of stress parameters of Linux stress testing tool

Source: Internet
Author: User
Tags square root

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.