Unix Programming - real and virtual memory statistics on hp-ux and tru64

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2005 > real and virtual memory statistics on hp-ux and tru64





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author real and virtual memory statistics on hp-ux and tru64
jtucker

2005-11-30, 5:55 pm

Hello,

I need to get some memory info (total real/virtual and free
real/virtual) on hp-ux and tru64 machines from a c program. I've been
searching for awhile now and haven't made any progress.

Anyone got a solution or a good hint?

Thanks,
Jeremy

Maxim Yegorushkin

2005-11-30, 5:55 pm


jtucker wrote:

> I need to get some memory info (total real/virtual and free
> real/virtual) on hp-ux and tru64 machines from a c program. I've been
> searching for awhile now and haven't made any progress.


You can look it up in sources of ps/top for your platform.

jtucker

2005-11-30, 5:55 pm

Where exactly would I need to look to find the source code for ps/top
on hp-ux and tru64?

Don Morris

2005-11-30, 5:55 pm

jtucker wrote:
> Hello,
>
> I need to get some memory info (total real/virtual and free
> real/virtual) on hp-ux and tru64 machines from a c program. I've been
> searching for awhile now and haven't made any progress.
>
> Anyone got a solution or a good hint?


man pstat.

If you want the system as a whole, pstat_getdynamic().
If you want per-process information, iterate with
pstat_getprocvm() for per-process-region information.

That's on HP-UX. No idea for Tru64.

Don
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com