From owner-freebsd-hackers Thu Feb 1 10:17:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.gmx.net (pop.gmx.de [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id D7ED137B503 for ; Thu, 1 Feb 2001 10:17:27 -0800 (PST) Received: (qmail 908 invoked by uid 0); 1 Feb 2001 18:17:25 -0000 Received: from p3ee2143e.dip.t-dialin.net (HELO forge.local) (62.226.20.62) by mail.gmx.net (mail07) with SMTP; 1 Feb 2001 18:17:25 -0000 Received: from thomas by forge.local with local (Exim 3.16 #1 (Debian)) id 14OOIJ-0000EA-00 for ; Thu, 01 Feb 2001 19:17:19 +0100 Date: Thu, 1 Feb 2001 19:17:19 +0100 From: Thomas Moestl To: freebsd-hackers@freebsd.org Subject: Re: removing setgid kmem from top, collecting per-device swap stats Message-ID: <20010201191719.A703@crow.dom2ip.de> Mail-Followup-To: Thomas Moestl , freebsd-hackers@freebsd.org References: <20010130224759.A1589@crow.dom2ip.de> <20010201171135.O70673@hand.dotat.at> <20010202.022829.04064803.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010202.022829.04064803.ume@mahoroba.org>; from ume@mahoroba.org on Fri, Feb 02, 2001 at 02:28:29AM +0900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Feb 02, 2001 at 02:28:29AM +0900, Hajimu UMEMOTO wrote: > >>>>> On Thu, 1 Feb 2001 17:11:35 +0000 > >>>>> Tony Finch said: > > dot> Thomas Moestl wrote: > > > >Most kmem_read calls are easy to replace (the variables are already > >exported as sysctls), the only exception is nextproc (for which I might > >add a sysctl, or just leave it out [anyone out there who needs the > >lastpid display?]). > > dot> It's useful for seeing how fast the machine is forking. > I beleive it's not meaningful if randompid is enabled. It is. It gives the greatest pid used up to now. The next pid is determined by adding 1 (and randomness in the randompid case) to it. This is why I can export it without defeating randompid. Of course, it would still be better to track the sysctls you named for this, but people seem to like the lastpid dispay, so I won't remove it for now. - thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message