Operating System - HP-UX
1836436 Members
2658 Online
110100 Solutions
New Discussion

Re: questions about procsize

 
SOLVED
Go to solution
EnmaAi
Occasional Advisor

questions about procsize

Hi!
I'm using procsize to see how much memory a process(2258) is using, but I don't know how to interpret the results...
Where can I find more information about procsize, I cant' find anything....

*using procsize
PID = 2258
UAREA = v 456
TEXT = 10
DATA = 4085
STACK = 528
SHMEM = 0
IO = 0
MMAP = 111238
swalloc = 23023
Total = 116317
---- * ----
*using glance
pid proc_name mem_virt
--------------------------------
2258 java 412.1mb

Can anybody answer my questions please ^_^

1)I read "the numbers in the output of procsize are the number of 4K pages. So, mulitply by 4096 to get a byte count"
?????? an example please...

2)Are the results of glance and procsize the same???

3)What are the meanings of:
UAREA TEXT DATA STACK SHMEM IO MMAP swalloc Total ????

Thanks and regards
5 REPLIES 5
Don Morris_1
Honored Contributor
Solution

Re: questions about procsize

Well, I don't know what procsize is -- but I have a good idea from what you've posted (it is pretty obviously using data from pstat_getprocvm()).

1) Well, actually it is in pages and a page size is determine from sysconf(_SC_PAGE_SIZE); Usually that's 4096 bytes, yes.

So [for example] your Text usage is (10 * 4096) or 40960 bytes (or 40kb).

2) Assuming it is reporting Virtual usage and not Physical [since Glance is definitely virtual] -- procsize Total is 116317 pages [from what I can tell, this doesn't include Swap... which is good]. That's 465268kb (116317*4) or 454.363Mb. No, they're not exactly the same... but Glance if I recall correctly adjusts shared objects to balance the virtual size across all the attached processes... so the 30Mb difference is likely there. Certainly close enough for most purposes, anyway.

3) They're the types of the virtual objects reported. Uareas are Kernel User Areas used by threads. Text is the program text (executable from the binary), Data is Static and Dynamic Data [kind of obvious], Stack is the User main thread stack, Shmem is System V Shared Memory, IO is Memory Mapped I/O, MMAP is Memory Mapped objects (either Anonymous memory or Files). swalloc is, I assume Swap Allocated shorthand.

Total is well, total...

Honestly -- if you have to ask what Text, Data etc. are -- you should probably look over the Memory Management White Paper at:
http://docs.hp.com/en/1218/mem_mgt.html

Otherwise, understanding what these tools are telling you is going to be difficult.
Jaime Bolanos Rojas.
Honored Contributor

Re: questions about procsize

Enma,

Since procsize it´s and unsupported HP-UX tool you will not find much information for it, your best bet is to open a case in the Response Center and let´s them analize the output for it.

Regards,

Jaime.
Work hard when the need comes out.
EnmaAi
Occasional Advisor

Re: questions about procsize

thanks for your help!

I'm using procsize because I wanted to compare both results and they are different... I don't know why...

with glance: 412.1Mb
with procsize:454 Mb

42Mb is a great difference!!!
does anyone know why this is happening??

thanks and regards,
^_^
EnmaAi
Occasional Advisor

Re: questions about procsize

End of post!
i read carefully the previous answers! sorry!!!!
EnmaAi
Occasional Advisor

Re: questions about procsize

no more questions