* bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and

kern.ipc.msgtql.  Raise max value for kern.ipc.msgseg to 65535.
	* cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
	* sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
	kern.ipc.msgmnb and kern.ipc.msgtql.
This commit is contained in:
Corinna Vinschen 2003-12-16 10:13:34 +00:00
parent 5c07a5745f
commit 11377ba668
4 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2003-12-16 Corinna Vinschen <corinna@vinschen.de>
* bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535.
* cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
* sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
kern.ipc.msgmnb and kern.ipc.msgtql.
2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* cygserver.cc (main): Move call to ipcinit() up before installing

View File

@ -565,9 +565,11 @@ static tun_struct tunable_params[] =
{ "kern.log.level", TUN_INT, {0}, {1}, {7}, default_tun_check},
/* MSG */
{ "kern.ipc.msgseg", TUN_INT, {0}, {256}, {32767}, default_tun_check},
{ "kern.ipc.msgseg", TUN_INT, {0}, {256}, {65535}, default_tun_check},
{ "kern.ipc.msgssz", TUN_INT, {0}, {8}, {1024}, default_tun_check},
{ "kern.ipc.msgmnb", TUN_INT, {0}, {1}, {65535}, default_tun_check},
{ "kern.ipc.msgmni", TUN_INT, {0}, {1}, {1024}, default_tun_check},
{ "kern.ipc.msgtql", TUN_INT, {0}, {1}, {1024}, default_tun_check},
/* SEM */
//{ "kern.ipc.semmap", TUN_INT, {0}, {1}, {1024}, default_tun_check},

View File

@ -66,17 +66,25 @@
# it doesn't make sense if it is less than 8 or greater than about 256.
# kern.ipc.msgseg: Maximum no. of message queue segments hold concurrently.
# Default: 2048, Min: 256, Max: 32767
# Default: 2048, Min: 256, Max: 65535
#kern.ipc.msgseg 2048
# kern.ipc.msgssz: Size of segment in bytes. Must be a power of 2 value.
# Default: 8, Min: 8, Max: 1024
#kern.ipc.msgssz 8
# kern.ipc.msgmnb: Maximum no. of bytes in a single message queue.
# Default: 2048, Min: 1, Max: 65535
#kern.ipc.msgmnb 2048
# kern.ipc.msgmni: Maximum no. of message queue identifiers hold concurrently.
# Default: 40, Min: 1, Max: 1024
#kern.ipc.msgmni 40
# kern.ipc.msgtql: Maximum no. of messages hold concurrently.
# Default: 40, Min: 1, Max: 1024
#kern.ipc.msgtql 40
# XSI semaphore parameters
# kern.ipc.semmni: Maximum no. of semaphore identifiers hold concurrently.

View File

@ -156,7 +156,9 @@ msginit()
TUNABLE_INT_FETCH("kern.ipc.msgseg", &msginfo.msgseg);
TUNABLE_INT_FETCH("kern.ipc.msgssz", &msginfo.msgssz);
msginfo.msgmax = msginfo.msgseg * msginfo.msgssz;
TUNABLE_INT_FETCH("kern.ipc.msgmnb", &msginfo.msgmnb);
TUNABLE_INT_FETCH("kern.ipc.msgmni", &msginfo.msgmni);
TUNABLE_INT_FETCH("kern.ipc.msgtql", &msginfo.msgtql);
msgpool = (char *) sys_malloc(msginfo.msgmax, M_MSG, M_WAITOK);
if (msgpool == NULL)