counting total PIDs since the server been started

Dan Nelson dnelson at allantgroup.com
Tue Dec 14 14:27:00 PST 2004


In the last episode (Dec 15), Vlad GALU said:
> On Tue, 14 Dec 2004 09:23:46 -0600, Dan Nelson <dnelson at allantgroup.com> wrote:
> > 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".

Linux (debian at least) puts the fork count at the bottom of its "vmstat
-s" output, and "vmstat -s | grep forks" matches "grep processes
/proc/stat".

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-hackers mailing list