HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IPCS Queues and Kernel Parameters
Operating System - HP-UX
1825764
Members
2123
Online
109687
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
Forums
Discussions
Discussions
Discussions
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
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-12-2001 05:52 AM
07-12-2001 05:52 AM
HPUX 10.20 - It would appear that the maximum size for a message queue is defined two ways in the kernel. The "msgmnb" parameter as I understand it is the maxumim number of bytes that can be in a single queue. Also according to SAM's help info, the maximum size is also set by (msgssz x msgseg), which is the maximum segment size times the maximum number of segments for a queue. If these do not agree then who wins? I suspect it is msgmnb.
Also when I do an "ipcs -qa" the QBYTES field (maximum number of bytes allowed on the queue) has different values for different queues. Where is this set? It often equal to the "msgmnb" kernel parameter but sometimes is much less. I don't see anywhere in the msgget function to set the queue size when it is created. Where is this value coming from?
Thanks,
Jim
Also when I do an "ipcs -qa" the QBYTES field (maximum number of bytes allowed on the queue) has different values for different queues. Where is this set? It often equal to the "msgmnb" kernel parameter but sometimes is much less. I don't see anywhere in the msgget function to set the queue size when it is created. Where is this value coming from?
Thanks,
Jim
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2001 06:28 AM
07-12-2001 06:28 AM
Solution
Hi James,
Your analysis is correct, the paramaters are used to indicate that I may have a few big messages or many small messages but in no case can the product exceed msgmnb. In 10.20 (and all 32-bit versions) the maximum size of a queue is limited by the number of bits (32) in
the msqid_ds struct fields. This limits you to 64K.
As to why the sizes are sometimes smaller, the programmer can make a msgctl() system call to
set the size.
Hope this helps, Clay
Your analysis is correct, the paramaters are used to indicate that I may have a few big messages or many small messages but in no case can the product exceed msgmnb. In 10.20 (and all 32-bit versions) the maximum size of a queue is limited by the number of bits (32) in
the msqid_ds struct fields. This limits you to 64K.
As to why the sizes are sometimes smaller, the programmer can make a msgctl() system call to
set the size.
Hope this helps, Clay
If it ain't broke, I can fix that.
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP