NetBSD Problem Report #9068

Received: (qmail 19041 invoked from network); 29 Dec 1999 02:30:24 -0000
Message-Id: <m1238sP-000g8HC@most.weird.com>
Date: Tue, 28 Dec 1999 21:30:13 -0500 (EST)
From: woods@mail.weird.com
Reply-To: woods@planix.com
To: gnats-bugs@gnats.netbsd.org
Subject: some VM-related updates for options(4)
X-Send-Pr-Version: 3.95

>Number:         9068
>Category:       kern
>Synopsis:       some VM-related updates for options(4)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    chs
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 28 18:33:01 +0000 1999
>Closed-Date:    Sat Sep 22 08:44:39 +0000 2001
>Last-Modified:  Sat Sep 22 08:44:39 +0000 2001
>Originator:     Greg A. Woods
>Release:        NetBSD-current
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

>Description:

	here are some minor updates for options(4), including a couple
	of wee fixes as well as new entries for some of the tunable
	values in sys/arch/*/include/vmparam.h

>How-To-Repeat:

	look at sys/arch/*/include/vmparam.h and look for tunable items
	in options(4)....

>Fix:

Index: options.4
===================================================================
RCS file: /cvs/NetBSD/src/share/man/man4/options.4,v
retrieving revision 1.1.1.6
diff -c -c -r1.1.1.6 options.4
*** options.4	1998/11/16 20:50:09	1.1.1.6
--- options.4	1999/12/29 02:23:42
***************
*** 502,508 ****
  Includes code for the Coda file system.
  Coda is a distributed file system like NFS and AFS.  It is
  freely available, like NFS, but it functions much like AFS in being a
! "stateful" file system.  Both Coda and AFS cache files on your local
  machine to improve performance.  Then Coda goes a step further than AFS
  by letting you access the cached files when there is no available
  network, viz. disconnected laptops and network outages.  In Coda, both
--- 502,508 ----
  Includes code for the Coda file system.
  Coda is a distributed file system like NFS and AFS.  It is
  freely available, like NFS, but it functions much like AFS in being a
! ``stateful'' file system.  Both Coda and AFS cache files on your local
  machine to improve performance.  Then Coda goes a step further than AFS
  by letting you access the cached files when there is no available
  network, viz. disconnected laptops and network outages.  In Coda, both
***************
*** 816,827 ****
  driver,
  and much of the networking code.
  .It Cd options MAXUPRC=integer
! Sets the
! .Em RLIMIT_NPROC
! resource limit, which specifies the maximum number of simultaneous
! processes a user is permitted to run, for process 0;
! this value is inherited by its child processes.
! It defaults to
  .Em CHILD_MAX ,
  which is currently defined to be 80.
  Setting
--- 816,828 ----
  driver,
  and much of the networking code.
  .It Cd options MAXUPRC=integer
! Sets the soft
! .Dv RLIMIT_NPROC
! resource limit (as returned by
! .Xr getrlimit 2 )
! for process 0; which specifies the maximum number of simultaneous
! processes a user is permitted to run.  This value is inherited by all
! child processes.  It defaults to
  .Em CHILD_MAX ,
  which is currently defined to be 80.
  Setting
***************
*** 831,837 ****
  is not permitted, as this would result in a violation of the semantics of
  .St -p1003.1-90 .
  .It Cd options SHORTCORENAME
! If set, process core dumps are named 
  .Nm core .
  If not specified, they are named
  .Nm programname.core 
--- 832,838 ----
  is not permitted, as this would result in a violation of the semantics of
  .St -p1003.1-90 .
  .It Cd options SHORTCORENAME
! If set, process core dumps are named
  .Nm core .
  If not specified, they are named
  .Nm programname.core 
***************
*** 1164,1169 ****
--- 1165,1211 ----
  Their default value is a machine dependent value, often calculated as
  between 5% and 10% of total available
  .Tn RAM .
