tracing Sys V semaphores

2007-12-25 2:12:00

I'm running out of Sys V semaphores -- seems the only way to
add more is to reboot...

ipcs -a -s doesn't report much useful information when the semaphores
are owned by root -- are there any alternatives? Is there a place
that tracks (or can I turn on tracking) to see which process created them?

For example, yesterday I got:
:1 mleisner at santa 09:34:43; ipcs -s -a
IPC status from <running system> as of Thu Oct 16 09:38:52 EDT 2003
T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME
Semaphores:
s 0 0xf9017601 --ra-r--r-- root root root root 1 9:38:45 8:00:58
s 1 0xf9017602 --ra-r--r-- root root root root 1 9:38:44 8:00:58
s 2 0xf9017606 --ra-r--r-- root root root root 1 9:38:48 8:00:58
s 3 0xf9017607 --ra-r--r-- root root root root 1 no-entry 8:00:58
s 4 0xf9017608 --ra-r--r-- root root root root 1 8:00:59 8:00:58
s 5 0xf9017609 --ra-r--r-- root root root root 1 no-entry 8:00:59
s 6 0xf901760a --ra-r--r-- root root root root 1 no-entry 8:00:59
s 2949127 0x39084380 --ra-ra-r-- lla thvsw lla thvsw 3 15:12:13 15:11:45
s 1638408 0x3908ad60 --ra-ra-r-- swarne01 thvsw swarne01 thvsw 3 9:24:43 10:32:30
s 4259849 0x31083170 --ra-ra-r-- dhinz esmd dhinz esmd 3 16:44:56 16:41:19

Just now I got:
:1 mleisner at santa 10:01:14; ipcs -s -a
IPC status from <running system> as of Fri Oct 17 10:01:16 EDT 2003
T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME
Semaphores:
s 0 0xf9017601 --ra-r--r-- root root root root 1 10:01:01 8:00:58
s 1 0xf9017602 --ra-r--r-- root root root root 1 10:01:00 8:00:58
s 2 0xf9017606 --ra-r--r-- root root root root 1 10:01:07 8:00:58
s 3 0xf9017607 --ra-r--r-- root root root root 1 no-entry 8:00:58
s 4 0xf9017608 --ra-r--r-- root root root root 1 8:00:59 8:00:58
s 5 0xf9017609 --ra-r--r-- root root root root 1 no-entry 8:00:59
s 6 0xf901760a --ra-r--r-- root root root root 1 no-entry 8:00:59
s 2949127 0x39084380 --ra-ra-r-- lla thvsw lla thvsw 3 15:12:13 15:11:45
s 1638408 0x3908ad60 --ra-ra-r-- swarne01 thvsw swarne01 thvsw 3 9:24:43 10:32:30
s 4259849 0x31083170 --ra-ra-r-- dhinz esmd dhinz esmd 3 16:44:56 16:41:19

Unfortunately, they don't give a clue to the date -- is there any way to find this out?
Semaphore IDs 3, 5 and 6 appear to have never been used -- can I ipcrm them as root?
I suppose if someone ever wants to use them, it will fail...
OTIME and CTIME

If I get any advice, I'll summarize to the list...

marty mleisner at eng.mc.xerox.com
Don't confuse education with schooling.
Milton Friedman to Yogi Berra

Comments

Got something to say?

You must be logged in to post a comment.