![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automate FTP process and autorestart on link failure | sdcoms | IP Networking | 5 | 3 Weeks Ago 02:45 PM |
| Difference between hard link and soft link | kamakshi s | UNIX for Dummies Questions & Answers | 2 | 06-26-2008 05:05 AM |
| need some info about symbolic link and hard link | detective linux | UNIX for Dummies Questions & Answers | 2 | 01-08-2008 03:36 AM |
| Difference between hard link and soft link in unix | RAJACHOKALINGAM | UNIX for Dummies Questions & Answers | 2 | 08-01-2006 01:10 AM |
| Differences between hard link and soft link | penguin-friend | UNIX for Advanced & Expert Users | 3 | 03-08-2002 11:49 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Possible to link an IPC Sempahore to a process ID?
Hi,
Anyone knows whether it is possible to link/relate an IPC semaphore to a particular process ID? e.g. # ipcs -as IPC status from <running system> as of Wednesday July 2 14:10:39 EST 2008 T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME Semaphores: s 0 0x71003323 --ra-ra-ra- root root root root 1 13:58:59 19:15:20 s 131073 0x49000027 --ra-ra-ra- root root root root 3 14:10:38 15:31:33 s 262146 0x45000ef8 --ra-ra-ra- root root root root 1 14:10:36 15:31:44 s 196611 0x450005c9 --ra-ra-ra- root root root root 1 8:03:07 15:32:53 s 262148 0xcace --ra-ra-ra- root root root root 1 14:10:36 15:33:19 s 65541 0xd20049a3 --ra-ra-ra- root root root root 1 23:30:06 23:28:01 The reason is that I'm trying to find out what process is spawning these semaphores IDs. The system has been set up to have 10 semaphores identifiers (Solaris 9 default) and after a week or 2 we always hit that limit. Instead of just adjusting /etc/system and changing the limit of semaphores ID's, I'd like to find out what is causing it. This box is used as a Tivoli Storage Manager server. IPC information from sysdef -i : * * IPC Semaphores * 10 semaphore identifiers (SEMMNI) 60 semaphores in system (SEMMNS) 30 undo structures in system (SEMMNU) 25 max semaphores per id (SEMMSL) 10 max operations per semop call (SEMOPM) 10 max undo entries per process (SEMUME) 32767 semaphore maximum value (SEMVMX) 16384 adjust on exit max value (SEMAEM) Last edited by Solarius; 07-01-2008 at 10:18 PM. |
| Forum Sponsor | ||
|
|
|
|||
|
10 semid's is slim pickings. Why don't you cut your losses and set the max to something reasonable based on the system behavior, once it's ascertained that the system is working within reasonable bounds.
|
|
|||
|
Thx for your answers.
Ramen_noodle, the reason why I want to keep the semaphore ID's on 10 is 1.) because this is the Solaris 9 default and 2.) we actually don't experience this problem on our production system. The production system has exactly the same setup OS/hardware/software as this development system. So therefore it would be handy to find out which process is causing the grieve and it may lead us to something we can investigate. |
|
|||
|
That's great that you want to maintain continuity between current production and what I assume is dev, but in reality a codebase may
require a lot of tweaking in dev to conform. This is all guesswork of course. If you aren't willing to bend the rules to develop a refined system in dev/test the result will probably be entirely different than what you are aiming for. "Premature optimization is the root of all evil" |
|
|||
|
After the reboot the system ran ok for a couple days, but again the SEMMNI (semaphore id's) limit was reached. We will have to take this issue to the software vendor and see if they have an idea.
|
|||
| Google UNIX.COM |