Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2001 18:48:23 -0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Zhiui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Obtain a list of active vnodes 
Message-ID:  <200102020248.f122mNW20382@mobile.wemm.org>
In-Reply-To: <Pine.SOL.4.21.0102011606560.3886-100000@onyx> 

next in thread | previous in thread | raw e-mail | index | archive | help
Zhiui Zhang wrote:
> 
> I tried to obtain a list of vnodes in the system.  The command pstat -v no
> longer works.  Is there any way to achieve this or hack the code a little
> bit to achieve this?  Thanks.

pstat -v used to call a sysctl to extract the list.  THe problem was that
it could be so big that it could cause a kernel lockup while the process
had all the locked memory.

pstat -v should probably be rewritten to use kvm_read/write() if the sysctl
isn't going to be fixed.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102020248.f122mNW20382>