Article Title: Linux Performance Testing Tool Lmbench introduction and instructions for use. 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.
Linux Performance Testing Tool Lmbench is a simple and Portable Micro-evaluation tool that complies with the ANSI/C standard for UNIX/POSIX. In general, it measures two key features: Response Time and bandwidth. Lmbench aims to give system developers an insight into the underlying costs of key operations.
1. Use and introduction of Lmbench
Linux Performance Testing Tool Lmbench is a simple and Portable Micro-evaluation tool that complies with the ANSI/C standard for UNIX/POSIX. In general, it measures two key features: Response Time and bandwidth. Lmbench aims to give system developers an insight into the underlying costs of key operations. Its official website is http://www.bitmover.com/lmbench /.
2. Main Lmbench Functions
Bandwidth Evaluation Tool response time evaluation tool other read cache files
Copy memory
Read Memory
Write memory
MPs queue
TCP context switch
Network: Connection establishment, pipeline, TCP, UDP and RPChotpotato
File System creation and Deletion
Process Creation
Signal Processing
Upper-layer system calls
Memory read Response Time Processor clock rate calculation
3. Main Features of Linux Performance Testing Tool Lmbench
A) portability testing of the Operating System: The evaluation tools are written in C language and have good portability (although they are easier to be compiled by GCC ). This is useful for generating detailed comparison results between systems.
B) Adaptive Adjustment: Linux Performance Testing Tool Lmbench is very useful for stress behavior. When BloatOS is 4 times slower than all competitors, the tool allocates resources to fix this problem.
C) database computing results: database computing results include running results from most mainstream computer workstation manufacturers.
D) memory latency calculation result: the memory latency test shows the cache latency of all systems (data), such as Level 1, level 2 and level 3 caches, as well as missed latency of memory and TLB tables. In addition, the cache size can be correctly divided into some result sets and read. The hardware family is similar to the preceding description. This evaluation tool has found some errors in the operating system paging policy.
E) Contextual Conversion Calculation Result: many people seem to like the number of contextual conversions. This kind of evaluation tool does not focus on referencing only the number of "in cache. It often changes between the number and size of processes, and when the current content is not in the cache, the results are divided in a way that is visible to users. You can also get the actual overhead of the cold cache context switch.
F) regression testing:
(1) Sun and SGI have used this evaluation tool to find and remedy performance problems.
(2) Intel used P6.
(3) Linux uses them in Linux performance adjustment.
G) New evaluation tool: the source code is relatively small, readable and easy to expand. It can be combined into different forms as usual to test other content. For example, this includes Network Measurement for processing database functions established by connections, and server shutdown.
4. Installation and Use
The installation of lmbench, A linuxable test tool, is relatively simple. Download the compressed package lmbench.tar.gz on the official website and enter the decompressed directory command line and type makeresults to start the compilation test. Note that if an error occurs during make, the prompt is similar.
1. $ makeresults
2. make [1]: Enteringdirectory '/home/kyuan/lmbench3/src'
3. gmake [2]: Enteringdirectory '/home/kyuan/lmbench3/src'
4. gmake [2]: *** Noruletomaketarget '../SCCS/s. ChangeSet', neededbybk. ver '..
5. gmake [2]: Leavingdirectory '/home/kyuan/lmbench3/src'
6. make [1]: *** [lmbench] Error2
7. make [1]: Leavingdirectory '/home/kyuan/lmbench3/src'
8. make: *** [results] Error2
This is the src/Makefile that needs to be modified. Put this line (in the format of row 231), and set $ O/lmbench :.. /scripts/lmbenchbk. bk. server removed.
If everything goes smoothly and there is no compilation error, some selection prompts will appear to configure the test and generate the configuration script. This configuration script will be used in subsequent tests, in future tests, the same configuration can also be used for multiple tests. In addition to the test memory range (for example, "MB [defa171792]", you should avoid selecting too many values for a large memory size; otherwise, the test time will be long) and whether to use Mailresults, you can select the default value. Lmbench executes any test items according to the configuration document. A sub-directory is generated under the results directory based on the system type, system name, and operating system type. The test result document (systemname + serial number) stored in this directory. After the test is completed, run makesee to view the results of the test result report Lmbench and its description, test results and description.