netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Inconsistency in number of Unix sockets
@ 2009-06-29 14:37 David Shwatrz
  2009-06-30 11:29 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: David Shwatrz @ 2009-06-29 14:37 UTC (permalink / raw)
  To: netdev; +Cc: dada1

Hello,

On kernel 2.6.29.4-167: (Fedora 11):

Why is this inconsistency in number of Unix sockets, when running the following:

 cat /proc/net/protocols | grep UNIX
UNIX       432    986      -1   ....

lsof -U | wc -l
989

netstat --unix | wc -l
906

cat /proc/net/unix | wc -l
986

On which of this statistics should we rely when we want to know how
many Unix Domain sockets do we have ? There is a variable named unix_nr_socks,
but AFAIK, the patch which used it (for /proc/net/protocols ) was
reverted lately.

commit 1748376b6626acf59c24e9592ac67b3fe2a0e026
by Eric Dumazet <dada1@cosmosbay.com>

Regards,
DS

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

end of thread, other threads:[~2009-06-30 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 14:37 Inconsistency in number of Unix sockets David Shwatrz
2009-06-30 11:29 ` Eric Dumazet

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