From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Eliezer Tamir <eliezer.tamir-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Eliezer Tamir <eliezer-rsSRdLmRgNEQhDRD3CWCHA@public.gmane.org>
Subject: Re: [PATCH v2] socket.7: add description for SO_BUSY_POLL
Date: Mon, 20 Jan 2014 17:28:54 +0100 [thread overview]
Message-ID: <52DD4EC6.7080208@gmail.com> (raw)
In-Reply-To: <20130710141835.15799.61657.stgit-vd+Q285fAQQAP1VksDEriRL4W9x8LtSr@public.gmane.org>
On 07/10/2013 04:18 PM, Eliezer Tamir wrote:
> Add description for the SO_BUSY_POLL socket 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
> v2
> fixed typos reported by Rasmus Villemoes
>
> 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..5edcb09 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 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)
>
>
--
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org,
David Miller <davem@davemloft.net>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Eliezer Tamir <eliezer@tamir.org.il>
Subject: Re: [PATCH v2] socket.7: add description for SO_BUSY_POLL
Date: Mon, 20 Jan 2014 17:28:54 +0100 [thread overview]
Message-ID: <52DD4EC6.7080208@gmail.com> (raw)
In-Reply-To: <20130710141835.15799.61657.stgit@ladj378.jer.intel.com>
On 07/10/2013 04:18 PM, Eliezer Tamir wrote:
> Add description for the SO_BUSY_POLL socket 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
> v2
> fixed typos reported by Rasmus Villemoes
>
> Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
> ---
>
> man7/socket.7 | 25 +++++++++++++++++++++++++
> 1 files changed, 25 insertions(+), 0 deletions(-)
>
> diff --git a/man7/socket.7 b/man7/socket.7
> index f2213eb..5edcb09 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 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)
>
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
next prev parent reply other threads:[~2014-01-20 16:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 14:18 [PATCH v2] socket.7: add description for SO_BUSY_POLL Eliezer Tamir
2013-07-10 18:03 ` Michael Kerrisk
[not found] ` <51DDA1DC.2020306-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-07-10 18:52 ` David Miller
2013-07-10 18:52 ` David Miller
2013-07-10 18:57 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkhk+K=t0fu12Q03wcp18JrNsudTpEYs4=XP8KF81918ZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-10 19:01 ` David Miller
2013-07-10 19:01 ` David Miller
2013-07-10 18:56 ` Eliezer Tamir
2013-07-10 18:56 ` Eliezer Tamir
[not found] ` <20130710141835.15799.61657.stgit-vd+Q285fAQQAP1VksDEriRL4W9x8LtSr@public.gmane.org>
2014-01-20 16:28 ` Michael Kerrisk (man-pages) [this message]
2014-01-20 16:28 ` Michael Kerrisk (man-pages)
[not found] ` <52DD4EC6.7080208-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-20 17:28 ` Eliezer Tamir
2014-01-20 17:28 ` Eliezer Tamir
2015-02-05 13:17 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAki16GXAs5J5cXPzftxxrvaugOvQSamVsGe4jFQF9V=fAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-05 17:48 ` Eliezer Tamir
2015-02-05 17:48 ` Eliezer Tamir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DD4EC6.7080208@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
--cc=eliezer-rsSRdLmRgNEQhDRD3CWCHA@public.gmane.org \
--cc=eliezer.tamir-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.