From nobody Tue Sep 26 19:42:22 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rw9B73JcHz4vZX8; Tue, 26 Sep 2023 19:42:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rw9B66hxGz3Qxy; Tue, 26 Sep 2023 19:42:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695757342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HXN59RzTRVBAhhJH4JFX+OYb+kzFXaArmtv4mUoeyUU=; b=AesQJDW4bMOjzhLL0TNnJgkVEWTmTpPZ2TF5Q0n4eawkWHY0DDX5rNhqbSOXP9QfRbe+ru iG33oG/7nAEyIbnEpM8wBH3WM1z6r9h/r49T/NBLLe8QG9wDPHS4qqAarRPkElWBUP8lXK 4MHHZUKSCTyHMma2HS3kkUIYSs0JVD9c74pDV+EUBhrNtU4rqZB5hFRW18ExgY3pqVePMJ E41TjEP53RrHs687QqPbnZlT8U0H0gSF2jVuTqRqS7fTQiBf9ajUl+XmiwN0o/C9FqI0KB cBk39km5Qw+qvu3r4tUEtt/bIneAwzyKCvsCgsx4QcKoeELTlBGzaQs09qT/wQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695757342; a=rsa-sha256; cv=none; b=xc+OD0lPEPVQ9R+LEF5GeGt31rTudYKmM/OxOH6EHUiJTMwh6FAaJYEgu82voVZhadMuTv hXw4P9GbUp3kVev0IoTT2shdIHzJcO6lO1y2PIvvgsJ5HsLfLWoJRfNK+FVQn5ECjod+fd tABU6GSi2ESnn3TCmTevPi7N4OryuQpbAFUYZlXlc9PdgA6KeGFMIDjFLqnZrOXlhL1NU0 ha2nVNVGM7zb13h1OO7fpWMV6Kj2hcgxbO+s/ehTmvuxt/74kD9s4zYLVwz75ZhkYg8dO5 T5XnSxbJ+9E1Ck19WRn/sE5fReaOVC2Km+jFikFoItYT9Yr5HmmbvO1vzvNSLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695757342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HXN59RzTRVBAhhJH4JFX+OYb+kzFXaArmtv4mUoeyUU=; b=DXqJedktFcEU/KD0YRXcXMd+97kB7ucqAIS9Kp1L2fZX6LOnwioovzpq+uRfbqfqy2YHUb 70UpI1u18ECVCvgY5P4yMlfyFPL46kTP40R5hX0KGRu0ddY/OV3Es2FyMLlKxJICYaQTCh SDtEZOq/Ddoh4wlcfN3rI3p6h/bd+giEcFixvue1r0L65+f1M5+6b2iQ/w0kK7Ddkbbraf dIRJSMwFnUTJvW0lNjgaNaeq9X0wE/3oaLb+DyecdN+oTgQs5f9wLBGWmWQVYYgqRK9SRW YhFZYJaiQf6p3vNrjfAVe+Oiv63HPZDaqBdrClZM7/ODdRkxUlxpIBiSOm2H3w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rw9B65nBtz1821; Tue, 26 Sep 2023 19:42:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38QJgMOF016086; Tue, 26 Sep 2023 19:42:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38QJgM7i016083; Tue, 26 Sep 2023 19:42:22 GMT (envelope-from git) Date: Tue, 26 Sep 2023 19:42:22 GMT Message-Id: <202309261942.38QJgM7i016083@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jens Schweikhardt Subject: git: e8a7cee67348 - main - Add paragraph about kern.mqueue sysctls and their defaults. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: schweikh X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8a7cee67348aa954138f32567dac379c746e152 Auto-Submitted: auto-generated The branch main has been updated by schweikh: URL: https://cgit.FreeBSD.org/src/commit/?id=e8a7cee67348aa954138f32567dac379c746e152 commit e8a7cee67348aa954138f32567dac379c746e152 Author: Jens Schweikhardt AuthorDate: 2023-09-26 19:41:29 +0000 Commit: Jens Schweikhardt CommitDate: 2023-09-26 19:41:29 +0000 Add paragraph about kern.mqueue sysctls and their defaults. --- lib/libc/sys/mq_open.2 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/mq_open.2 b/lib/libc/sys/mq_open.2 index e5e7808c9e26..17e290e541ca 100644 --- a/lib/libc/sys/mq_open.2 +++ b/lib/libc/sys/mq_open.2 @@ -35,7 +35,7 @@ .\" the referee document. The original Standard can be obtained online at .\" http://www.opengroup.org/unix/online.html. .\" -.Dd September 28, 2019 +.Dd September 26, 2023 .Dt MQ_OPEN 2 .Os .Sh NAME @@ -226,6 +226,18 @@ Please see the .Xr mqueuefs 5 man page for instructions on loading the module or compiling the service into the kernel. +.Pp +The number of queues available, the maximum number of messages per queue +and the maximum message size are tunable +.Xr sysctl 8 +parameters. +Their defaults are as follows. +.Bl -column kern.mqueue.maxmsgsize integerxxx +.It Sy "Name Type Default" +.It "kern.mqueue.maxmq integer 100" +.It "kern.mqueue.maxmsgsize integer 16384" +.It "kern.mqueue.maxmsg integer 100" +.El .Sh RETURN VALUES Upon successful completion, the function returns a message queue descriptor; otherwise, the function returns