NetBSD Problem Report #36463
From woods@building.weird.com Sat Jun 9 19:14:21 2007
Return-Path: <woods@building.weird.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 77ABE63B8FF
for <gnats-bugs@gnats.netbsd.org>; Sat, 9 Jun 2007 19:14:21 +0000 (UTC)
Message-Id: <m1Hx6OB-002IwcC@building.weird.com>
Date: Sat, 9 Jun 2007 15:14:19 -0400 (EDT)
From: "Greg A. Woods" <woods@planix.com>
Sender: "Greg A. Woods" <woods@building.weird.com>
Reply-To: "Greg A. Woods" <woods@planix.com>
To: gnats-bugs@NetBSD.org
Subject: PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
X-Send-Pr-Version: 3.95
>Number: 36463
>Category: lib
>Synopsis: PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 09 19:15:00 +0000 2007
>Closed-Date: Mon May 18 00:45:03 +0000 2009
>Last-Modified: Mon May 18 20:00:24 +0000 2009
>Originator: Greg A. Woods
>Release: NetBSD 4.0_BETA2
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 4.0_BETA2
>Description:
seems PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
>How-To-Repeat:
$ sysctl proc.curproc
(and read all about the pid.limit.sbsize settings)
man 3 sysctl
(and fail to read all about the rlimit.sbsize limits despite
finding all the other fields documented)
>Fix:
(the PROC_PID_LIMIT_* list should probably be sorted
alphabetically too)
Index: lib/libc/gen/sysctl.3
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/lib/libc/gen/sysctl.3,v
retrieving revision 1.191
diff -u -r1.191 sysctl.3
--- lib/libc/gen/sysctl.3 27 Nov 2006 17:55:12 -0000 1.191
+++ lib/libc/gen/sysctl.3 9 Jun 2007 19:06:59 -0000
@@ -29,7 +29,7 @@
.\"
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\"
-.Dd November 27, 2006
+.Dd June 9, 2007
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -1781,6 +1781,14 @@
This imposes a limit on the amount of physical memory to be given to
a process; if memory is tight, the system will prefer to take memory
from processes that are exceeding their declared resident set size.
+.It Li PROC_PID_LIMIT_SBSIZE
+The maximum size (in bytes) of the socket buffers
+set by the
+.Xr setsockopt 2
+.Dv SO_RCVBUF
+and
+.Dv SO_SNDBUF
+options.
.It Li PROC_PID_LIMIT_MEMLOCK
The maximum size (in bytes) which a process may lock into memory
using the
>Release-Note:
>Audit-Trail:
From: "Greg A. Woods" <woods@planix.com>
To: NetBSD GNATS <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: lib/36463: PROC_PID_LIMIT_SBSIZE is not documented in sysctl(3)
Date: Sat, 09 Jun 2007 15:20:04 -0400
--pgp-sign-Multipart_Sat_Jun__9_15:20:04_2007-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Fix for -current:
Index: share/man/man7/sysctl.7
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/master/m-NetBSD/main/src/share/man/man7/sysctl.7,v
retrieving revision 1.10
diff -u -r1.10 sysctl.7
--- share/man/man7/sysctl.7 17 May 2007 11:50:10 -0000 1.10
+++ share/man/man7/sysctl.7 9 Jun 2007 19:17:58 -0000
@@ -29,7 +29,7 @@
.\"
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\"
-.Dd May 17, 2007
+.Dd June 9, 2007
.Dt SYSCTL 7
.Os
.Sh NAME
@@ -1650,6 +1650,14 @@
This imposes a limit on the amount of physical memory to be given to
a process; if memory is tight, the system will prefer to take memory
from processes that are exceeding their declared resident set size.
+.It Li proc.pid.rlimit.sbsize ( PROC_PID_LIMIT_SBSIZE )
+The maximum size (in bytes) of the socket buffers
+set by the
+.Xr setsockopt 2
+.Dv SO_RCVBUF
+and
+.Dv SO_SNDBUF
+options.
.It Li proc.pid.rlimit.memorylocked ( PROC_PID_LIMIT_MEMLOCK )
The maximum size (in bytes) which a process may lock into memory
using the
--=20
Greg A. Woods
H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>
--pgp-sign-Multipart_Sat_Jun__9_15:20:04_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 16JLsFHvXcItLablDLptiVYeAuSGG7P8
iQA/AwUBRmr9ZGZ9cbd4v/R/EQJGyQCg5sjm8tGY1tE1uOEjlFA9XM7GUc8AoI4Q
OUl+VtS79tyjkeuIYjjC6vfn
=l8dB
-----END PGP SIGNATURE-----
--pgp-sign-Multipart_Sat_Jun__9_15:20:04_2007-1--
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 18 May 2009 00:45:03 +0000
State-Changed-Why:
Documented in sysctl.7. Thanks for the PR!
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36463 CVS commit: src/share/man/man7
Date: Mon, 18 May 2009 00:41:53 +0000
Module Name: src
Committed By: snj
Date: Mon May 18 00:41:53 UTC 2009
Modified Files:
src/share/man/man7: sysctl.7
Log Message:
Document PROC_PID_LIMIT_SBSIZE. From Greg A. Woods in PR lib/36463.
Wording is taken from getrlimit(2).
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/share/man/man7/sysctl.7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36463 CVS commit: [netbsd-4] src/lib/libc/gen
Date: Mon, 18 May 2009 18:26:29 +0000
Module Name: src
Committed By: bouyer
Date: Mon May 18 18:26:29 UTC 2009
Modified Files:
src/lib/libc/gen [netbsd-4]: sysctl.3
Log Message:
Apply patch, requested by snj in ticket #1318:
lib/libc/gen/sysctl.3: patch
document PROC_PID_LIMIT_SBSIZE. Addresses PR 36463.
To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.191.2.1 src/lib/libc/gen/sysctl.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36463 CVS commit: [netbsd-4-0] src/lib/libc/gen
Date: Mon, 18 May 2009 18:26:47 +0000
Module Name: src
Committed By: bouyer
Date: Mon May 18 18:26:47 UTC 2009
Modified Files:
src/lib/libc/gen [netbsd-4-0]: sysctl.3
Log Message:
Apply patch, requested by snj in ticket #1318:
lib/libc/gen/sysctl.3: patch
document PROC_PID_LIMIT_SBSIZE. Addresses PR 36463.
To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.191.6.1 src/lib/libc/gen/sysctl.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36463 CVS commit: [netbsd-5] src/share/man/man7
Date: Mon, 18 May 2009 19:58:08 +0000
Module Name: src
Committed By: bouyer
Date: Mon May 18 19:58:08 UTC 2009
Modified Files:
src/share/man/man7 [netbsd-5]: sysctl.7
Log Message:
Pull up following revision(s) (requested by snj in ticket #765):
share/man/man7/sysctl.7: revision 1.22 via patch
Document PROC_PID_LIMIT_SBSIZE. From Greg A. Woods in PR lib/36463.
Wording is taken from getrlimit(2).
To generate a diff of this commit:
cvs rdiff -u -r1.16.2.1 -r1.16.2.2 src/share/man/man7/sysctl.7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/36463 CVS commit: [netbsd-5-0] src/share/man/man7
Date: Mon, 18 May 2009 19:58:19 +0000
Module Name: src
Committed By: bouyer
Date: Mon May 18 19:58:19 UTC 2009
Modified Files:
src/share/man/man7 [netbsd-5-0]: sysctl.7
Log Message:
Pull up following revision(s) (requested by snj in ticket #765):
share/man/man7/sysctl.7: revision 1.22 via patch
Document PROC_PID_LIMIT_SBSIZE. From Greg A. Woods in PR lib/36463.
Wording is taken from getrlimit(2).
To generate a diff of this commit:
cvs rdiff -u -r1.16.2.1 -r1.16.2.1.2.1 src/share/man/man7/sysctl.7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.