From owner-freebsd-hackers Wed Aug 22 8:38: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from heechee.tobez.org (254.adsl0.ryv.worldonline.dk [213.237.10.254]) by hub.freebsd.org (Postfix) with ESMTP id 76BA637B412 for ; Wed, 22 Aug 2001 08:37:56 -0700 (PDT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 187AF541D; Wed, 22 Aug 2001 17:37:53 +0200 (CEST) Date: Wed, 22 Aug 2001 17:37:53 +0200 From: Anton Berezin To: hackers@freebsd.org Subject: VM statistics per process? Message-ID: <20010822173753.A11906@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, As a part of a little project studying the perfomance of different malloc(3) implementations I need to gather certain VM statistics. The problem is that the required data are only available globally, and I need it for a given process. Some of the values I am interested in are available from the struct vmspace, for example p->p_vmspace->vm_rssize will provide me with the number of resident pages. But I'd like to be able to also get the number of active and inactive pages belonging to a particular process. What should I do in order to get this information? =Anton. -- May the tuna salad be with you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message