socket.7: add description for SO_BUSY_POLL
Subsystems (3)
PATCH v2 1/1 socket.7: add description for SO_BUSY_POLL
Add description for the SO_BUSY_POLL socket option to the socket(7) manpage.
v2
fixed typos reported by Rasmus Villemoes
---
man7/socket.7 | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)
man7/socket.7 +25 -0
@@ -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 may improve latency of some applications, care must be +taken when using it since this will increase both CPU utilization and power usage. + .SS Signals When writing onto a connection-oriented socket that has been shut down (by the local or the remote end)
Quoted 4 lines · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.v2
fixed typos reported by Rasmus Villemoes
Eliezer,
What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the plan?
Thanks,
Michael
Quoted 44 lines
Signed-off-by Eliezer Tamir <[email protected]>---
man7/socket.7 | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)man7/socket.7 +25
-0@@ -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 may improve latency of some applications, care must be +taken when using it since this will increase both CPU utilization and power usage. + .SS Signals When writing onto a connection-oriented socket that has been shut down (by the local or the remote end)
David Miller
maintainerFrom: Michael Kerrisk <[email protected]>
Date: Wed, 10 Jul 2013 20:03:08 +0200
Quoted 10 lines · Eliezer Tamir
Quoted 4 lines
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.v2
fixed typos reported by Rasmus VillemoesEliezer,
What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the plan?
It's in Linus's tree.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Michael Kerrisk
Quoted 1 line · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the plan?
The basic code is already in Linus' tree. there were request to rename things. The current name for the socket option is SO_LL but a patche to rename it to SO_BUSY_POLL were sent to net-dev.
http://patchwork.ozlabs.org/patch/258065/
If you want me to notify you when the change hits Linus' tree I can do that.
-Eliezer
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · David Miller
From: Michael Kerrisk <[email protected]>
Date: Wed, 10 Jul 2013 20:03:08 +0200Quoted 6 lines · Eliezer Tamir
Quoted 4 lines
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.v2
fixed typos reported by Rasmus Villemoes
Quoted 6 lines
Quoted 4 lines
Eliezer,
What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the plan?
It's in Linus's tree.
That doesn't appear to be the case. grepping current Linus Git for SO_BUSY_POLL yields nada. What am I missing?
David Miller
maintainerFrom: "Michael Kerrisk (man-pages)" <[email protected]>
Date: Wed, 10 Jul 2013 20:57:16 +0200
Quoted 12 lines · David Miller
Quoted 11 lines
From: Michael Kerrisk <[email protected]>
Date: Wed, 10 Jul 2013 20:03:08 +0200Quoted 8 lines · Eliezer Tamir
Quoted 4 lines
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.v2
fixed typos reported by Rasmus VillemoesEliezer,
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
What's the status of this feature. A quick grep seems to show that the feature is not yet in mainline. What is the plan?
It's in Linus's tree.
That doesn't appear to be the case. grepping current Linus Git for
SO_BUSY_POLLyields nada. What am I missing?
In the same set of postings Eliezer made with this manpage patch, he also posted kernel patches which rename the socket option to it's final name.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.
Long after the fact, I've applied this. Thanks, Eliezer.
Would you be willing also to write a patch for the POLL_BUSY_LOOP flag of poll()?
Cheers,
Michael
Quoted 47 lines
v2
fixed typos reported by Rasmus Villemoes---
man7/socket.7 | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)man7/socket.7 +25
-0@@ -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 may improve latency of some applications, care must be +taken when using it since this will increase both CPU utilization and power usage. + .SS Signals When writing onto a connection-oriented socket that has been shut down (by the local or the remote end)
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Michael Kerrisk (man-pages)
Quoted 1 line · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.Long after the fact, I've applied this. Thanks, Eliezer.
Would you be willing also to write a patch for the
POLL_BUSY_LOOPflag ofpoll()?
Yes, Me or someone from our team will do that.
-Eliezer
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Eliezer Tamir
Quoted 7 lines · Michael Kerrisk (man-pages)
Quoted 1 line · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.Long after the fact, I've applied this. Thanks, Eliezer.
Would you be willing also to write a patch for the
POLL_BUSY_LOOPflag ofpoll()?Yes, Me or someone from our team will do that.
Hi Eliezer,
Could you or someone from your team send me a POLL_BUSY_LOOP doc patch?
Thanks,
Michael
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
Quoted 8 lines · Michael Kerrisk (man-pages)
Quoted 6 lines · Eliezer Tamir
Quoted 5 lines · Michael Kerrisk (man-pages)
Quoted 1 line · Eliezer Tamir
Add description for the
SO_BUSY_POLLsocket option to the socket(7) manpage.Long after the fact, I've applied this. Thanks, Eliezer.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Would you be willing also to write a patch for the
POLL_BUSY_LOOPflag ofpoll()?Yes, Me or someone from our team will do that.
Hi Eliezer,
Could you or someone from your team send me a
POLL_BUSY_LOOPdoc patch?
Hi Michael,
Right now POLL_BUSY_LOOP is only used internally to control busylooping, as a signal between sock_poll() and do_poll().
Our original intention was to expose that to the users of epoll(). The work on epoll() support is not finished yet.
I think we should not document this until we finalize epoll() support.
Thanks,
Eliezer
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html