History

Replace 2 jiffies with sysctl netdev_budget_usecs to enable softirq tuning

Constants used for tuning are generally a bad idea, especially as hardware changes over time. Replace the constant 2 jiffies with sysctl variable netdev_budget_usecs to enable sysadmins to tune the softirq processing. Also document the variable. For example, a very fast machine might tune this to 1000 microseconds, while my regression testing 486DX-25 needs it to be 4000 microseconds on a nearly idle network to prevent time_squeeze from being incremented. Version 2: changed jiffies to microseconds for predictable units.

Matthew Whitehead committed 9 years ago

Commit 7acf8a11 parent 20da8486 files · +24 −2Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/sysctl.h+1−0
@@ -274,6 +274,7 @@ enum · 273 unmodified lines
274 NET_CORE_AEVENT_ETIME=20,274 NET_CORE_AEVENT_ETIME=20,
275 NET_CORE_AEVENT_RSEQTH=21,275 NET_CORE_AEVENT_RSEQTH=21,
276 NET_CORE_WARNINGS=22,276 NET_CORE_WARNINGS=22,
277 NET_CORE_BUDGET_USECS=23,
277};278};
278 279
279/* /proc/sys/net/ethernet */280/* /proc/sys/net/ethernet */