Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 11:39:47 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Raymond Law <flaw@vt.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD VM
Message-ID:  <20001116113946.H830@fw.wintelcom.net>
In-Reply-To: <4.3.0.20001116105701.00b69320@mail.vt.edu>; from flaw@vt.edu on Thu, Nov 16, 2000 at 10:57:50AM -0500
References:  <4.3.0.20001116105701.00b69320@mail.vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Raymond Law <flaw@vt.edu> [001116 07:48] wrote:
> majflt doesn't increase when a process is generating page faults.  Instead, 
> the swapper process (pid 0) gets all the page faults and it is the same as 
> the page faults given by cnt in vmmeter.c.  Why is this happening?  Is 
> there a way to get the number of page faults generated by a SINGLE process?
> 
> proc *p;
> num_pageflts = p->p_stats->p_ru.majflt
> 
> The above doesn't get increased.

Patches are appreciated, or use send-pr.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001116113946.H830>