Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

question on shmctl: errno = 1 waht does it mean

SOLVED
Go to solution
Karl oliver
Frequent Advisor

question on shmctl: errno = 1 waht does it mean

Hello all
I am wanting to know waht the following error means
I know shmct 11 is lack of shared memory to allocate but not sure about the following.

shmctl: errno = 1
02:38:00 Shared memory segment 0xc0000000b1e07000 could not be forced resident.


opearting system =HP-UX wuasp132 B.11.23 U 9000/800
informix version
IBM Informix Dynamic Server Version 11.10.FC2
kernal param set for informix

nfile 65536 Default Auto
semmni 4096 4096
semmns 4096 Default
semmnu 1467 1467
shmmax 4294967296 4294967296 Immed
shmmni 1024 1024 Immed
shmseg 1024 1024 Immed

memory used by database informationSegment Summary:
id key addr size ovhd class blkused blkfree
229383 1381451777 c000000000ee8000 1845534720 22062808 R* 450568 2
98312 1381451778 c00000006eef2000 348160000 4081696 V* 61432 23568
1245198 1381451779 c0000000b1e07000 32768000 385504 V 97 7903
Total: - - 2226462720 - - 512097 31473
total memory on system
Memory Stat total used avail %used
physical 16357.0 15045.2 1311.8 92%
active virtual 4502.5 4109.0 393.5 91%
active real 3738.5 3464.1 274.4 93%
memory swap 16357.0 7056.6 9300.4 43%
device swap 16384.0 3916.4 12467.6 24%

3 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: question on shmctl: errno = 1 waht does it mean

Hi:

Look up the standard errno via '/usr/include/sys/errno.h' and you will find that 1 = EPERM.

Now consult the manpages for 'shmctl' and you will find that EPERM is returned when:

"cmd is equal to IPC_RMID, IPC_SET, SHM_LOCK, or SHM_UNLOCK and the effective user ID of the calling process is not equal to that of a user having appropriate privileges and it is not equal to the value of either shm_perm.uid or shm_perm.cuid in the data structure associated with shmid."

or -

"cmd is equal to SHM_LOCK or SHM_UNLOCK and the effective user ID of the calling process is not equal to that of a user having appropriate privileges and the calling process does not have the PRIV_MLOCK privilege (see getprivgrp(2))."

Regards!

...JRF...

Karl oliver
Frequent Advisor

Re: question on shmctl: errno = 1 waht does it mean

thanks for that just whatI wanted. Looks like we might have a bug in our informix code
Karl oliver
Frequent Advisor

Re: question on shmctl: errno = 1 waht does it mean

see previous posting