Use LTP to perform stress testing on Linux systems

Source: Internet
Author: User
Article Title: Use LTP to perform stress testing on Linux systems. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification ltp suites are a set of system testing kits developed by the Linux Test Project. It develops a test Combination Based on the utilization rate of system resources to provide sufficient pressure for the system.

  1. Obtain Software

First, we can;

After the download, put it in the/root directory, decompress it, compile and install it:

Tar xzf ltp-full-20050608.tgz

Cd ltp-full-20050608

Make; make install;

  2. Conduct stress testing

Run:

./Runltp-p-l/tmp/resultlog.20051221-d/tmp-o/tmp/ltpscreen.20051221-t 24 h

After running, use tail-f/tmp/ltpscreen.20051221 to monitor the running status. If the operation continues, do not shut down and wait for 24 hours.

For partial stress testing, you can run scripts in the testscripts directory, for example:

# Testscripts/ltpstress. sh-d sar-l log-t 72-I 60

This means that ltpstress runs continuously for 72 hours, and the system activity is recorded every 60 seconds with sar. The record file of sar is/tmp/ltpstress. xxx. sar, ltpstess test log file/tmp/ltpstress. xxx. log (use ltpstress. sh must enable the local rsh service and allow the root user to log on to the local machine. Refer to the appendix below)

  Iii. Result Analysis

Analyze ltpstress. xxx. log: filter all FAIL to obtain the complete testcase of all FAIL.

The method is as follows: Use sort to sort FAIL items and use uniq to exclude repeated items and output them to a file:

Grep FAIL ltpstress. xxx. log | sort | uniq> failcase.txt

In this case, the failcase.txt is the names of all FAIL testcase. Analyze the cause of case failure and draw a conclusion: it is a configuration problem (all cases failed during 72 h testing, but no success record exists ), or stability issues (failure or success ). And add the statement to failcase.txt for ease of viewing.

  ※Appendix

Running runltp. sh does not run the diskiso. sh and networktests. sh scripts.

These two scripts are stored in the testscripts directory, and they must be used:

1. diskiso. sh

To use it, you must have a writable 3-inch disk in the drive, and the drive must have more than MB of space.

2. networktests. sh

To use it, you must first have another host for service provision, and install the same ltp suite as the test client and install it in the same directory, for example:/root/ltp;

Configure the/root/. rhosts file for the server to ensure that the client can access the server without a password;

Of course, we need to open the rlogind, ftpd, telnetd, echo (stream), fingerd, rshd, and portmap services on the service machine;

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.