* [PATCH] socket.7: add description for SO_BUSY_POLL
@ 2013-07-10 12:17 Eliezer Tamir
2013-07-10 12:55 ` Rasmus Villemoes
0 siblings, 1 reply; 2+ messages in thread
From: Eliezer Tamir @ 2013-07-10 12:17 UTC (permalink / raw)
To: Micahel Kerrisk
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, David Miller,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA, Andrew Morton, Eliezer Tamir
Add description for the SO_BUSY_POLL socket option to the socket(7) manpage.
Signed-off-by: Eliezer Tamir <eliezer.tamir-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
man7/socket.7 | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/man7/socket.7 b/man7/socket.7
index f2213eb..27603c9 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -694,6 +694,31 @@ for details on control messages.
Gets the socket type as an integer (e.g.,
.BR SOCK_STREAM ).
This socket option is read-only.
+.TP
+.B SO_BUSY_POLL
+Sets the approximate time in microseconds to busy poll on a blocking receive
+when there is no data. Increasing this value requires
+.BR CAP_NET_ADMIN .
+The default for this option is controlled by the
+.I /proc/sys/net/core/busy_read
+file.
+
+The value in the
+.I /proc/sys/net/core/busy_poll
+file determines how long
+.BR select (2)
+and
+.BR poll (2)
+will busy poll when they operate on sockets with
+.BR SO_BUSY_POLL
+set and no events to report are found.
+
+In both cases busy polling will only be done when the socket last received data
+from a network device that supports this option.
+
+While busy polling my improve latency of some application, care must be
+taken when using it since this will increase both CPU utilization power usage.
+
.SS Signals
When writing onto a connection-oriented socket that has been shut down
(by the local or the remote end)
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] socket.7: add description for SO_BUSY_POLL
2013-07-10 12:17 [PATCH] socket.7: add description for SO_BUSY_POLL Eliezer Tamir
@ 2013-07-10 12:55 ` Rasmus Villemoes
0 siblings, 0 replies; 2+ messages in thread
From: Rasmus Villemoes @ 2013-07-10 12:55 UTC (permalink / raw)
To: netdev; +Cc: linux-man, linux-kernel, linux-kernel, netdev
Eliezer Tamir <eliezer.tamir@linux.intel.com> writes:
> +While busy polling my improve latency of some application, care must be
> +taken when using it since this will increase both CPU utilization power usage.
s/my/may/; missing 'and' before 'power usage'. [And should
'application' be plural?]
Rasmus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-10 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10 12:17 [PATCH] socket.7: add description for SO_BUSY_POLL Eliezer Tamir
2013-07-10 12:55 ` Rasmus Villemoes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).