Releases: strizhechenko/netutils-linux
rss-ladder now written in python and allow to be more flexible in choosing what cpus to use!
It still works absolutely like the previous bash version. Even the output is the same.
But it has 2 new features: --offset
and --cpus
. Also it uses argparse module and it's much easier to add new features now.
If you have 2 NICs with 4 queues and 1 socket with 8 cpus, you may be want
distribution like this:
eth0: [0, 1, 2, 3]
eth1: [4, 5, 6, 7]
so run:
rss-ladder eth0
rss-ladder --offset=4 eth1
If you have bugged NIC missing packets while RSS used on multiple CPUs
(it may be caused by DMA/RAM problems) you may use the following workaround:
bind all the NIC queues to one cpu, using:
rss-ladder eth0 --cpus 0
you also able to specify multiple cpus, e.g.:
rss-ladder eth0 --cpus 0 1
P.S: --cpus
should be defined in the end of parameters, after device.
Public release at habrahabr uncovered a lot of bugs. And they are gone!
- Added: i40e-tune script, some intel nics freezes RSS/interrupts until you enable/disable RPS.
- Added: landscape, pypi and license badges
- Clarified: MIT license choice
- Fixed: detect_virt.py didn't support py3
- Fixed: bug with yellow colour on some terminals in ubuntu/debian
- Fixed: lscpu -e usage worked probably only in CentOS 6. Replaced with lscpu -p.
- Fixed: got rid of the brctl dependency. Now bridge util from iproute2 is in use. Also we don't gather bridge topology in case of systems without carbon reductor.
- Added: new method of gathering netdev topology - by ethtool data.
- Fixed: rx-buffers-increase worked only on RHEL-based systems.
- Fixed: infinite run of top-like utils with -n -1 didn't work
- Fixed: russian locale broke lscpu output parsing in server-info.
- Fixed: running on CentOS 7 out of box (there is no lspci installed by default).
- Fixed: server info fails if there is only 1 block device in system.
Damn, python3 support done in less than one day!
- python 2.6, 2.7 and 3.6 support
- six used
- thanx 2 @serbernar for help
- pytest used as test runner
- tests moved straight to packages (maybe bad decision)
Much cleanup, such duplicity fighting, so logical!
- link-rate has highlighted errors
- softnet-stat-top has highlighted errors
- irqtop has highlighting for total irq counters if it is too big
- all threshold values moved to appropriate top-like utility from network-top
- nice refactoring, duplicity fighting and optimized imports return network-top to 118 lines from 138
- all libraries get rid of
if __name__ == '__main__'
- missed-pkts-monitor has been deleted because it was doing the same task link-rate doing
- Makefile targets to run every top-like utility even on non-linux machine
- flake8 is in use for checking pep8 violations right in travis-ci
Aaaaand there are pretty much things to do.
Colorized and pretty-tabled top-like utils!
Everything looks so beautiful and unified! :3
- colorama usage simplified colouring code
- prettytable allowed to get rid of all that "{0:>14} ...".format() magic.
.__repr__()
's code of irqtop/link-rate just asking to be used in network-top without any changes
By the time, there is two new utils: maskify and subnet2iplist:
v1.2
Nice looking (colors, highlighting, layout) and working top-like utils with examples in README.
Still has a lot of 💩 in codebase.