Testing methods for Linux stress CPUs

Source: Internet
Author: User

First, stress tool installation:
1. Get Stress Source installation package (stress-1.0.4.tar.gz)
3. Unzip and install

[[email protected]/] #cd/tmp/[[email protected] tmp]#tar –zxvf stress-1.0. 4. tar. gz

4. Enter the stress-1.0.4 folder, compile and install the stress

[[email protected] tmp] #cd/tmp/stress-1.0. 4/[[email protected] stress-1.0.  4]#./Configure[[email protected] Stress-1.0.  4make[email protected] stress-1.0.  4]#makeinstall

Installed by default on:/usr/local/bin/stress
Second, the use of stress tools:
Command: Taskset–c logical CPU Index number stress--timeout duration--CPU 1
Parameter description:
-C Server Logical CPU index number
--timeout duration of pressure on the CPU
--CPU Stress Process Number, if the value is 2, each stress process consumes all the logical CPU resources equally
For example: Pressure on the logical CPU with index 0 for 30 seconds

0  - 1

With top 1 You can see the utilization of the CPU indexed to 0

Testing methods for Linux stress CPUs

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.