Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 12:39:26 -0500
From:      Alfred Perlstein <bright@mu.org>
To:        Anton Berezin <tobez@tobez.org>
Cc:        hackers@freebsd.org
Subject:   Re: VM statistics per process?
Message-ID:  <20010822123926.P81307@elvis.mu.org>
In-Reply-To: <20010822173753.A11906@heechee.tobez.org>; from tobez@tobez.org on Wed, Aug 22, 2001 at 05:37:53PM %2B0200
References:  <20010822173753.A11906@heechee.tobez.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Anton Berezin <tobez@tobez.org> [010822 10:40] wrote:
> 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?

getrusage(2)

-- 
-Alfred Perlstein [alfred@freebsd.org]
Ok, who wrote this damn function called '??'?
And why do my programs keep crashing in it?

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




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