* Maximum Message Queue in Digital UNIX
@ 1997-12-11 5:00 Kraisit Vittinanon
0 siblings, 0 replies; 5+ messages in thread
From: Kraisit Vittinanon @ 1997-12-11 5:00 UTC (permalink / raw)
Dear All,
I would like to extend the msg-mnb value (Maximun number of bytes on
queue) (SYSTEM IV IPC parameter) but I don't know the size limit of it.
And what is the effect if I extend this parameter? If you know about
this, please give me an advice.
Thank you in advance,
K Vittinanon.
^ permalink raw reply [flat|nested] 5+ messages in thread* Maximum Message Queue in Digital UNIX
@ 1997-12-11 5:00 Kraisit Vittinanon
0 siblings, 0 replies; 5+ messages in thread
From: Kraisit Vittinanon @ 1997-12-11 5:00 UTC (permalink / raw)
Dear All,
I would like to extend the msg-mnb value (Maximun number of bytes on
queue) (SYSTEM IV IPC parameter) but I don't know the size limit of it.
And what is the effect if I extend this parameter? If you know about
this, please give me an advice.
Thank you in advance,
K Vittinanon.
^ permalink raw reply [flat|nested] 5+ messages in thread* Maximum Message Queue in Digital UNIX
@ 1997-12-11 5:00 Kraisit Vittinanon
1997-12-11 5:00 ` Dr. Strangelove
0 siblings, 1 reply; 5+ messages in thread
From: Kraisit Vittinanon @ 1997-12-11 5:00 UTC (permalink / raw)
Dear All,
I would like to extend the msg-mnb value (Maximun number of bytes on
queue) (SYSTEM IV IPC parameter) but I don't know the size limit of it.
And what is the effect if I extend this parameter? If you know about
this, please give me an advice.
Thank you in advance,
K Vittinanon.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Maximum Message Queue in Digital UNIX
1997-12-11 5:00 Kraisit Vittinanon
@ 1997-12-11 5:00 ` Dr. Strangelove
0 siblings, 0 replies; 5+ messages in thread
From: Dr. Strangelove @ 1997-12-11 5:00 UTC (permalink / raw)
On Thu, 11 Dec 1997 13:14:27 -0700, Kraisit Vittinanon
<s4101039@ce.kmitl.ac.th> wrote:
> I would like to extend the msg-mnb value (Maximun number of bytes on
>queue) (SYSTEM IV IPC parameter) but I don't know the size limit of it.
>And what is the effect if I extend this parameter? If you know about
>this, please give me an advice.
There are three parameters concerned with message queues that you can
play with:
msgtql - Number of message headers system wide
msgmax - Maximum size of any one message
msgmnb - Maximum nuber of bytes on a message queue
To my knowledge you can set the msgmnb parameter to any sensible value
up to the size of your system memory. However, if performance increase
is what you're after, then changing these parameters isn't going to
help you a great deal. The reason for this is that a process will be
put to sleep until there is sufficient space to place the message on
the queue. Presumably your code puts a message on a queue and waits
for a reply using the msgsnd() and msgrcv() system calls respectively.
If this is the case your program will be put to sleep by the OS until
it recieves a reply, therefore the only reason for a large msgmnb
value is to avoid the occasional extra context switch which results
when a message cannot be written to the queue or there are no free
message queue headers.
The only thing you really need to ensure is that msgmnb is at least as
big as msgmax and that msgtql is sufficiently big for the number of
processes writing to and reading from the message queue.
These are the values I use on an Alphaserver 1000 4/266 with
apporximately 200 users using our database system:
msgmax 4096
msgmnb 32768
msgtql 200
Hope this helps.
Dr. Strangelove
Rewrite the address with the obvious bits taken out if you want to mail me.
mailto:ivegotan%at%ombomb%dot%org%with%no%spam%please
http://www.ombomb.org/
"Put your money on 'The Bribes', they always win." - Jello Biafra
^ permalink raw reply [flat|nested] 5+ messages in thread
* Maximum Message Queue in Digital UNIX
@ 1997-12-11 5:00 Kraisit Vittinanon
0 siblings, 0 replies; 5+ messages in thread
From: Kraisit Vittinanon @ 1997-12-11 5:00 UTC (permalink / raw)
Dear All,
I would like to extend the msg-mnb value (Maximun number of bytes on
queue) (SYSTEM IV IPC parameter) but I don't know the size limit of it.
And what is the effect if I extend this parameter? If you know about
this, please give me an advice.
Thank you in advance,
K Vittinanon.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1997-12-11 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-11 5:00 Maximum Message Queue in Digital UNIX Kraisit Vittinanon
-- strict thread matches above, loose matches on Subject: below --
1997-12-11 5:00 Kraisit Vittinanon
1997-12-11 5:00 Kraisit Vittinanon
1997-12-11 5:00 ` Dr. Strangelove
1997-12-11 5:00 Kraisit Vittinanon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox