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