From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Peter Adkins <peter.adkins-1p82Gqdf9CmhyYOOkqQQgw@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] tcp.7: Document removal of TCP_SYNQ_HSIZE
Date: Sun, 22 Mar 2015 19:45:11 +0100 [thread overview]
Message-ID: <550F0DB7.2030806@gmail.com> (raw)
In-Reply-To: <CAA7vvKmzVsKmma=w5Lwx6ujjCcfgSsKSqt1DGEzfjb9naujkVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 03/12/2015 08:15 AM, Peter Adkins wrote:
> Hello there,
>
> Looking over the man page for 'tcp' I came across a reference to
> tuning the 'TCP_SYNQ_HSIZE' parameter when increasing
> 'tcp_max_syn_backlog' above 1024. However, this static sizing was
> removed back in Linux 2.6.20 in favour of dynamic scaling - as part of
> commit 72a3effaf633bcae9034b7e176bdbd78d64a71db.
>
> I have included a patch below with reference to this commit, and that
> the process detailed is not required on >= Linux 2.6.20. This is my
> first patch for a man page, as well as groff, so I apologize if
> anything is incorrect. If so, please let me know and I will resolve
> and resubmit.
>
> This patch was prepared against the current HEAD - at time of writing
> - from the Kernel.org man-page repository
> (f6d086878485f63e390d10f59b6beae7b96c4120), which looks to be version
> 3.82.
Thanks, Peter! Applied.
Cheers,
Michael
> ---
> man7/tcp.7 | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/man7/tcp.7 b/man7/tcp.7
> index 5723bde..794c636 100644
> --- a/man7/tcp.7
> +++ b/man7/tcp.7
> @@ -530,12 +530,16 @@ The default value of 256 is increased to
> 1024 when the memory present in the system is adequate or
> greater (>= 128Mb), and reduced to 128 for those systems with
> very low memory (<= 32Mb).
> -It is recommended that if this
> -needs to be increased above 1024, TCP_SYNQ_HSIZE in
> +
> +Prior to Linux 2.6.20,
> +.\" commit 72a3effaf633bcae9034b7e176bdbd78d64a71db
> +it was recommended that if this needed to be increased above 1024,
> +the size of the SYNACK hash table (TCP_SYNQ_HSIZE) in
> .I include/net/tcp.h
> be modified to keep
> TCP_SYNQ_HSIZE*16<=tcp_max_syn_backlog, and the kernel be
> -recompiled.
> +recompiled. In Linux 2.6.20, the fixed sized TCP_SYNQ_HSIZE was removed
> +in favour of dynamic sizing.
> .TP
> .IR tcp_max_tw_buckets " (integer; default: see below; since Linux 2.4)"
> .\" Since 2.3.41
>
--
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
prev parent reply other threads:[~2015-03-22 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 7:15 [PATCH] tcp.7: Document removal of TCP_SYNQ_HSIZE Peter Adkins
[not found] ` <CAA7vvKmzVsKmma=w5Lwx6ujjCcfgSsKSqt1DGEzfjb9naujkVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-22 18:45 ` Michael Kerrisk (man-pages) [this message]
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=550F0DB7.2030806@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=peter.adkins-1p82Gqdf9CmhyYOOkqQQgw@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.