Network for Linux performance monitoring

Source: Internet
Author: User
Article Title: Linux performance monitoring Network. 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.

As we all know, there are many factors that affect the network, including latency, conflict, and blocking. Next, let's take a look at the specific Network situation under Linux performance monitoring, and add some of our previous articles. We hope to provide more help to you in terms of Linux performance monitoring.

Most Ethernet networks are adaptive because different network devices may adopt different rates and working modes (full or half duplex ). Most enterprise networks work between 100 and 1000 BaseTX. The ethtool command can be used to set the network adapter's working rate and mode.

# Ethtool eth0

Settings for eth0:

Supported ports: [tp mii]

Supported link modes: 10 baseT/Half 10 baseT/Full

100 baseT/Half 100 baseT/Full

Supports auto-negotiation: Yes

Advertised link modes: 10 baseT/Half 10 baseT/Full

100 baseT/Half 100 baseT/Full

Advertised auto-negotiation: Yes

Speed: 10 Mb/s

Duplex: Half

Port: MII

PHYAD: 32

Transceiver: internal

Auto-negotiation: on

Supports Wake-on: pumbg

Wake-on: d

Current message level: 0x00000007 (7)

Link detected: yes

In Linux performance monitoring, we can see that the network adapter is working at 10 Mb/s, the mode is half duplex, and the adaptive switch is enabled. Use the following command to force the NIC to work in 100 Mbit/s full duplex mode and disable the adaptive function.

# Ethtool-s eth0 speed 100 duplex full autoneg off

Running ethtool again is shown as follows:

# Ethtool eth0

Settings for eth0:

Supported ports: [tp mii]

Supported link modes: 10 baseT/Half 10 baseT/Full

100 baseT/Half 100 baseT/Full

Supports auto-negotiation: Yes

Advertised link modes: 10 baseT/Half 10 baseT/Full

100 baseT/Half 100 baseT/Full

Advertised auto-negotiation: No

Speed: 100 Mb/s

Duplex: Full

Port: MII

PHYAD: 32

Transceiver: internal

Auto-negotiation: off

Supports Wake-on: pumbg

Wake-on: d

Current message level: 0x00000007 (7)

Link detected: yes

[1] [2] Next page

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.