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 solu
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 pa
* 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 P
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 PRO
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
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_
> 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
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.
>>>>> 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
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
> > 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 fork
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 use
* 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 - [[EM
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
14 matches
Mail list logo