diff options
Diffstat (limited to 'Documentation/sysctl/net.txt')
-rw-r--r-- | Documentation/sysctl/net.txt | 43 |
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 | ||
32 | 1. /proc/sys/net/core - Network core options | 32 | 1. /proc/sys/net/core - Network core options |
@@ -50,6 +50,29 @@ The maximum number of packets that kernel can handle on a NAPI interrupt, | |||
50 | it's a Per-CPU variable. | 50 | it's a Per-CPU variable. |
51 | Default: 64 | 51 | Default: 64 |
52 | 52 | ||
53 | low_latency_read | ||
54 | ---------------- | ||
55 | Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) | ||
56 | Approximate time in us to busy loop waiting for packets on the device queue. | ||
57 | This sets the default value of the SO_LL socket option. | ||
58 | Can be set or overridden per socket by setting socket option SO_LL, which is | ||
59 | the preferred method of enabling. | ||
60 | If you need to enable the feature globally via sysctl, a value of 50 is recommended. | ||
61 | Will increase power usage. | ||
62 | Default: 0 (off) | ||
63 | |||
64 | low_latency_poll | ||
65 | ---------------- | ||
66 | Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) | ||
67 | Approximate time in us to busy loop waiting for events. | ||
68 | Recommended value depends on the number of sockets you poll on. | ||
69 | For several sockets 50, for several hundreds 100. | ||
70 | For more than that you probably want to use epoll. | ||
71 | Note that only sockets with SO_LL set will be busy polled, so you want to either | ||
72 | selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally. | ||
73 | Will increase power usage. | ||
74 | Default: 0 (off) | ||
75 | |||
53 | rmem_default | 76 | rmem_default |
54 | ------------ | 77 | ------------ |
55 | 78 | ||
@@ -93,8 +116,7 @@ netdev_budget | |||
93 | 116 | ||
94 | Maximum number of packets taken from all interfaces in one polling cycle (NAPI | 117 | Maximum number of packets taken from all interfaces in one polling cycle (NAPI |
95 | poll). In one polling cycle interfaces which are registered to polling are | 118 | poll). In one polling cycle interfaces which are registered to polling are |
96 | probed in a round-robin manner. The limit of packets in one such probe can be | 119 | probed in a round-robin manner. |
97 | set per-device via sysfs class/net/<device>/weight . | ||
98 | 120 | ||
99 | netdev_max_backlog | 121 | netdev_max_backlog |
100 | ------------------ | 122 | ------------------ |
@@ -201,3 +223,18 @@ IPX. | |||
201 | The /proc/net/ipx_route table holds a list of IPX routes. For each route it | 223 | The /proc/net/ipx_route table holds a list of IPX routes. For each route it |
202 | gives the destination network, the router node (or Directly) and the network | 224 | gives the destination network, the router node (or Directly) and the network |
203 | address of the router (or Connected) for internal networks. | 225 | address of the router (or Connected) for internal networks. |
226 | |||
227 | 6. TIPC | ||
228 | ------------------------------------------------------- | ||
229 | |||
230 | The TIPC protocol now has a tunable for the receive memory, similar to the | ||
231 | tcp_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 | |||
237 | The max value is set to CONN_OVERLOAD_LIMIT, and the default and min values | ||
238 | are scaled (shifted) versions of that same value. Note that the min value | ||
239 | is not at this point in time used in any meaningful way, but the triplet is | ||
240 | preserved in order to be consistent with things like tcp_rmem. | ||