From: Rick Jones <rick.jones2@hp.com>
To: Sridhar Samudrala <sri@us.ibm.com>
Cc: Linux Network Development list <netdev@vger.kernel.org>
Subject: Re: why does tcp_v[46]_conn_request not inc MIB stats
Date: Mon, 10 Sep 2007 15:22:55 -0700 [thread overview]
Message-ID: <46E5C3BF.7020605@hp.com> (raw)
In-Reply-To: <1189461284.11066.10.camel@w-sridhar2.beaverton.ibm.com>
Sridhar Samudrala wrote:
> On Mon, 2007-09-10 at 11:42 -0700, Rick Jones wrote:
>
>>I've been digging around to see about inducing /proc/net/tcp to show
>>some "interesting" things for listen sockets (eg backlog depth, its max,
>>and dropped connection requests).
>
>
> backlog depth(acceptq length) for a listening socket should be available
> with the newer kernels. The following patch exports this value via the rx_queue
> field in /proc/net/tcp.
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=47da8ee681d04e68ca1b1812c10e28162150d453
Yep, I see it in the 2.6.23-rc5 tree I'm using. At the risk of yet
another "merely practice" patching excercise I'm putting together a
patch which will also return that in a TCP_INFO and add the max backlog
(to the tx_queue field)
While doing that, I've noticed that
Documenation/networking/proc-net-tcp.txt (?) talks about a tcp6_get_info
which I cannot find anywhere in the tree. I'm not sure if that simply
means that tcp_get_info is what is used for a "tcp6" connection and the
text can simply be removed from the documentation, or if it is called
something else.
>> While there I've noticed that both
>>tcp_v[46]_syn_recv_sock and tcp_v[46]conn_request both check that the
>>listen queue is full, but only tcp_v[46]_syn_recv_sock increments some
>>mib stats for dropped connection requests.
>>
>>Is that deliberate, or is that a hole in the stats?
>
>
> looks like it is a hole in the stats. I think we should increment
> LISTENOVERFLOWS or LISTENDROPS in tcp_v[46]_conn_request too if the
> SYN is dropped.
OK. Now, can we get a third to Sridhar's second?-)
rick jones
struggling through the maze of twisty routines for connection establishment
next prev parent reply other threads:[~2007-09-10 22:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 18:42 why does tcp_v[46]_conn_request not inc MIB stats Rick Jones
2007-09-10 21:54 ` Sridhar Samudrala
2007-09-10 22:22 ` Rick Jones [this message]
2007-09-15 3:11 ` David Miller
2007-09-18 11:07 ` Andi Kleen
2007-09-18 17:14 ` Rick Jones
2007-09-15 3:10 ` David Miller
2007-09-17 18:13 ` Rick Jones
2007-09-17 18:26 ` David Miller
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=46E5C3BF.7020605@hp.com \
--to=rick.jones2@hp.com \
--cc=netdev@vger.kernel.org \
--cc=sri@us.ibm.com \
/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.