aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/sysctl/net.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/sysctl/net.txt')
-rw-r--r--Documentation/sysctl/net.txt43
1 files changed, 40 insertions, 3 deletions
diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt
index 6f1c201319de..d69e14c9002c 100644
--- a/Documentation/sysctl/net.txt
+++ b/Documentation/sysctl/net.txt
@@ -26,7 +26,7 @@ Table : Subdirectories in /proc/sys/net
26 ipv4 IP version 4 x25 X.25 protocol 26 ipv4 IP version 4 x25 X.25 protocol
27 ipx IPX token-ring IBM token ring 27 ipx IPX token-ring IBM token ring
28 bridge Bridging decnet DEC net 28 bridge Bridging decnet DEC net
29 ipv6 IP version 6 29 ipv6 IP version 6 tipc TIPC
30.............................................................................. 30..............................................................................
31 31
321. /proc/sys/net/core - Network core options 321. /proc/sys/net/core - Network core options
@@ -50,6 +50,29 @@ The maximum number of packets that kernel can handle on a NAPI interrupt,
50it's a Per-CPU variable. 50it's a Per-CPU variable.
51Default: 64 51Default: 64
52 52
53low_latency_read
54----------------
55Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL)
56Approximate time in us to busy loop waiting for packets on the device queue.
57This sets the default value of the SO_LL socket option.
58Can be set or overridden per socket by setting socket option SO_LL, which is
59the preferred method of enabling.
60If you need to enable the feature globally via sysctl, a value of 50 is recommended.
61Will increase power usage.
62Default: 0 (off)
63
64low_latency_poll
65----------------
66Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL)
67Approximate time in us to busy loop waiting for events.
68Recommended value depends on the number of sockets you poll on.
69For several sockets 50, for several hundreds 100.
70For more than that you probably want to use epoll.
71Note that only sockets with SO_LL set will be busy polled, so you want to either
72selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally.
73Will increase power usage.
74Default: 0 (off)
75
53rmem_default 76rmem_default
54------------ 77------------
55 78
@@ -93,8 +116,7 @@ netdev_budget
93 116
94Maximum number of packets taken from all interfaces in one polling cycle (NAPI 117Maximum number of packets taken from all interfaces in one polling cycle (NAPI
95poll). In one polling cycle interfaces which are registered to polling are 118poll). In one polling cycle interfaces which are registered to polling are
96probed in a round-robin manner. The limit of packets in one such probe can be 119probed in a round-robin manner.
97set per-device via sysfs class/net/<device>/weight .
98 120
99netdev_max_backlog 121netdev_max_backlog
100------------------ 122------------------
@@ -201,3 +223,18 @@ IPX.
201The /proc/net/ipx_route table holds a list of IPX routes. For each route it 223The /proc/net/ipx_route table holds a list of IPX routes. For each route it
202gives the destination network, the router node (or Directly) and the network 224gives the destination network, the router node (or Directly) and the network
203address of the router (or Connected) for internal networks. 225address of the router (or Connected) for internal networks.
226
2276. TIPC
228-------------------------------------------------------
229
230The TIPC protocol now has a tunable for the receive memory, similar to the
231tcp_rmem - i.e. a vector of 3 INTEGERs: (min, default, max)
232
233 # cat /proc/sys/net/tipc/tipc_rmem
234 4252725 34021800 68043600
235 #
236
237The max value is set to CONN_OVERLOAD_LIMIT, and the default and min values
238are scaled (shifted) versions of that same value. Note that the min value
239is not at this point in time used in any meaningful way, but the triplet is
240preserved in order to be consistent with things like tcp_rmem.