HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: shminfo
Operating System - HP-UX
1825734
Members
2554
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-16-2004 04:05 AM
11-16-2004 04:05 AM
shminfo
after looking at ipcs -ma I have a few NATTACH at zero so I then run the shminfo c program to tell me if there is a active process associated with that segment.... all if fine and dandy then I remove it. My question is when I run is w/out any switches ./shminfo it give me this as attached. What are all the FREE data rows and in general how do I read this output?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 04:38 PM
11-16-2004 04:38 PM
Re: shminfo
AFAIK it is not safe to remove shared memory segment if NATTCH is zero. Process may initialise the segment and exit, and other related processes may need to attach to the segment in the future (even though no processes are attached to the segment at the moment).
I think it's best to leave it unless you are having specific problems (database can't start etc).
In the output of shminfo
FREE refers to unallocated areas
SHMEM refers to shared memory
OTHER refers to memory-mapped files
I think it's best to leave it unless you are having specific problems (database can't start etc).
In the output of shminfo
FREE refers to unallocated areas
SHMEM refers to shared memory
OTHER refers to memory-mapped files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 04:46 PM
11-16-2004 04:46 PM
Re: shminfo
Hi Derek,
"ipcrm"ing the segments is only to be done as a last resort as you simply wouldn't know whether that segment is being used or not. Unless you don't have your application running on the system and you are sure about removing it, you cannot remove it based on the outputs. ipcs -ma will show you CPID (PID that created the segment) and LPID (PID that last accessed the segment). Along with them not running and NATTACH being 0 *may* assist you determine the probable candidates.. but again based on the condition that the system is not running anything.
-Sri
"ipcrm"ing the segments is only to be done as a last resort as you simply wouldn't know whether that segment is being used or not. Unless you don't have your application running on the system and you are sure about removing it, you cannot remove it based on the outputs. ipcs -ma will show you CPID (PID that created the segment) and LPID (PID that last accessed the segment). Along with them not running and NATTACH being 0 *may* assist you determine the probable candidates.. but again based on the condition that the system is not running anything.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP