From owner-freebsd-questions Thu Nov 16 11:39:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 109B437B4CF for ; Thu, 16 Nov 2000 11:39:49 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAGJdlh11746; Thu, 16 Nov 2000 11:39:47 -0800 (PST) Date: Thu, 16 Nov 2000 11:39:47 -0800 From: Alfred Perlstein To: Raymond Law Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD VM Message-ID: <20001116113946.H830@fw.wintelcom.net> References: <4.3.0.20001116105701.00b69320@mail.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Raymond Law [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