- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List of processes attached to 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
Discussions
Discussions
Discussions
Forums
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
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-05-2001 01:06 AM
тАО01-05-2001 01:06 AM
T ID KEY MODE OWNER GROUP CPID LPID
...
m 63004 0x00000000 D-rw-r----- oracle dba 3919 4346
m 5 0x00000000 D-rw-r----- oracle dba 3919 4346
...
These segments look removed. However since some processes are attached to them, the system cannot remove them. The attached processes are not 3919, neither 4346. How can I find which process uses these segments?
I was not able to find such an information in gpm or lsof...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 02:44 AM
тАО01-05-2001 02:44 AM
Re: List of processes attached to shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 02:50 AM
тАО01-05-2001 02:50 AM
Re: List of processes attached to shared memory
# ipcs -mo
IPC status from /dev/kmem as of Fri Jan 5 12:50:18 2001
T ID KEY MODE OWNER GROUP NATTCH
Shared Memory:
...
m 63004 0x00000000 D-rw-r----- oracle dba 2
m 5 0x00000000 D-rw-r----- oracle dba 4
I want to find out what they are...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 03:57 AM
тАО01-05-2001 03:57 AM
Re: List of processes attached to shared memory
Try ipcs -t to find out if the OTIME has no-entry(without time) and also ipcs -mob to get the id's.
You can remove the shared memory id's with ipcrm -m id number.
You can also try lsof to get the exact process attached to the shared memory segment.
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.51/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 04:31 AM
тАО01-05-2001 04:31 AM
Re: List of processes attached to shared memory
BTW: Full "ipcs -ma" output is as follows:
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 63004 0x00000000 D-rw-r----- oracle dba oracle dba 2 819200000 3919 4346 8:43:40 8:43:40 8:43:40
m 5 0x00000000 D-rw-r----- oracle dba oracle dba 4 557936640 3919 4346 8:43:40 8:43:40 8:43:40
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 07:32 AM
тАО01-05-2001 07:32 AM
Re: List of processes attached to shared memory
# ipcrm -m 63004
ipcrm: shmid(63004): not found
Now, we are stuck! We *have* to release that 1.3 GB of memory, but how can we do it without rebooting the system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2001 10:15 AM
тАО01-05-2001 10:15 AM
Re: List of processes attached to shared memory
There is no ipc id in the information about the memory regions. If you are looking for a 1.3GB region, then it should be easy to pick it out by the pst_length value. That is the size of the region measured in 4KB pages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2001 09:29 AM
тАО01-06-2001 09:29 AM
Re: List of processes attached to shared memory
since you are talking about shared memory beeing used
by oracle, why not using "svrmgrl"? Do something like:
su - oracle
svrmgrl
connect internal
shutdown abort
exit
exit
Usually that is pretty safe - except if you are not up to
date with oracle-patches! Your really need patches, if
you have a *.*.*.0.0 release! (Like 8.1.6.0.0, or even
7.3.4.0.0, I have seen that problem often then!)
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2001 02:44 AM
тАО01-07-2001 02:44 AM
Re: List of processes attached to shared memory
Now, the problem is: Since this is a production system (this means that I cannot reboot the system at my will) how can I change these incorrect counts and set them to zero, so the shared memory can be removed, without rebooting the box. Is there any Q4 expert or kernel debugger out there to help me!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2001 05:03 AM
тАО01-07-2001 05:03 AM
Re: List of processes attached to shared memory
Oracle uses both shared memory and semaphores. In addition to shared memory, semaphores should also be checked via ipcs. If the Oracle semaphores had not been released previously during an Oracle shutdown, they have to be manually removed via ipcrm. Otherwise, Oracle may have difficulty in starting up.
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2001 11:23 AM
тАО01-08-2001 11:23 AM
Re: List of processes attached to shared memory
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2001 11:33 PM
тАО01-08-2001 11:33 PM
Re: List of processes attached to shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 01:34 PM
тАО03-17-2010 01:34 PM
SolutionUsing the HP-provided "kmeminfo" utility like this gives tons of good info:
kmeminfo -shmem
For example if "ipcs -m" shows:
-----
T ID KEY MODE OWNER GROUP
Shared Memory:
m 0 0x41181147 --rw-rw-rw- root root
m 1 0x4e0c0002 --rw-rw-rw- root root
m 2 0x411c0b3b --rw-rw-rw- root root
m 3 0x411898ef --rw------- root root
-----
Use kmeminfo like this:
-----
# ./kmeminfo -shmem 2
... trimmed ...
Processes using this segment:
proc=0x52ac4000 (pid 749 "nktl_daemon")
proc=0x52ac8000 (pid 759 "ntl_reader")
-----
And there you have the two PIDs attached to that shared memory segment.
Now you know what to kill or shut down to free up that segment.
-- Steve