From owner-freebsd-current Mon Jan 15 12: 7:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 638F637B400; Mon, 15 Jan 2001 12:07:22 -0800 (PST) Received: from husten.security.at12.de (dial-213-168-72-73.netcologne.de [213.168.72.73]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id VAA12079; Mon, 15 Jan 2001 21:07:17 +0100 (MET) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.1/8.11.1) with ESMTP id f0FK79Y52463; Mon, 15 Jan 2001 21:07:09 +0100 (CET) (envelope-from pherman@frenchfries.net) Date: Mon, 15 Jan 2001 21:07:08 +0100 (CET) From: Paul Herman To: Hajimu UMEMOTO Cc: Subject: Re: number of processes forked since boot In-Reply-To: <20010116.043828.97301753.ume@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: > >>>>> On Mon, 15 Jan 2001 19:46:32 +0100 (CET) > >>>>> Paul Herman said: > > pherman> I like the idea, but this belongs in vmeter with context switches, > pherman> page faults, etc, doesn't it? This is how OpenBSD does it, anyway. > > I see. > You mean accessing uvmexp.forks via sysctl. > Does it solved by just moving nforks into vm_meter.c? Yes, that's my read from the source. What I also like about it is that it counts [vr]forks to boot, plus vmpages affected by the fork. After I first saw this in OBSD I was really motivated to do just what you've done for FreeBSD, but never got around to it. If you like, I'll see if I can't come up with something similar. Shouldn't be too hard. I'll try that tonight. The hardest part would be finding a spot on the systat(1) display to put it. :-) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message