- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- monitoring the use of shared memory
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
01-23-2006 12:07 AM
01-23-2006 12:07 AM
monitoring the use of shared memory
I will not use the galnce utility om looking for a oneliner to use in a script.
i coud be even better if it was possible to get a list showing processes using shared memory and total amount of shared memory in use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 12:12 AM
01-23-2006 12:12 AM
Re: monitoring the use of shared memory
# ipcs -ma
...offers a view of shared memory segments.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 12:14 AM
01-23-2006 12:14 AM
Re: monitoring the use of shared memory
ipcs -m -a will show you all the entries that you have for shared memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 12:27 AM
01-23-2006 12:27 AM
Re: monitoring the use of shared memory
does segsz show the value in kb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:24 AM
01-23-2006 01:24 AM
Re: monitoring the use of shared memory
Run ipcs -moba command to look at the NATTCH columns and the DTIME columns.
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 02:02 AM
01-23-2006 02:02 AM
Re: monitoring the use of shared memory
To see how shared memory is actually mapped, get a copy of shminfo from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
You can then see all the components and the map address they are using. If you have several processes creating separate shared memory segments, stopping and restarting these programs will quite often create small fragments and prevent the process from restarting.
The other reason for lack of shared memory is due to the use of kill -9. The -9 option is extremely disruptive in that the program is terminated WITHOUT any chyance to cleanup allocated resources such as shared memory. These segments will remain allocated until a reboot or removed with ipcrm (a fairly tricky command to use).
64bit programs do not have any meaningful restrictions on shared memory usage but if you cannot recompile your programs, you may want to look at memory windows to create private maps. See:
http://docs.hp.com/en/943/memwn1_4.pdf
Bill Hassell, sysadmin