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 t

[CFR] number of processes forked since boot

2001-01-16 Thread Hajimu UMEMOTO
Hi, I received the patch to add counter for fork() set from Paul. I've tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. So, I post his patch for review. Thanks, Paul. fork.patch.gz Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan [EMAIL PROTECTED] [EMAIL

Re: [CFR] number of processes forked since boot

2001-01-16 Thread Alfred Perlstein
* Hajimu UMEMOTO [EMAIL PROTECTED] [010116 10:33] wrote: Hi, I received the patch to add counter for fork() set from Paul. I've tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. So, I post his patch for review. Thanks, Paul. I like this a lot. -- -Alfred Perlstein

Re: [CFR] number of processes forked since boot

2001-01-16 Thread Paul Herman
On Wed, 17 Jan 2001, Hajimu UMEMOTO wrote: I received the patch to add counter for fork() set from Paul. I've tested it on my -CURRENT and -STABLE boxes, and it seems fine for me. So, I post his patch for review. I do have a change (I knew I forgot something.) This is exactly the same

number of processes forked since boot

2001-01-15 Thread Hajimu UMEMOTO
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: lib/libc/gen/sysctl.3 diff -u lib/libc/gen/sysctl.3.orig lib/libc/gen/sysctl.3 --- lib/libc/gen/sysctl.3.orig Fri Jan 12 02:39:22 2001 +++ lib/libc/gen/sysctl.3

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 comment? bright Why

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 rise

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 with context

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, I made a patch

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. I see. You mean

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 really motivated to

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.orig Fri

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 web