Linux Performance Testing Tools Lmbench detailed

Source: Internet
Author: User
Tags posix

Linux Performance Testing Tools Lmbench detailed 2010-06-04 16:07 Anonymous Evaluation Centerfont Size:T | T

Lmbench is a simple and portable, ANSI/C standard for the unix/posix of the micro-assessment tool set up. In general, it measures two key features: Reaction time and bandwidth. Lmbench is designed to give system developers insight into the underlying costs of critical operations.

AD:2014WOT Global Software Technology Summit Beijing Station course video release

The Linux Performance test Tool Lmbench is a simple, portable, mini-evaluation tool that complies with the ANSI/C standard for unix/posix. In general, it measures two key features: Reaction time and bandwidth. Lmbench is designed to give system developers insight into the underlying costs of critical operations.

1, the use and introduction of Linux Performance Test tool Lmbench


Lmbench is a simple and portable, ANSI/C standard for the unix/posix of the micro-assessment tool set up. In general, it measures two key features: Reaction time and bandwidth. Lmbench is designed to give system developers insight into the underlying costs of critical operations. Its official website is: http://www.bitmover.com/lmbench/.


2, Linux Performance test Tool Lmbench main function


Bandwidth Assessment Tool response time assessment tool other read cache file
Copy memory
Read memory
Write memory
Pipeline
TCP Context Switch
Networking: Connection setup, pipelines, tcp,udp and RPC hot potato
File system creation and deletion
Process creation
Signal Processing
System calls on the upper level
Memory read-In reaction time processor clock ratio calculation


3, Linux Performance test Tool Lmbench main features


A) portability testing of the operating system: The evaluation tools are written in C and have good portability (although they are more easily compiled by GCC). This is useful for producing a comparison of each detail between systems.
b) Adaptive adjustment: Lmbench is very useful for stress behavior. This tool allocates resources to fix the problem when it encounters a situation where bloatos is 4 times times slower than all competitors.
c) Database calculation results: The results of the database calculation include the results from most major computer workstation manufacturers.
d) Memory Latency calculation results: Memory Latency testing shows cache latencies for all systems (data), such as tier, level two, and level three caches, as well as Miss latency for memory and TLB tables. In addition, the size of the cache can be correctly divided into some result sets and read out. The hardware family resembles the description above. This evaluation tool has found some errors in the operating system paging policy.
e) Context Conversion calculation results: Many people seem to like the number of context conversions. This assessment tool does not specifically focus on the number of references to "in-cache". It often changes between the number and size of processes, and divides the results in a way that is visible to the user when the current content is not in the cache. You can also get the actual overhead of a cold cache context switch.
f) Regression testing:
A Sun and SGI have used this assessment tool to find and remediate performance-related problems.
Two Intel Corporation used them in the development of P6.
Three Linux uses them in the performance tuning of Linux.
g) New evaluation tool: Source code is relatively small, readable and easy to expand. It can be combined into different forms to test other content in a regular manner. For example, including network measurements that deal with library functions established by connections, server shutdown, and so on.


4, Linux Performance test Tool Lmbench installation and use


Installation using Lmbench installation is relatively simple, to its official website download the compressed package Lmbench.tar.gz unzip it, and enter the extracted directory command line type make results to start compiling the test. It is important to note that if you make an error at make, it will be 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 need to modify Src/makefile, which will be such a line (in 231 lines of appearance), will $o/lmbench: /scripts/lmbench Bk.ver in the bk.ver removed, it can be.


If all goes well, compile without errors, there will be a selection prompt to configure the test and generate a configuration script, subsequent tests will use the configuration script, and in the future test can be directly using the same configuration multiple tests. Configuration hint In addition to testing the memory range (such as "MB [default 1792]", the large memory should avoid choosing too large value, otherwise the test time will be very long) and whether mail results outside, basically can choose the default value. Lmbench executes any test item based on the configuration document, and in the results directory, generates a subdirectory based on the system type, system name, and operating system type, and the test results document (System name+ sequence number) is stored in the directory. After the test is done, make see shows the results of the test results report lmbench and their descriptions, test results, and descriptions.

"Editor's recommendation"

    1. Three ways to monitor Linux traffic
    2. Linux Network traffic Security Management tool Wireshark detailed
    3. Linux Performance Detection Tool uptime Brief Introduction
    4. Linux Download Tool Curl detailed
    5. Linux Performance test Tool Lmbench introduction and usage instructions

Linux Performance Testing Tools Lmbench detailed

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.