summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMatthew Whitehead <tedheadster@gmail.com>2017-04-19 12:37:10 -0400
committerDavid S. Miller <davem@davemloft.net>2017-04-21 13:22:34 -0400
commit7acf8a1e8a28b3d7407a8d8061a7d0766cfac2f4 (patch)
tree34fb2d27d86e816f25b4a41f0d5d6b8d837f5bd9 /kernel
parent20da848f8e5c2d911ee65dda1776d0f2a2408e01 (diff)
downloadlinux-7acf8a1e8a28b3d7407a8d8061a7d0766cfac2f4.tar.gz
linux-7acf8a1e8a28b3d7407a8d8061a7d0766cfac2f4.tar.bz2
linux-7acf8a1e8a28b3d7407a8d8061a7d0766cfac2f4.zip
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. Signed-off-by: Matthew Whitehead <tedheadster@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl_binary.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c
index ece4b177052b..4ee3e49530d2 100644
--- a/kernel/sysctl_binary.c
+++ b/kernel/sysctl_binary.c
@@ -197,6 +197,7 @@ static const struct bin_table bin_net_core_table[] = {
{ CTL_INT, NET_CORE_AEVENT_ETIME, "xfrm_aevent_etime" },
{ CTL_INT, NET_CORE_AEVENT_RSEQTH, "xfrm_aevent_rseqth" },
{ CTL_INT, NET_CORE_WARNINGS, "warnings" },
+ { CTL_INT, NET_CORE_BUDGET_USECS, "netdev_budget_usecs" },
{},
};