- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ps -elf SZ column
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
04-16-2004 01:09 AM
04-16-2004 01:09 AM
ps -elf SZ column
ps -elf list a SZ value that is described as "The size of blocks of the core image of the process."
How big is a block in bytes?
If I know the answer, can I summ all the process blocks plus the free pages from vmstat and get my total 2GB of memory or something close for that instant in time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2004 01:11 AM
04-16-2004 01:11 AM
Re: ps -elf SZ column
4KB is the block size
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 04:21 AM
04-19-2004 04:21 AM
Re: ps -elf SZ column
SZ is a UNIX95 standard part of ps.
The size in physical pages of the core image of the process, including text, data, and stack space.
No you cannot summ all these blocks mainly because these do not account for shared memory, memory mapped files etc.
Again if you could be more specific what you want to achieve it would be easier to suggest an approach for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 04:32 AM
04-19-2004 04:32 AM
Re: ps -elf SZ column
e.g.
UNIX95= ps -e -o vsz,pid,comm
vsz will always be in KB.
Memory calculations are extremely difficult because shared library code might be used by many processes. The same is true of shared memory segments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 06:28 AM
04-19-2004 06:28 AM
Re: ps -elf SZ column
You can use sz,vsz after setting the UNIX95 variable to the open portability standard.
export UNIX95=XPG4
Again "sz" is the real and "vsz" is the virtual size of the core image (data,text and stack) this does not include memory mapped or shared memory regions and cannot be used to sum physical memory totals with vmstat free pages.
Use top/glance as a good starting tool to get per process memory layout information.