Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Tool for viewing process segments

Super Advisor Super Advisor

Tool for viewing process segments

[ Edited ]

Hi,
Collegues,

Does anybody know about a tool that can show info about process segments, aspeccialy I'm interested in watching how many segments process has, of what kind and what size they are. Do not offer glance :)

 

 

P.S.This thread has been moved from HP-UX>System Administration to HP-UX > languages- HP Forums Moderator

5 REPLIES
Honored Contributor Honored Contributor

Re: Tool for viewing process segments

Pstat sounds like what you want. Here's a sample to get you started -- sounds like it should be pretty close.
Honored Contributor

Re: Tool for viewing process segments

Hi,

A perl wrapper for pstat() functions is available here:

http://search.cpan.org/CPAN/authors/id/S/SC/SCHWENKE/HPUX-Pstat-1.01.tar.gz

PCS
Super Advisor Super Advisor

Re: Tool for viewing process segments

Well, it seems this is exactly (or so) what I need, but the prog does not print segments.
I call it like
pstat -v 541
and it outputs only
VIRT/PHYS/LOCKED/SWAP summaries in pages.
System page size is 4096 or 0x1000 bytes.
What's wrong?
Super Advisor Super Advisor

Re: Tool for viewing process segments

I've added perror call after call to getproc:
pstat_getproc: Value too large to be stored in data type
Highlighted
Honored Contributor Honored Contributor

Re: Tool for viewing process segments

What are you compiling on? (OS version, architecture, compiler)