- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- question on shmctl: errno = 1 waht does it mean
Operating System - HP-UX
1821808
Members
3242
Online
109638
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 02:22 PM
тАО07-22-2008 02:22 PM
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%
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%
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 03:01 PM
тАО07-22-2008 03:01 PM
Solution
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...
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 03:13 PM
тАО07-22-2008 03:13 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 03:14 PM
тАО07-22-2008 03:14 PM
Re: question on shmctl: errno = 1 waht does it mean
see previous posting
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP