diff options
author | Eliezer Tamir <eliezer.tamir@linux.intel.com> | 2013-07-08 09:20:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-08 22:25:45 -0400 |
commit | cbf55001b2ddb814329735641be5d29b08c82b08 (patch) | |
tree | 110c1191f4b6699bef04ebdf45e4677c623a7ceb /Documentation/sysctl/net.txt | |
parent | c7e8e8a8f7a70b343ca1e0f90a31e35ab2d16de1 (diff) |
net: rename low latency sockets functions to busy poll
Rename functions in include/net/ll_poll.h to busy wait.
Clarify documentation about expected power use increase.
Rename POLL_LL to POLL_BUSY_LOOP.
Add need_resched() testing to poll/select busy loops.
Note, that in select and poll can_busy_poll is dynamic and is
updated continuously to reflect the existence of supported
sockets with valid queue information.
Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/sysctl/net.txt')
-rw-r--r-- | Documentation/sysctl/net.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/sysctl/net.txt b/Documentation/sysctl/net.txt index e658bbfb641f..7323b88e26be 100644 --- a/Documentation/sysctl/net.txt +++ b/Documentation/sysctl/net.txt | |||
@@ -53,22 +53,24 @@ Default: 64 | |||
53 | low_latency_read | 53 | low_latency_read |
54 | ---------------- | 54 | ---------------- |
55 | Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) | 55 | Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) |
56 | Approximate time in us to spin waiting for packets on the device queue. | 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. | 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. | 58 | Can be set or overridden per socket by setting socket option SO_LL, which is |
59 | Recommended value is 50. May increase power usage. | 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. | ||
60 | Default: 0 (off) | 62 | Default: 0 (off) |
61 | 63 | ||
62 | low_latency_poll | 64 | low_latency_poll |
63 | ---------------- | 65 | ---------------- |
64 | Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) | 66 | Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) |
65 | Approximate time in us to spin waiting for packets on the device queue. | 67 | Approximate time in us to busy loop waiting for events. |
66 | Recommended value depends on the number of sockets you poll on. | 68 | Recommended value depends on the number of sockets you poll on. |
67 | For several sockets 50, for several hundreds 100. | 69 | For several sockets 50, for several hundreds 100. |
68 | For more than that you probably want to use epoll. | 70 | For more than that you probably want to use epoll. |
69 | Note that only sockets with SO_LL set will be busy polled, so you want to either | 71 | Note that only sockets with SO_LL set will be busy polled, so you want to either |
70 | selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally. | 72 | selectively set SO_LL on those sockets or set sysctl.net.low_latency_read globally. |
71 | May increase power usage. | 73 | Will increase power usage. |
72 | Default: 0 (off) | 74 | Default: 0 (off) |
73 | 75 | ||
74 | rmem_default | 76 | rmem_default |