Re: Tool for viewing process segments (174 Views)
Reply
Super Advisor
Maxim Yakimenko
Posts: 196
Registered: ‎05-23-2006
Message 1 of 6 (174 Views)

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

Please use plain text.
Honored Contributor
Don Morris_1
Posts: 797
Registered: ‎05-08-2001
Message 2 of 6 (174 Views)

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.
Please use plain text.
Honored Contributor
spex
Posts: 1,367
Registered: ‎05-14-1996
Message 3 of 6 (174 Views)

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
Please use plain text.
Super Advisor
Maxim Yakimenko
Posts: 196
Registered: ‎05-23-2006
Message 4 of 6 (174 Views)

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?
Please use plain text.
Super Advisor
Maxim Yakimenko
Posts: 196
Registered: ‎05-23-2006
Message 5 of 6 (174 Views)

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
Please use plain text.
Honored Contributor
Don Morris_1
Posts: 797
Registered: ‎05-08-2001
Message 6 of 6 (174 Views)

Re: Tool for viewing process segments

What are you compiling on? (OS version, architecture, compiler)
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation