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