counting total PIDs since the server been started
vladgalu at gmail.com
Tue Dec 14 14:02:23 PST 2004
On Tue, 14 Dec 2004 09:23:46 -0600, Dan Nelson <dnelson at allantgroup.com> wrote:
> In the last episode (Dec 14), Vlad GALU said:
> > On Tue, 14 Dec 2004 09:55:21 +0000, Chris Elsworth <chris at shagged.org> 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
> Dan Nelson
> dnelson at 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.
More information about the freebsd-hackers