System Performance Tools In debian

Source: Internet
Author: User
The system performance tool in debian-the Linux Release Technology-Debian information. The following is a detailed description. 1. View network traffic: iptraf

Common usage:
1) view the status of the specified NIC: iptraf-d eth0

2. view the network adapter's working rate. Mode: ethtool package
1) view: ethtool eth0
2) force the NIC to work in 1000 Mb/s full duplex mode and disable the adaptive function.
Ethtool-s eth0 speed 1000 duplex full autoneg off

3. Collect System Information: sysstat package, which contains the sar Tool
Common usage:
1) Check the CPU usage. sampling is performed once every 10 seconds. sampling is performed three times in a row. The result is stored in the file fw: sar-u 10 3-o fw.
Result:
% User: time percentage in user mode
% System: percentage of time in system Mode
% Iowait: Percentage of input/output wait time. If the value is too high, the system has an I/O bottleneck.
% Idle: Percentage of idle time

2) view the content in the binary file fw
Sar-u-f fw

3) Check the core status, sampling once every 10 seconds, and sampling three times consecutively: sar-v 10 3
Result:
Dentunusd:
File-sz: Number of table items in the file table being used or allocated in the current core controlled by the core parameter MAX-PROC
Inode-sz: Number of table items in the I node table being used or allocated in the current core controlled by the core parameter MAX-INODE
Super-sz:
% Super-sz:
Dquot-sz:
% Dquot-sz:
Rtsig-sz:
% Rtsig-sz:

4) view device usage: sar-d 10 3
Result:
DEV: block device name
Tps: Number of transmissions per second
Rd_sec/s: Number of read sector s. The size of one sector is 512 bytes.
Wr_sec/s: Number of write sector s. The size of one sector is 512 bytes.
Avgrq-sz: average request size
Avgqu-sz: average length of Request queue
Await: average usage time (Waiting Time + service time), in seconds
Svctm: Average service time
% Util: Percentage of CPU used by IO requests

5) cache zone usage: sar-B 10 3
Result:
Tps: Total number of transmissions per second
Rtps: Number of read requests per second
Wtps: Number of write requests per second
Bread/s: the number of physical blocks per second read from the hard disk into the system buffer.
Bwrtn/s: Average number of physical blocks written from the system buffer to the disk per second

6) network usage: sar-n {DEV | EDEV | NFS | NFSD | SOCK | ALL}
For example, sar-n DEV 5 10
Result:
Rxpck/s: number of packets received per second
Txpck/s: number of packets sent per second
Rxbyt/s: number of bytes received per second
Txbyt/s: number of bytes sent per second
Rxcmp/s: Number of compressed packages received per second
Txcmp/s: Number of compressed packages sent per second
Rxmcst/s: Number of multicast received per second



4. top
Common options:
NI: Nice value
VIRT: Virtual Image (kb)
RES: Resident size (kb)
SHR: Shared Mem size (kb)
NFLT: Page Fault count
Mcm t: Dirty Pages count

5. vmstat
Memory:
-- Swpd
-- Free
-- Buff
-- Cache
Swap
-- Si
-- So
Io
-- Bi. If it is large, it indicates that there are a large number of I/O requests that read disk content into the memory.
-- Bo
System
-- In
-- Cs
Cpu
-- Cs
-- Us
-- Sy
-- Id
-- Wa. If it is large, the CPU time is waiting for I/O operations.
6. iostat
Common usage: iostat-x 5 is updated every 5 seconds to display extended items

7. free
Omitted
Related Article

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.