Linux Performance Testing Tool Lmbench

Source: Internet
Author: User

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 Linux Performance Testing Tool Lmbench


Lmbench is a simple and Portable mini-evaluation tool that complies with ANSI/C standards 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 Functions of Linux Performance Testing Tool Lmbench


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 RPC hot potato
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 compiled 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: Lmbench is very useful for stressful behaviors. 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 all system data) cache latency, such as Level 1, level 2 and level 3 cache, as well as memory and TLB table Miss latency. 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 of Linux Performance Testing Tool Lmbench


The installation and use of Lmbench are relatively simple. Download the compressed package lmbench.tar.gz on the official website and enter the decompressed directory command line and type make results to start the compilation test. Note that if an error occurs during make, the prompt is similar.
 

 
 
  1. $make results  
  2. make[1]: Entering directory `/home/kyuan/lmbench3/src'  
  3. gmake[2]: Entering directory `/home/kyuan/lmbench3/src'  
  4. gmake[2]: *** No rule to make target `../SCCS/s.ChangeSet', needed by bk.ver'..  
  5. gmake[2]: Leaving directory `/home/kyuan/lmbench3/src'  
  6. make[1]: *** [lmbench] Error 2  
  7. make[1]: Leaving directory `/home/kyuan/lmbench3/src'  
  8. make: *** [results] Error 2  

This is the src/Makefile that needs to be modified. Put this line (in the format of row 231), and set $ O/lmbench :.. /scripts/lmbench bk. 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. When the configuration prompt is displayed, except for the tested memory range such as "MB [default 1792]", you should avoid selecting too many values for a large memory size; otherwise, the test time will be long) and whether to Mail results, you can select the default value. Lmbench executes any test items according to the configuration document. a subdirectory is generated under the results directory based on the system type, system name, and operating system type. The test result document is system name + serial number) stored in this directory. After the test is completed, execute make see to check the results of the test result report Lmbench and its description, test results and description.

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.