From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 21 03:13:57 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C451D16A4CE for ; Fri, 21 Nov 2003 03:13:57 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43C1043FD7 for ; Fri, 21 Nov 2003 03:13:56 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id F10535309; Fri, 21 Nov 2003 12:13:54 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 71A9A5308; Fri, 21 Nov 2003 12:13:47 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id E4B8833C86; Fri, 21 Nov 2003 12:13:46 +0100 (CET) To: Mike Tancsa References: <20031120044945.GA44933@falcon.midgard.homeip.net> <20031120131903.GG300@straylight.m.ringlet.net> <20031120153655.GI300@straylight.m.ringlet.net> <20031121085300.GP300@straylight.m.ringlet.net> <20031121092406.GR300@straylight.m.ringlet.net> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 21 Nov 2003 12:13:46 +0100 In-Reply-To: <20031121092406.GR300@straylight.m.ringlet.net> (Peter Pentchev's message of "Fri, 21 Nov 2003 11:24:06 +0200") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: ss X-Spam-Status: No, hits=2.5 required=5.0 tests=RCVD_IN_DYNABLOCK autolearn=no version=2.60 cc: hackers@freebsd.org Subject: Re: interrupt statistics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 11:13:57 -0000 Peter Pentchev writes: > I was thinking about the setgid bit too, but it can only be removed when > all of vmstat's functionality, not just dointr(), is converted to use > sysctl. I know; I'm working on it, and am more than half done. > Still, here's the updated patch I was speaking of, just to show you what > I meant about the !VMSTAT_SYSCTL buglet and it being less intrusive; > kvm_openfiles() was not invoked even in the !VMSTAT_SYSCTL case, meaning > dointr() wouldn't work at all then. VMSTAT_SYSCTL is a mistake; vmstat must decide at runtime whether to use sysctl (live system) or libkvm (postmortem). DES --=20 Dag-Erling Sm=F8rgrav - des@des.no