- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process ID for a particular semaphore
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
08-15-2005 11:45 PM
08-15-2005 11:45 PM
Process ID for a particular semaphore
Can I find the PID of the proceess which is holding the shd ID in HPUX
My problem is if I want to remove
the shemaphores from the memmory using
ipcrm -m shmid it doent remove ...
So I thought of kill the process which is holding the semphore
Thanks
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 12:03 AM
08-16-2005 12:03 AM
Re: Process ID for a particular semaphore
Also, from what I read one has to remove the shm key, not the id.
good luck :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:03 AM
08-16-2005 01:03 AM
Re: Process ID for a particular semaphore
ipcs -p give the folloing output
root@pdlint01 root]# ipcs -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
32768 root 4509 4512
------ Message Queues PIDs --------
msqid owner lspid lrpid
[root@pdlint01 root]# kill -9 4509
[root@pdlint01 root]# ipcs -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
491520 root 18457 18460
How can I SEE THE pid ???
Thanks
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:11 AM
08-16-2005 01:11 AM
Re: Process ID for a particular semaphore
Better you can use command ipcs with -a option it shows with detailed columns. So that easily you can trace the LPID and kill by noticing the ownership of process.
# ipcs -a
where,
LPID: The process ID of the last process to attach or detach the shared memory segment.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:13 AM
08-16-2005 01:13 AM
Re: Process ID for a particular semaphore
Here is the link
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079989616
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:14 AM
08-16-2005 01:14 AM
Re: Process ID for a particular semaphore
Read as "how to find" and not ..how how to fine!