From owner-freebsd-questions Thu Nov 16 15:36:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id B113037B4C5 for ; Thu, 16 Nov 2000 15:36:06 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id eAGNY4B71328; Thu, 16 Nov 2000 15:34:04 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3A1C57B4@zathras.cc.vt.edu> Date: Thu, 16 Nov 2000 15:34:43 -0800 (PST) From: John Baldwin To: flaw Subject: RE: FreeBSD VM Cc: George Reid Cc: George Reid , freebsd-questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 16-Nov-00 flaw wrote: > Maybe due to the amount of memory, the program is still in memory so no page > faults are induced. But why cnt.v_vm_faults (cnt is the vmmeter) are > incremented much more frequently than p->p_stats->p_ru.ru_majflt? Also, the > swapper process with pid 0 (why pid 0?) has ru_majflt the same as > cnt.v_vm_faults. > > Any help and explanation is appreciated. Well, the swapper is actually a kernel process, so it doesn't have to swap in any text via pageins for itself. However, it faults in other processes, and those pagein's are presumably counted both by cnt.v_vm_faults and majflt. As for why v_vm_faults is incremented more often, I'm not sure. Perhaps majflt doesn't take COW faults into account. You might want to ask this on hackers@FreeBSD.org instead. :) > Thanks. > Ray, -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message