Re: number of processes forked since boot

2001-01-17 Thread Daniel Rock
Hajimu UMEMOTO schrieb: > > Hi, > > I wish to obtain number of processes forked since boot from userland. > So, I made a patch to intend to commit. > Any comment? I have done a similar approach. I was inspired by the "vmstat -s" output of Solaris. Therefor my solution was integrated into the vmm

Re: number of processes forked since boot

2001-01-15 Thread Peter Jeremy
On 2001-Jan-15 23:24:22 +0100, Andrzej Bialecki <[EMAIL PROTECTED]> wrote: >On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: ... >> +static unsigned int nforks = 0; >> +SYSCTL_UINT(_kern, KERN_NFORKS, nforks, CTLFLAG_RD, &nforks, 0, ""); > >If any, I think this should be long, otherwise on machines like

Re: number of processes forked since boot

2001-01-15 Thread Andrzej Bialecki
On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: > Hi, > > I wish to obtain number of processes forked since boot from userland. > So, I made a patch to intend to commit. > Any comment? > Index: sys/kern/kern_fork.c > diff -u sys/kern/kern_fork.c.orig sys/kern/kern_fork.c > --- sys/kern/kern_fork.c.o

Re: number of processes forked since boot

2001-01-15 Thread Hajimu UMEMOTO
> On Mon, 15 Jan 2001 21:07:08 +0100 (CET) > Paul Herman <[EMAIL PROTECTED]> said: pherman> Yes, that's my read from the source. What I also like about it is pherman> that it counts [vr]forks to boot, plus vmpages affected by the fork. pherman> After I first saw this in OBSD I was reall

Re: number of processes forked since boot

2001-01-15 Thread Paul Herman
On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: > > On Mon, 15 Jan 2001 19:46:32 +0100 (CET) > > Paul Herman <[EMAIL PROTECTED]> said: > > pherman> I like the idea, but this belongs in vmeter with context switches, > pherman> page faults, etc, doesn't it? This is how OpenBSD does it, anyway.

Re: number of processes forked since boot

2001-01-15 Thread Hajimu UMEMOTO
> On Mon, 15 Jan 2001 19:46:32 +0100 (CET) > Paul Herman <[EMAIL PROTECTED]> said: pherman> On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: > bright> * Hajimu UMEMOTO <[EMAIL PROTECTED]> [010115 10:00] wrote: > > > I wish to obtain number of processes forked since boot from userland. > > So,

Re: number of processes forked since boot

2001-01-15 Thread Paul Herman
On Tue, 16 Jan 2001, Hajimu UMEMOTO wrote: > bright> * Hajimu UMEMOTO <[EMAIL PROTECTED]> [010115 10:00] wrote: > > > I wish to obtain number of processes forked since boot from userland. > > So, I made a patch to intend to commit. > > Any comment? I like the idea, but this belongs in vmeter wit

Re: number of processes forked since boot

2001-01-15 Thread Rogier R. Mulhuijzen
> > I wish to obtain number of processes forked since boot from userland. >I think dynamic sysctl is useful for dynamic context. But, here is >just static and it seems there is no advantage. Isn't it? That sounds to me like a wholly dynamic thing. I mean the amount of forks since boot can ri

Re: number of processes forked since boot

2001-01-15 Thread Hajimu UMEMOTO
Hi, > On Mon, 15 Jan 2001 10:06:18 -0800 > Alfred Perlstein <[EMAIL PROTECTED]> said: bright> * Hajimu UMEMOTO <[EMAIL PROTECTED]> [010115 10:00] wrote: > Hi, > > I wish to obtain number of processes forked since boot from userland. > So, I made a patch to intend to commit. > Any commen

Re: number of processes forked since boot

2001-01-15 Thread Alfred Perlstein
* Hajimu UMEMOTO <[EMAIL PROTECTED]> [010115 10:00] wrote: > Hi, > > I wish to obtain number of processes forked since boot from userland. > So, I made a patch to intend to commit. > Any comment? Why not just use a dynamic sysctl for this? -- -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTE