From owner-freebsd-questions@FreeBSD.ORG Wed Apr 26 17:28:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C33F216A400 for ; Wed, 26 Apr 2006 17:28:34 +0000 (UTC) (envelope-from kapiltj@yahoo.com) Received: from web81115.mail.mud.yahoo.com (web81115.mail.mud.yahoo.com [68.142.199.47]) by mx1.FreeBSD.org (Postfix) with SMTP id 8635343D70 for ; Wed, 26 Apr 2006 17:28:28 +0000 (GMT) (envelope-from kapiltj@yahoo.com) Received: (qmail 3293 invoked by uid 60001); 26 Apr 2006 17:28:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=T9a3ZCI84VCfz8QwHLepAaD6BX2Lta16itzKnaSv616w2SY8EtGWIgzY+rqk2zbkbG488cpzxO/ZcxJiyYEQgJbW5AG68DzLHUbmrASHp8yM1oqoKxWdh8JZtZc6501QsoZq3QIbZylSGl6LdromBxUJIVIc/EdoYw4dXla5yTA= ; Message-ID: <20060426172827.3291.qmail@web81115.mail.mud.yahoo.com> Received: from [66.129.224.36] by web81115.mail.mud.yahoo.com via HTTP; Wed, 26 Apr 2006 10:28:27 PDT Date: Wed, 26 Apr 2006 10:28:27 -0700 (PDT) From: kapil jain To: freebsd-questions@freebsd.org In-Reply-To: <20060425223220.GA90792@owl.midgard.homeip.net> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 26 Apr 2006 17:37:59 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: vm_object resident_page_count and vmspace.vm_pmap.pm_stats.resident_count X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 17:28:35 -0000 Hi, What is the different between the 2 values: vmspace.vm_pmap.pm_stats.resident_count and the sum of vm_object resident_page_count of all objecsts in that vmspace? I thought they might be the same, but looks like they are not. For eg. for 1 process I get from vmspace 168 pages, and 192 pages from objects sum. The resident size is taken from vmspace. Is it that one includes shared pages and the other doesn't? thanks kapil