counting total PIDs since the server been started

Vlad GALU vladgalu at gmail.com
Tue Dec 14 01:53:19 PST 2004


On Tue, 14 Dec 2004 12:33:45 +0300, scream <screamer at 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 at stickit.nu
> 
> _______________________________________________
> freebsd-performance at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-performance
> To unsubscribe, send any mail to "freebsd-performance-unsubscribe at 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.


More information about the freebsd-hackers mailing list