From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 14 22:02:23 2004 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 0C68516A4CE for ; Tue, 14 Dec 2004 22:02:23 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CD1A43D7B for ; Tue, 14 Dec 2004 22:02:21 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so1183873rng for ; Tue, 14 Dec 2004 14:02:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=luXht/w72hCfMO643kuIQNJV2zUDBrlOiqJ8+2Wvfv+BT+rQ2Rl3OH/bySLDSj4BWyPkwE3fsg9Lg6P/wbi/ZyCNdbGGXKmRzq0S2IINS0XiynKyCEkZyX0CmIs9IlGsWMFHTtW/9FhmJCDJP2t+sJCQcgdOyo/QW2+fakhFYXE= Received: by 10.38.207.1 with SMTP id e1mr486961rng; Tue, 14 Dec 2004 14:00:59 -0800 (PST) Received: by 10.38.149.25 with HTTP; Tue, 14 Dec 2004 14:00:59 -0800 (PST) Message-ID: <79722fad0412141400503434ff@mail.gmail.com> Date: Wed, 15 Dec 2004 00:00:59 +0200 From: Vlad GALU To: Dan Nelson In-Reply-To: <20041214152346.GC37432@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <965002013.20041214123345@stickit.nu> <20041214095521.GA65343@shagged.org> <79722fad04121401572488731c@mail.gmail.com> <20041214152346.GC37432@dan.emsphone.com> cc: freebsd-hackers@freebsd.org Subject: Re: counting total PIDs since the server been started X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vlad GALU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 22:02:23 -0000 On Tue, 14 Dec 2004 09:23:46 -0600, Dan Nelson wrote: > In the last episode (Dec 14), Vlad GALU said: > > On Tue, 14 Dec 2004 09:55:21 +0000, Chris Elsworth wrote: > > > On Tue, Dec 14, 2004 at 12:33:45PM +0300, scream wrote: > > > > I`m trying to solve this puzzle >"how to get statistics about > > > > total count of fork`ed\exec`ed processes since the server been > > > > rebooted and even make some RRD-like graphs".I need it to make > > > > some graphs about server perfomance and stability.Could anyone > > > > point me to any usefull docs. > > > > > > OTTOMH without consulting any docs, are these any use: > > > > > > # sysctl -a | grep fork > > > vm.stats.vm.v_forks: 4795379 > > > vm.stats.vm.v_vforks: 1017309 > > > vm.stats.vm.v_rforks: 0 > > > > Hehe, I never noticed those. > > Most Unixes provide these stats under the "vmstat -s" command also. > It'd be nice if Linux had something like that. However, I've been able to reproduce the desired effect by issuing "cat /proc/stat | grep processes". > -- > Dan Nelson > dnelson@allantgroup.com > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.