summaryrefslogtreecommitdiff
path: root/scripts/vyatta-auto-irqaffin.pl
AgeCommit message (Collapse)Author
2010-07-16Set executable bit on perl scriptsStephen Hemminger
Useful to run them locally
2010-06-11add support for bnx2x cards to auto smp affinity scriptsRobert Bays
2010-03-09Bugfix 5021: Make smp_affinity configuration tolerant of failures.Bob Gilligan
2009-12-08Bugfix 5143: Fix grep regex for NICs with >= 10 queues.Bob Gilligan
2009-10-26Generalize handling of multi-queue NICs.Bob Gilligan
Previously the script determined the driver that a NIC was using, then used that to parse the queue names from /proc/interrupts. Now, it determines the naming convention just by looking at the queue names. Now the script should work for all NICs that support one of the two standard naming conventions. Also added some support for single-queue NICs.
2009-10-12Bugfix 2593: Introduce automatic static IRQ affinity balancing for some NICs.Bob Gilligan
This change implements a mechanism for setting the IRQ affinity of NIC interrupts in a way that is optimally balanced. The affinity settings are static, and are set up at configuration time. I've added "auto" as a new legal value to the "interfaces ethernet ethX smp_affinity" configuration parameter. If this value is set, then the system attempts to perform automatic IRQ affinity assignment. At this time, automatic IRQ affinity is supported only for multiqueue NICs that use the igb or bnx2 drivers. Even with these two, differences in the organization of queues and their naming convention necessitate some NIC-specific code. The assignment strategy attempts to assign all queues of all NICs that share the same queue number to the same CPU. This has been shown to be optimal for IP forwarding workloads in 2.6.31 kernels. Setting the value to "auto" for NICs that use other drivers will be a no-op.