Linux technology evaluation and testing of Linux reliability
Source: Internet
Author: User
Article title: Linux technology evaluates and tests the reliability of Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
This article records the test results and analysis of the Linux kernel and other core OS components, from the library and device drivers to the file system and network, the test scope does not include, all tests were conducted under quite unfavorable conditions and took a long time. IBM Linux Technology Center has just concluded this three-month comprehensive Test and shared the results of their LTP (Linux Test Project) Test with readers on developerWorks.
The IBM Linux Technology Center (LTC) was established in August 1999 to allow the success of Linux to work directly with the Linux development group. Its more than 200 employees make it one of the largest open source code developers team. They provide code ranging from patching to structured kernel changes, from file systems and internationalization to GPL 'd drivers. They are also committed to tracking Linux-related development within IBM.
LTC is particularly interested in Linux scalability, applicability, reliability, and system management-all aimed at making Linux more suitable for enterprises. They have made many contributions to the Linux community, including enabling Linux to work on S/390 hosts and porting JFS log file systems to Linux.
Another core task of LTC is to perform professional testing on Linux in lab conditions by testing commercial projects. LTC, together with SGI, OSDL, Bull, and Wipro Technologies, contributed to the LTP Linux testing project (LTP ). The following is the result of a long and comprehensive test on the Linux kernel by using the LTP kit. As you may guess, Linux has withstood the continuous stress test.
Test results
The following summary is based on the test and observation results during running:
* The Linux kernel and other core OS components-including libraries, device drivers, file systems, networks, IPC and memory management-run stably and complete all the expected runtime periods, no serious system faults.
* Each operation has a high success rate (over 95%) and only a small number of expected intermittent faults, which are the results of testing designed to overload resources at the same time.
* Linux system performance does not decrease during long running.
* In the SMP system, the Linux kernel is correctly extended to use hardware resources (CPU, memory, and hard disk ).
* The Linux system can well withstand the continuous full-load (over 99%) and extremely heavy memory pressure of the CPU.
* The Linux system correctly handles the overload.
The test proves that the Linux kernel and other core components are reliable and stable within 30 days, 60 days, and 90 days, it can provide users with a robust, enterprise-level environment that runs for a long time.
Linux reliability measurement
Target
For IBM Linux Technology Center, the objective of Linux reliability is to use the LTP test suite to test the Linux operating system for a long time, the focus is on the workload related to the Linux user environment (see references to learn more about LTP ). Instead of proving defects.
Test environment overview
This document describes the test results and analysis of Linux reliability measurement tests over the last 30 and 60 days using the LTP test suite. The SuSE Linux Enterprise Server v8 (SLES 8) is used as the testing kernel and the IBM pSeries Server is used as the testing hardware. A specially designed LTP stress test scenario is used to concurrently run a wide range of kernel components while using network and memory management, and generate high workload pressure on the test system. The Linux kernel, TCP, NFS, and I/O test components are designed for heavy workloads.
Test
30 days
PSeries 30-day LTP pressure execution result
* Machine: p650 LPAR
* CPU: (2) Power4-1.2 GHz
* Kernel: Linux 2.4.19-ull-ppc64-SMP (SLES 8 SP 1)
* LTP version: 20030514
* 99.00% average CPU usage (User: 48.65%, system: 50.35%)
* 80.09% average memory usage (8 GB)
Observed results:
* On the p650 LPAR, SLES 8 PPC64 runs successfully within 30 days.
* The test tool is LTPstress. Test cases are executed in parallel and serial mode.
* The Kernel, TCP, NFS, and I/O test components are all aimed at heavy workload.
* Successful rate: 97.88%.
* No serious system faults.
60 days
60-day LTP pressure execution result: pSeries
* Machine: B80
* CPU: (2) Power3-375 MHz
* Kernel: Linux 2.4.19-ull-ppc64-SMP (SLES 8 SP 1)
* LTP version: 20030514
* 99.96% average CPU usage (User: 75.02%, system: 24.94%)
* 61.69% average memory usage (8 GB)
* 3.86% average swap partition utilization (1 GB)
Observed results:
* On pSeries B80, SLES 8 PPC64 runs successfully within 60 days.
* The test tool is LTPstress. Test cases are executed in parallel and serial mode.
* The Kernel, TCP, NFS, and I/O test components are designed for heavy workloads.
* Successful rate: 95.12%.
* No serious system faults.
Testing infrastructure
Hardware and software environment
System Processor Memory hard disk swap partition network
PSeries 650 (LPAR) Model 7038-6M2 2-POWER4 + (TM) 1.2 GHz 8 GB (8196 MB) 36 GB U320 IBM Ultrastar (other hard drives available but not used) 1 GB Ethernet controller: AMD PCnet32
PSeries 630 Model 7026-B80 2-POWER3 (TM) + 375 MHz 8 GB (7906 MB) 16 GB 1 GB Ethernet controller: AMD PCnet32
The software environment on the pSeries 630 Model 7026-B80 and pSeries 650 (LPAR) Model 7038-6M2 is the same.
Component version
Linux SuSE SLES 8 with Service Pack 1
Kernel 2.4.19-ul1-ppc64-SMP
LTP 20030514
Methodology
The stability and reliability of the system are usually measured by the continuous running time and the reliable running time of the system.
Initially, a group of 30-day baseline runs, and then increases to 60 and 90-day Linux testing run on xSeries and pSeries servers. The initial focus is on kernel, network, and I/O testing.
Test Tool
Linux Test Project (LTP; references with links and more information) is a collaboration between SGI, IBM, OSDL, Bull, and Wipro Technologies, the objective is to provide test kits for open source code groups to test the reliability, robustness, and stability of Linux. The Linux Test Project is a collection of tools used to Test the Linux kernel and related components. The objective is to help improve the Linux kernel by automating kernel testing.
At present, there are more than 2000 test cases in the LTP suite, covering most of the kernel interfaces, such as system calls, memory, IPC, I/O, file system and network. The test suite is updated and released every month and can run on multiple architectures. The known LTP test suite has tested 11 architectures, including i386, ia64, PowerPC, PowerPC 64, S/390, and S/390x (64bit), MIPS, mipsel, cris, AMD Opteron and embedded architecture. The LTP version used in our reliability test is 20030524, which is the latest version available at that time.
Test policy
There are two special phases in baseline operation: a 24-hour "initial test" followed by a stress reliability operation phase, or a "stress test ".
Passing the initial test is a necessary condition for starting the test. Initial tests include the 24-hour successful operation of the LTP test suite on hardware and operating systems that will be used for reliability. The driver script runalltest. sh attached to the LTP test kit is used to verify the kernel. This script serializes a testing of a component package and reports all the results. You can also choose to run several instances in parallel. By default, this script is executed:
* File system stress test.
* Hard disk I/O testing.
* Memory management stress test.
* IPC stress testing.
* Test the debugger.
* Test the command function.
* Test the system call function.
Stress testing can verify the robustness of a product during high system usage. As runalltest. sh supplement, specially designed a name named ltpstress. sh testing scenario, while using network and memory management, runs a wide range of kernel components concurrently, and generates high load on the testing system. Ltpstress. sh is also part of the LTP test suite. This script runs similar test cases in parallel and runs different test cases in sequence to avoid intermittent faults caused by simultaneous access to the same resource or mutual interference. By default, this script is executed:
* NFS stress test.
* Memory management stress test.
* File system stress test.
* Mathematical (floating point) testing.
* Multi-threaded stress testing.
* Hard disk I/O testing.
* IPC (pipeio, semaphore) test.
* Test the system call function.
* Network pressure test.
System Monitoring
The modified top tool attached to the LTP test suite is used as a system monitoring tool. With top, you can observe the behavior of the processor in real time. The improved top tool has additional functions. you can save the snapshot of the top result to a file and give an average summary of the result file, including CPU, memory, and swap space utilization.
In our test, a snapshot of the system usage (or top output file) is taken every 10 seconds and saved to the result file. In addition, snapshots of system utilization and LTP test output files are processed every day or every week and data scores are obtained to determine whether the system performance degrades during long periods of operation. This function is controlled by cron jobs and scripts.
Before testing
The hardware configurations of all selected test systems should be the same as possible. Remove additional hardware to reduce potential hardware faults. Select the lowest security option during image installation. Reserve at least 2 GB of hard disk space to store top data files and LTP log files.
Note that this is a test scenario. in real life, it is recommended that you keep the security settings much higher than the minimum settings.
Testing period
Do not interfere with the system during the test. Occasionally visit the system to confirm that the test is still in progress. Methods of confirmation include using ps commands, checking top data, and checking LTP log data.
After testing
After the test is completed, the system monitoring tool top immediately stops. All top data files, including
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