Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2005 12:45:14 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Borja Marcos <borjamar@sarenet.es>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: MBUF statistics
Message-ID:  <Pine.NEB.3.96L.1050216124109.4054G-100000@fledge.watson.org>
In-Reply-To: <02266ed294653cda2452e7ac0a713c2c@sarenet.es>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 15 Feb 2005, Borja Marcos wrote:

> 	Looking at the mbuf statistics available in FreeBSD 4 and
> FreeBSD 5 I can see that the statistics available in FreeBSD 5 are,
> surprisingly, much less comprehensive. Is there any other place where I
> can find out how many mbuf requests have been done, how many of them
> have waited, how many have failed, etc? 
> 
> 	I think that it's an interesting resource to graph in a Orca
> performance monitor for FreeBSD. 

This statistic appears to have been lost during the conversion to UMA
allocating mbufs.  I probably won't get to it this week, but I'll try to
get that statistic back in the mix in the next week or two. Unfortunately,
it may break the user<->kernel ABI for monitoring applications, since
there appear to be no spare fields in the mbstat structure.  What I'd like
to do, actually, is add tracking of allocation failures to UMA, and then
use UMA statistics to generate the mbuf output of netstat rather than a
separate API.  This would also eliminate SMP races present in the
maintenance of mbuf statistics (they can "drift" on SMP boxes right now).

Robert N M Watson




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1050216124109.4054G-100000>