netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unwanted aliasing of UDP checksum failed error counter
@ 2010-10-26 19:53 Jeremy Jackson
  2010-10-26 20:13 ` Eric Dumazet
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Jackson @ 2010-10-26 19:53 UTC (permalink / raw)
  To: netdev

Trying to find source of packet loss on an 8node compute cluster, we find:
(not in this example, but on the real cluster)

in /proc/sys/net/snmp
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
Udp: 976460 1750 0 986795 0 0

InErrors *and* RcvbufErrors both go up with full socket buffer, this has
made troubleshooting our application more difficult.  We were chasing UDP
checksum problems, until we checked linux source code, and found aliasing.

Is this done for assembly code efficiency?  Any reason ENOMEM (ie socket
buffer full) can't avoid aliasing to UDP checksum failed errors?

in linux-source-2.6.32/net/ipv4/udp.c:__udp_queue_rcv_skb()
....
                /* Note that an ENOMEM error is charged twice */
                if (rc == -ENOMEM) {
                        UDP_INC_STATS_BH(sock_net(sk), UDP_MIB_RCVBUFERRORS,
                                         is_udplite);
                        atomic_inc(&sk->sk_drops);
                }
                goto drop;
...
drop:
        UDP_INC_STATS_BH(sock_net(sk), UDP_MIB_INERRORS, is_udplite);



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-30 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-26 19:53 Unwanted aliasing of UDP checksum failed error counter Jeremy Jackson
2010-10-26 20:13 ` Eric Dumazet
2010-10-26 20:21   ` Jeremy Jackson
2010-10-26 20:27     ` Eric Dumazet
2010-10-27  9:35       ` [PATCH] ipv6/udp: report SndbufErrors and RcvbufErrors Eric Dumazet
2010-10-30 23:17         ` David Miller

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).