aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-12-16 10:13:34 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-12-16 10:13:34 +0000
commit11377ba6688e003064b9870a7e4e1164229fec89 (patch)
treea8139c6df2eb6e03e62f03aed4faab7c1d12b852
parent5c07a5745f47771a1e460a954c4744e9de4fd164 (diff)
downloadnewlib-11377ba6688e003064b9870a7e4e1164229fec89.zip
newlib-11377ba6688e003064b9870a7e4e1164229fec89.tar.gz
newlib-11377ba6688e003064b9870a7e4e1164229fec89.tar.bz2
* 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.
-rw-r--r--winsup/cygserver/ChangeLog8
-rw-r--r--winsup/cygserver/bsd_helper.cc4
-rw-r--r--winsup/cygserver/cygserver.conf10
-rw-r--r--winsup/cygserver/sysv_msg.cc2
4 files changed, 22 insertions, 2 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog
index cfcf9de..8a08037 100644
--- a/winsup/cygserver/ChangeLog
+++ b/winsup/cygserver/ChangeLog
@@ -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
diff --git a/winsup/cygserver/bsd_helper.cc b/winsup/cygserver/bsd_helper.cc
index 42afd54..0fa59c1 100644
--- a/winsup/cygserver/bsd_helper.cc
+++ b/winsup/cygserver/bsd_helper.cc
@@ -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},
diff --git a/winsup/cygserver/cygserver.conf b/winsup/cygserver/cygserver.conf
index b7db6bb..1369e11 100644
--- a/winsup/cygserver/cygserver.conf
+++ b/winsup/cygserver/cygserver.conf
@@ -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.
diff --git a/winsup/cygserver/sysv_msg.cc b/winsup/cygserver/sysv_msg.cc
index 9c1049c..90ea953 100644
--- a/winsup/cygserver/sysv_msg.cc
+++ b/winsup/cygserver/sysv_msg.cc
@@ -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)