+ .It Cd options MAXTSIZ=bytes
+ Sets the maximum size limit of a process' text segment.  The default
+ value varies from 6MB to 1GB depending on the port.  See
+ .Pa /usr/include/machine/vmparam.h
+ for the architecture specific default.
+ .It Cd options DFLDSIZ=bytes
+ Sets the default size limit of a process' data segment, the value that
+ will be returned as the soft limit for
+ .Dv RLIMIT_DATA
+ (as returned by
+ .Xr getrlimit 2 ).
+ The default value varies from 16MB to 128MB depending on the port.  See
+ .Pa /usr/include/machine/vmparam.h
+ for the architecture specific default.
+ .It Cd options MAXDSIZ=bytes
+ Sets the maximum size limit of a process' data segment, the value that
+ will be returned as the hard limit for
+ .Dv RLIMIT_DATA
+ (as returned by
+ .Xr getrlimit 2 ).
+ The default value varies from 24MB to 1GB depending on the port.  See
+ .Pa /usr/include/machine/vmparam.h
+ for the architecture specific default.
+ .It Cd options DFLSSIZ=bytes
+ Sets the default size limit of a process' stack segment, the value that
+ will be returned as the soft limit for
+ .Dv RLIMIT_STACK
+ (as returned by
+ .Xr getrlimit 2 ).
+ The default value varies from 512KB to 2MB depending on the port.  See
+ .Pa /usr/include/machine/vmparam.h
+ for the architecture specific default.
+ .It Cd options MAXSSIZ=bytes
+ Sets the maximum size limit of a process' stack segment, the value that
+ will be returned as the hard limit for
+ .Dv RLIMIT_STACK
+ (as returned by
+ .Xr getrlimit 2 ).
+ The default value varies from 8MB to 64MB depending on the port.  See
+ .Pa /usr/include/machine/vmparam.h
+ for the architecture specific default.
  .El
  .Ss amiga-specific Options
  .Bl -ohang
***************
*** 1389,1394 ****
--- 1431,1437 ----
  .Sh SEE ALSO
  .Xr config 8 ,
  .Xr init 8 ,
+ .Xr getrlimit 2 ,
  .Xr gettimeofday 2 ,
  .Xr sysctl 8 ,
  .Xr sysctl 3 ,
>Release-Note:
>Audit-Trail:

From: cgd@netbsd.org (Chris G. Demetriou)
To: woods@planix.com
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/9068: some VM-related updates for options(4)
Date: 28 Dec 1999 21:55:22 -0800

 woods@mail.weird.com writes:
 > ! "stateful" file system.  Both Coda and AFS cache files on your local
 > --- 502,508 ----
 > ! ``stateful'' file system.  Both Coda and AFS cache files on your local

 this should be done with:

 .Dq stateful
 file system.  Both Coda and AFS cache files on your local


 cgd
 -- 
 Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
 Disclaimer: Not speaking for NetBSD, just expressing my own opinion.

From: woods@most.weird.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org,
    netbsd-bugs@netbsd.org
Cc:  Subject: Re: kern/9068: some VM-related updates for options(4)
Date: Wed, 29 Dec 1999 01:05:14 -0500 (EST)

 [ On , December 28, 1999 at 21:55:22 (-0800), Chris G. Demetriou wrote: ]
 > Subject: Re: kern/9068: some VM-related updates for options(4)
 >
 > woods@mail.weird.com writes:
 > > ! "stateful" file system.  Both Coda and AFS cache files on your local
 > > --- 502,508 ----
 > > ! ``stateful'' file system.  Both Coda and AFS cache files on your local
 > 
 > this should be done with:
 > 
 > .Dq stateful
 > file system.  Both Coda and AFS cache files on your local

 yes, of course!  Thanks!

 I now note there are many other cases of incorrect use of quotes in that
 manual page too....  I'd made that first (incorrect) change so long ago
 that I forgot I had meant it just as a reminder to fix the rest too....  :-(

 There are also many other use of .Em that should probably be changed to
 .Dv or perhaps something else more appropriate, but I'm not 100% sure
 what the desired style calls for in this section of the manual....

 -- 
 							Greg A. Woods

 +1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
 Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
Responsible-Changed-From-To: kern-bug-people->chs 
Responsible-Changed-By: fair 
Responsible-Changed-When: Thu Mar 22 11:54:25 PST 2001 
Responsible-Changed-Why:  
Our UVM expert is Chuck Silvers. 
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Sat Sep 22 01:43:38 PDT 2001 
State-Changed-Why:  
changes applied (somewhat editted).  thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.