- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: questions about procsize
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 03:24 AM
11-07-2007 03:24 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 05:33 AM
11-07-2007 05:33 AM
Solution1) 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 06:02 AM
11-07-2007 06:02 AM
Re: questions about procsize
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 11:13 PM
11-07-2007 11:13 PM
Re: questions about procsize
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,
^_^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 11:17 PM
11-07-2007 11:17 PM
Re: questions about procsize
i read carefully the previous answers! sorry!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 11:18 PM
11-07-2007 11:18 PM