A Collection Of Utilities To Simplify Linux Network Troubleshooting And Performance Tuning
Today, we are going to discuss about a collection of useful utilities called “netutils-linux” that can be used to simplify Linux network troubleshooting and performance tuning. This suite of Linux utils helps you to automate the linux performance tuning process out of the box. Netutils-linux consists of the following tools:
- network-top
- snmptop
- irqtop
- softirq-top
- link-rate
- softnet-stat-top
- rss-ladder
- autorps
- maximize-cpu-freq
- rx-buffers-increase
- server-info
Netutils-linux – Simplify Linux Network Troubleshooting And Performance Tuning
Install Netutils-linux
Netutils-linux is developed using Python programming language. So, it can be easily installed using pip.
On Arch Linux and its derivatives, run the following command to install pip:
On Debian, Ubuntu, Linux Mint:
On RHEL, Fedora, CentOS:
Or,
On SUSE/openSUSE:
After installing PIP, run the following command to install netutils-linux:
Sample output would be:
Usage
Like I mentioned in the introductory section, Netutils-linux contains a bunch of utilities specially designed for network troubleshooting and performance tuning purposes. All utilities are categorized into three sections, namely:
- Monitoring
- Tuning
- Hardware and its configuration rating
1. Monitoring
All these top-like tools that falls under monitoring section don’t require root or sudo privileges. You can use them as normal user.
network-top
This utility allows you to monitor interrupts, soft interrupts, network processing statistic for devices and CPUs. To run this utility, enter:
Here is the sample output from my Ubuntu 16.04 LTS server.
To exit this utility, press CTRL-C.
Snmptop
It is a basic /proc/net/smmp file watcher.
To run this utility, enter the following command:
irqtop
This utility shows you a rate of interrupts based on /proc/interrupts file of your Linux system.
Run this utility using command:
Softirq-top
It shows you a rate of receiving and transmitting packets based on /proc/softirqs file.
Link-rate
It shows how many packets/bytes a network interface receives/transmits and how many errors happened based on /sys/class/net/XXX/statistic/YYY files.
Softnet-stat-top
It shows various statistics of packets processing per CPU of your Linux box.
2. Tuning
You must either root or sudo user to run these tools.
rss-ladder
It automatically set smp_affinity_list for IRQ of NIC rx/tx queues that usually work on CPU0 out of the box.
Autorps
It enables RPS on all available CPUs of NUMA node local for the NIC for all NIC’s rx queues. It is good for cheap network interface cards.
Example:
maximize-cpu-freq
This utility sets every CPU scaling governor mode to performance and set max scaling value for min scaling value. So you can use all power of your processor. It is quite useful for latency sensible systems.
rx-buffers-increase
This utility finds and sets compromise-value between avoiding dropped/missing pkts and keeping a latency low.
Example:
Hardware and its configuration rating
server-info
This utility is similar to lshw command.
Server-info utility can also rate the hardware and its features on the scale of 1-10.
And, that’s all for now folks. More good stuffs to come. Stay tuned!
Cheers!!
Resource:
No comments:
Post a Comment