- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to user pkill
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
07-25-2005 10:33 PM
07-25-2005 10:33 PM
I have a problem in kill the shared memory
ipcs -m -p ---out put is this
shmid owner cpid lpid
40206336 naveens 8940 9687
40239105 naveens 8940 9687
40271874 naveens 8960 9687
Iam not able to kill the process started by naveen
ipcrm -m 10206338
It does not kill the procees
How to kill the process initiated by naveen
Please help
Binu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 10:45 PM
07-25-2005 10:45 PM
Re: How to user pkill
i am not very sure whether you are giving correct shmid for ipcrm. check that first
second, you have to kill both cpid and lpid. Even if either of them still alive and locks the shared memory then you can not remove that.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 10:49 PM
07-25-2005 10:49 PM
Re: How to user pkill
Iam killing the correct one
Please see the out put
root@wiplx03 root]# ipcrm -m 40206336
[root@wiplx03 root]# ipcs -m -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
40206336 naveens 8940 9687
40239105 naveens 8940 9687
40271874 naveens 8960 9687
[root@wiplx03 root]# kill 8940 9687
-bash: kill: (8940) - No such process
-bash: kill: (9687) - No such process
[root@wiplx03 root]#
Thanks
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 12:17 AM
07-26-2005 12:17 AM
Solutioncheck the output of ipcs -a which actually gives detail about shared memory, semaphore and message queue.
check for the particular shared memory and the number of currently attached process to it (column title nattach), for this particular shared memory the nattach column should be 0. otherwise it means some process is still locking the shared memory thus you are not able to remove it.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 12:47 AM
07-26-2005 12:47 AM
Re: How to user pkill
ps -u naveens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 06:21 PM
07-26-2005 06:21 PM
Re: How to user pkill
I have killed all the process initiated by the particular user and it worked fine
Thanks
Binu