Using the Performance analysis tool under Linux Nmon

Source: Internet
Author: User

A Brief introductionThe Nmon tool helps to display all of the important performance optimization information on one screen and dynamically updates it. This efficient tool can work on any dumb screen, Telnet session, or even dial-up lines. In addition, it does not consume a lot of CPU cycles, usually less than 2%. On the updated computer, its CPU utilization will be less than 1%. use a dumb screen to display the data on the screen and update it every two seconds. However, you can easily change this interval to a longer or shorter time period. If you stretch the window and display the data in x Windows, VNC, PuTTY, or similar windows, the Nmon tool can output a large amount of information at the same time. The Nmon tool can also capture the same data to a text file for later analysis and drawing of the report. The output file is in spreadsheet format (. csv). The Nmon tool provides AIX and Linux performance experts with the ability to monitor and analyze performance data, including:
  • CPU usage
  • Memory usage
  • Kernel statistics and running queue information
  • Disk I/O speed, transmission, and read/write ratios
  • Free space in the file system
  • Disk Adapter
  • Network I/O speed, transmission, and read/write ratios
  • Page space and page speed
  • CPU and AIX specification
  • The process that consumes the most resources
  • IBM HTTP Web Cache
  • User-defined Disk groups
  • Computer details and resources
  • asynchronous I/O, only for AIX
  • Workload Manager (WLM), available only for AIX
  • IBM totalstorage? Enterprise Storage Server? (ESS) disk, only available for AIX
  • Network File System (NFS)
  • Dynamic LPAR (DLPAR) changes, only available for pseries P5 and OpenPOWER for AIX or Linux
also includes a new tool for generating graphics from Nmon output and creating. gif files that can be displayed on a Web site.
two get http://sourceforge.jp/projects/sfnet_nmon/releases/or get it directly from here, and also include analysis tools
three useafter decompression, you can see the various platform files, we only need to use the appropriate, is generally nmon_linux_x86_64. $ cp nmon_linux_x86_64 Nmon$./nmonFirst use will prompt "./nmon:permission denied"execute Chnod 777./nmon canafter success, you will see such an interfaceThe above shows the specific usage, such as input ' n ', will show the network I/O, ' d ' Display disk information, ' m ' Display memory information, etc.;
Four other optionsgenerally we use-s,-c-f options are more, such as$./nmon-s 1-c 3600-fThe output frequency is 1 seconds 1 times, total 3,600 times, namely 1 hours, the file name is saved in the form of after the file is generated, it is converted into a *.csv file, which facilitates analysis by analytical tools. $sort Localhost_140625_1614.nmon > Localhost_140625_1614.csv
Five report generationThe above kit already contains Nmon analyser V33g.xls,Openclick ' Options 'Select Show this content, then click ' Analyse nmon data ', find the corresponding CSV file, will generate xlsx file, such as LOCALHOST_140625_1614.XLSX, which is a detailed report.
Six Nmon report Analysisafter the report is generated, various data and detailed tabular data are generated, including network, disk, CPU, etc., detailed parameters and instructions please seetake the net option as an example, this report is a test conducted with a lightweight network library, using the Epoll model, 10,000 connections, each connection is sent at a frequency of packet/sec, each packet size of about 100bytes, code from https:// Github.com/yuyunliuhen/tinynet. The monitoring is divided into 2 segments, the first one hours of connection until all connections are successful, and the second is one hour after stable operation for 12 hours. First paragraph:from 17:11 onwards, as the number of connections increases, network traffic increases linearly, and at 17:26, it tends to stabilize. Because it is the ECHO model, reading and writing are basically consistent, and the average value is around 10m/sec. Second paragraph:flow mean or around 10m/sec, read maximum 50M/sec, write Max.m/sec. for 1000Mb network card, 10M is much lower than 1000mb/8=125m, bandwidth flow does not exist bottleneck. Other performance data charts are similar to the above, not listed here! Reference:Http://baike.baidu.com/link?url=UYp8YULTXT04CLEHGP0HsYFff_5k1m-lyDGLFgGi_UDWSxu53T9lpo8YL4Fo6iLnQ-1_olo-M3UfIVR1E4wLGa



Using the Performance analysis tool under Linux Nmon

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.