Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2004 11:53:17 +0200
From:      Vlad GALU <vladgalu@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: counting total PIDs since the server been started
Message-ID:  <79722fad041214015356004369@mail.gmail.com>
In-Reply-To: <965002013.20041214123345@stickit.nu>
References:  <965002013.20041214123345@stickit.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Dec 2004 12:33:45 +0300, scream <screamer@stickit.nu> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79722fad041214015356004369>