From owner-cvs-all Tue Jan 23 3:27:39 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id AF78537B69E; Tue, 23 Jan 2001 03:27:17 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA11056; Tue, 23 Jan 2001 22:27:07 +1100 Date: Tue, 23 Jan 2001 22:27:00 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Peter Wemm Cc: Garrett Wollman , Dag-Erling Smorgrav , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vmstat vmstat.8 In-Reply-To: <200101231010.f0NAAL400873@mobile.wemm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 23 Jan 2001, Peter Wemm wrote: > Garrett Wollman wrote: > > < org> said: > > > > > Document that the -z option is equivalent to 'sysctl vm.zone'. > > > > This really shouldn't be documented (and `sysctl vm.zone' should just > > tell the user to use the correct program). > > Also, 'vmstat -M vmcore.6 -z' has just been broken. :-( Support for dead kernels has been broken in many utilities by converting to using sysctl() without keeping support for reading from kvm. The extent of the damage seems to be smaller than I thought. In ps, it seems to be limited to reading a few variables using sysctl in donlist(). In pstat, it is limited to -t and -v (and -v is disabled anyway). libkvm seems to be more careful, perhaps because it always had to handle dead kernels specially. It used to insulate utilities from most of the differences for dead kernels. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message