Re: Add socket related statistics to netstat(1)?



On Wed, Aug 29, 2007 at 02:39:57PM +0100, Robert Watson wrote:


On Wed, 29 Aug 2007, Igor Sysoev wrote:

On Wed, Aug 29, 2007 at 02:48:57PM +0800, LI Xin wrote:

Here is a proof-of-concept patch that adds sockets related statistics to
netstat(1)'s -m option, which could make SA's life easier. Inspired by a
local user's suggestion.

Comments?

I think socket info should be groupped together:

The netstat -m output is getting quite cluttered these days, isn't it. I
wonder if we should be laying it out a bit more consistently, perhaps
something like:

current cache total max
mbufs 2407 1058 3465 -
mbuf clusters 1117 797 1914 98304
mbufs + clusters 1117 90 - -
4k jumbo clusters 761 417 1178 0
...

It's less compact but possibly quite a bit more readable...

I agree - it's much better, however, someone may argue that it
will break statistic scripts.
May we should use anthor switch.

2407/1058/3465 mbufs in use (current/cache/total)
1117/797/1914/98304 mbuf clusters in use (current/cache/total/max)
1117/90 mbuf+clusters out of packet secondary zone in use (current/cache)
761/417/1178/0 4k (page size) jumbo clusters in use
(current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
5879K/3526K/9406K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
15333/15537/30870/204800 socket UMA in use (current/cache/total/max)
5929K bytes allocated to socket
0 request for socket UMA denied
104/264/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
135834 requests for I/O initiated by sendfile
0 calls to protocol drain routines

Second, I think socket memory calculation should include
tcpcb, udpcb, inpcb, unpcb and probably tcptw items.


--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"


--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: aio_connect ?
    ... Igor Sysoev wrote: ... >>to also perform socket connects asynchronously. ... >FreeBSD allows to post AIO operaitons on non-connected socket. ...
    (freebsd-net)
  • Re: Add socket related statistics to netstat(1)?
    ... On Wed, 29 Aug 2007, Igor Sysoev wrote: ... local user's suggestion. ... I think socket info should be groupped together: ... requests for sfbufs delayed ...
    (freebsd-net)
  • Re: Add socket related statistics to netstat(1)?
    ... On Wed, 29 Aug 2007, Igor Sysoev wrote: ... 1117/90 mbuf+clusters out of packet secondary zone in use ... 5929K bytes allocated to socket ... requests for sfbufs delayed ...
    (freebsd-net)
  • Re: CAtlHttpClient Navigate()
    ... TCPWaitedTimeDelay registry setting parameter to control the number of ... of 4000 sockets and that was the point when we started seeing the Socket ... I suggest that the problem isn't in CAtlHttpClient, but more likely in the way your test harness is designed. ... After about 4000 requests we start getting a "WSAEADDRINUSE" ...
    (microsoft.public.vc.atl)
  • Re: 2.6.22-rc1-mm1 cifs_mount oops
    ... file requests time to exit from the cifs vfs). ... in various socket calls). ... sfrench at-sign us dot ibm dot com ...
    (Linux-Kernel)