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.