From: Wang Chen <wangchen@cn.fujitsu.com>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: [PATCH] udp: sk_drops handling
Date: Wed, 18 Jun 2008 10:11:39 +0800 [thread overview]
Message-ID: <48586EDB.2060809@cn.fujitsu.com> (raw)
In-Reply-To: <48582D35.40201@cosmosbay.com>
Eric Dumazet said the following on 2008-6-18 5:31:
> In commits 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 ([IPV4]: Add raw drops
> counter) and a92aa318b4b369091fd80433c80e62838db8bc1c ([IPV4]: Add raw
> drops
> counter),
> Wang Chen added raw drops counter for /proc/net/raw & /proc/net/raw6
>
> This patch adds this capability to UDP sockets too (/proc/net/udp &
> /proc/net/udp6).
>
> This means that 'RcvbufErrors' errors found in /proc/net/snmp can be also
> be examined for each udp socket.
>
> # grep Udp: /proc/net/snmp
> Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
> Udp: 23971006 75 899420 16390693 146348 0
>
> # cat /proc/net/udp
> sl local_address rem_address st tx_queue rx_queue tr tm->when
> retrnsmt ---
> uid timeout inode ref pointer drops
> 75: 00000000:02CB 00000000:0000 07 00000000:00000000 00:00000000
> 00000000 ---
> 0 0 2358 2 ffff81082a538c80 0
> 111: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000
> 00000000 ---
> 0 0 2286 2 ffff81042dd35c80 146348
>
> In this example, only port 111 (0x006F) was flooded by messages that
> user program
> could not read fast enough. 146348 messages were lost.
>
How about other place, such as, rxrpc_data_ready() also inc UDP_MIB_INERRORS.
next prev parent reply other threads:[~2008-06-18 2:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 21:31 [PATCH] udp: sk_drops handling Eric Dumazet
2008-06-18 2:11 ` Wang Chen [this message]
2008-06-18 3:46 ` Eric Dumazet
2008-06-18 4:05 ` 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=48586EDB.2060809@cn.fujitsu.com \
--to=wangchen@cn.fujitsu.com \
--cc=dada1@cosmosbay.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.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 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).