Operating System - Linux
1752696 Members
5944 Online
108789 Solutions
New Discussion юеВ

Re: 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 5
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
Don Morris_1
Honored Contributor

Re: Tool for viewing process segments

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