Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Tool for viewing process segments

Maxim Yakimenko
Super Advisor

Tool for viewing process segments

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
Don Morris_1
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.
spex
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
Maxim Yakimenko
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?
Maxim Yakimenko
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
Don Morris_1
Honored Contributor

Re: Tool for viewing process segments

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