On Wed, Aug 22, 2001 at 12:39:26PM -0500, Alfred Perlstein wrote:
> * Anton Berezin <[EMAIL PROTECTED]> [010822 10:40] wrote:

> > 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)

That's not quite it - it does not provide the statistics of what number
of pages is currently on PQ_ACTIVE/PQ_INACTIVE queues, and I think I
need that number.

I was thinking of copying pmap_pid_dump() from sys/i386/i386/pmap.c and
counting the pages belonging to different queues.  Is this a feasible
approach?

Cheers,
=Anton.
-- 
May the tuna salad be with you.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to