Operating System - HP-UX
1823268 Members
3013 Online
109648 Solutions
New Discussion юеВ

How to verify what processes are using semaphore counting now?

 
wowsanta
Occasional Contributor

How to verify what processes are using semaphore counting now?

Hello,

Semaphore on one of my system was fulled as 100% even I set it as 5000. As I know 5000 is not too low value for running task. How I can check what process is using semaphore ? Is it possible from glance?
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: How to verify what processes are using semaphore counting now?

Have a look at

man ipcs

HTH!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: How to verify what processes are using semaphore counting now?

Welcome to the forums!

Consider to choose another user name other than "How to check what processes are using semaphore?"

;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Deepak Kulkarni
Regular Advisor

Re: How to verify what processes are using semaphore counting now?

Hi,

Yes, certainly. Please use glance -t.

And also as suggested by Torsten. Please use the different username. :-)


Regards
DK
Sandeep_Chaudhary
Trusted Contributor

Re: How to verify what processes are using semaphore counting now?

ipcs is better command to find semaphore
use "ipcrm -M {shmkey}" to kill
Srinikalyan
Regular Advisor

Re: How to verify what processes are using semaphore counting now?

Hi,
Use ipcs|grep to find the used semaphore.
ipcrm -m to kill that one.

Thanks,
Srini
wowsanta
Occasional Contributor

Re: How to verify what processes are using semaphore counting now?

Hello all,
I'm sorry for using subject as my author name because of not used at this.

Thanks for your advice and would like to give one more question.

from output of ipcs -s -bcp, how I can verify what process is using specific KEY?
For example, can I know what process is using 0x4f0d1118 KEY?

IPC status from /dev/kmem as of Tue Jun 3 17:40:49 2008
T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS
Semaphores:
s 0 0x4f0d1118 --ra------- root root root root 1
s 4097 0x410ce8b0 --ra-ra-ra- root root root root 1
s 4098 0x4e0c0002 --ra-ra-ra- root root root root 2
s 20483 0x410e110f --ra-ra-ra- root root root root 2
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution
Dennis Handly
Acclaimed Contributor

Re: How to verify what processes are using semaphore counting now?

>from output of ipcs -s -bcp, how I can verify what process is using specific KEY?

You can't. Try "ipcs -sa". (I'm not even sure that will work.)

glance may be able to do it.