From owner-freebsd-hackers Thu Feb 1 18:48:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 5991037B491 for ; Thu, 1 Feb 2001 18:48:27 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f122mNW20382; Thu, 1 Feb 2001 18:48:23 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200102020248.f122mNW20382@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Zhiui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Obtain a list of active vnodes In-Reply-To: Date: Thu, 01 Feb 2001 18:48:23 -0800 From: Peter Wemm Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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