Re: netstat wierdness?

From: John Baldwin <jhb_at_freebsd.org>
Date: Mon, 26 Mar 2007 15:13:26 -0400
On Tuesday 13 March 2007 09:41:20 am Dag-Erling Smørgrav wrote:
> Julian Elischer <julian_at_elischer.org> writes:
> > answering myself..
> > comes from having options LOCK_PROFILING in my kernel.
> > adding the same to /etc/make.conf and recompiling netstat and libkvm 
helped.
> > (not sure if both are needed)
> 
> This is very bad.  LOCK_PROFILING should have no visible effect on
> userland.  That is precisely what xinpcb, xunpcb, xtcpcb etc. are for:
> to isolate userland from kernel structures.  They should not contain
> any locks or anything else which would be affected by LOCK_PROFILING
> or other kernel options.

LOCK_PROFILING (and it's predecessor MUTEX_PROFILING) have always resulted in 
variant object sizes in the kernel.  They shouldn't be visible to userland 
though, and fixing xfoo is the right step IMHO.

-- 
John Baldwin
Received on Mon Mar 26 2007 - 18:59:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC