From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 14 09:53:19 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 1D51716A4FC for ; Tue, 14 Dec 2004 09:53:19 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB0643D2F for ; Tue, 14 Dec 2004 09:53:18 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by rproxy.gmail.com with SMTP id b11so992133rne for ; Tue, 14 Dec 2004 01:53:17 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ZldxnNcaaAoJoNEtsNmPDRI3h0oHz82HZ3KDrlmHVtY46WTvwi0GrAX7zUeO5al9+haGl2U9Xp/gyY7qTIBm+i8UcQ94NnYVECaiVtemHhgmM+eIpebryMf2kuhhKCSWDt40XMS0T1fd6/EKBJurWdDDTZL1NNjuZsxBTM5sFRg= Received: by 10.38.152.70 with SMTP id z70mr1037721rnd; Tue, 14 Dec 2004 01:53:17 -0800 (PST) Received: by 10.38.149.25 with HTTP; Tue, 14 Dec 2004 01:53:17 -0800 (PST) Message-ID: <79722fad041214015356004369@mail.gmail.com> Date: Tue, 14 Dec 2004 11:53:17 +0200 From: Vlad GALU To: freebsd-hackers@freebsd.org In-Reply-To: <965002013.20041214123345@stickit.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <965002013.20041214123345@stickit.nu> 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 09:53:19 -0000 On Tue, 14 Dec 2004 12:33:45 +0300, scream wrote: > Hello freebsd-hackers, > > 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 Maybe add your own read-only sysctl OID and then replace the fork() syscall so it would increment the corresponding variable accordingly at each run ? Read Andrew Reiter's or Pragmatic's tutorials on hacking system calls. After that, take a look at pjd's page, he has some nice stuff that also implements additional sysctls: http://www.daemonnews.org/200010/blueprints.html http://garage.freebsd.pl/ > to make some graphs about server perfomance and stability.Could > anyone point me to any usefull docs. > > -- > Best regards, > Dmitry S. Polyakov mailto:screamer@stickit.nu > > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > -- 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.