Since I have a huge number of sites, threads and message flow, I was concerned about understanding semaphores a bit better.
Fortunately, I’ve never had a single semaphore issue during my 8+ years here.
I searched old postings related to your semaphore problem as a start.
Here is one that might be of interest:
https://usspvlclovertch2.infor.com/viewtopic.php?t=115&highlight=semaphore” class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=115&highlight=semaphore
One of the old posts states:
The problem surfaces when someone starts the process with a user name other then hci. This is because the semaphore and the shared memory segment cannot be accessed. When you see this, you can do an ipcs -a and you will see the semaphore and shared memory segment information.
Since we do everything as hci this may have kept us out of semaphore trouble.
Also, a couple of old posts I located indicated this problem is more likely to occur on a Windows platform.
I’m on AIX and have not located where the limit of semaphores is set but did see a reference to increasing the number of files in the /etc/security/limits file – mine is set to 2048 at this time.
Here is a quote window showing my /etc/security/limits settings for the hci users (2 of them are for QDX support):
hci:
fsize = 2097151
core = 2048
cpu = -1
data = 786432
rss = 196608
stack = 196608
nofiles = 2048
hcitest:
fsize = 2097151
core = 2048
cpu = -1
data = 786432
rss = 196608
stack = 196608
nofiles = 2048
hcispt1:
fsize = 2097151
core = 2048
cpu = -1
data = 786432
rss = 196608
stack = 196608
nofiles = 2048
A couple of semaphore related commads whose output I’ve yet to figure out are:
ipcs -a
sar -m 5 3
I also found posts suggesting to keep process and thread names short:
We’ve had this alot, and I think it is because of long thread names. Threads shouldn’t be more than 15 characters, and processes 9. But after you change them, you need to delete the /stats directory, which is under /exec – probably why that fix works, but it just works temporarily.
Do you have long thread or process names?
We have exceeded these limits alot but do not have semaphore problems.
Other posts also talked about the use of
hcimsiutil -R
hcimsiutil -rs
Put it all together and I’m not really comfortable with my current understanding of semaphores
My gut tells me that being I have such a high probablity of a semaphore error due to huge number of threads and sites and message flow, I suspect either running on AIX or just using the hci user ID has contributed to our stable success.
Since security is pushing us to seperate logons, I will pay attention to see if any semaphore problems arise at that juncture.
Russ Ross
RussRoss318@gmail.com