Module Name:    src
Committed By:   kamil
Date:           Sat Jul 11 09:21:23 UTC 2015

Modified Files:
        src/lib/libutil: login_cap.c
        src/share/doc/psd/05.sysman: 1.6.t
        src/share/man/man5: login.conf.5
        src/share/man/man7: sysctl.7

Log Message:
Clean-up resources (sys/sys/resource.h) usage

Add vmemoryuse to login_cap(3)
Document vmemoryuse in login.conf(5)
Document proc.pid.rlimit.vmemoryuse and proc.pid.rlimit.maxlwp in sysctl(7)
Document SBSIZE, AS, VMEM and NTHR in share/doc/psd/05.sysman/1.6.t

Reviewed by <riastradh>
Approved by <pgoyette>

Tested by Dominik Bialy

Closes PR xsrc/49912


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libutil/login_cap.c
cvs rdiff -u -r1.5 -r1.6 src/share/doc/psd/05.sysman/1.6.t
cvs rdiff -u -r1.28 -r1.29 src/share/man/man5/login.conf.5
cvs rdiff -u -r1.87 -r1.88 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.

Modified files:

Index: src/lib/libutil/login_cap.c
diff -u src/lib/libutil/login_cap.c:1.31 src/lib/libutil/login_cap.c:1.32
--- src/lib/libutil/login_cap.c:1.31	Sat Jun 29 04:52:55 2013
+++ src/lib/libutil/login_cap.c	Sat Jul 11 09:21:22 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: login_cap.c,v 1.31 2013/06/29 04:52:55 yamt Exp $	*/
+/*	$NetBSD: login_cap.c,v 1.32 2015/07/11 09:21:22 kamil Exp $	*/
 
 /*-
  * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: login_cap.c,v 1.31 2013/06/29 04:52:55 yamt Exp $");
+__RCSID("$NetBSD: login_cap.c,v 1.32 2015/07/11 09:21:22 kamil Exp $");
 #endif /* LIBC_SCCS and not lint */
  
 #include <sys/types.h>
@@ -424,6 +424,7 @@ static struct {
 	{ RLIMIT_NOFILE,	R_CNUMB, "openfiles", },
 	{ RLIMIT_CORE,		R_CSIZE, "coredumpsize", },
 	{ RLIMIT_SBSIZE,	R_CSIZE, "sbsize", },
+	{ RLIMIT_AS,		R_CSIZE, "vmemoryuse", },
 	{ -1, 0, 0 }
 };
 

Index: src/share/doc/psd/05.sysman/1.6.t
diff -u src/share/doc/psd/05.sysman/1.6.t:1.5 src/share/doc/psd/05.sysman/1.6.t:1.6
--- src/share/doc/psd/05.sysman/1.6.t:1.5	Sun Oct  6 05:45:19 2013
+++ src/share/doc/psd/05.sysman/1.6.t	Sat Jul 11 09:21:23 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: 1.6.t,v 1.5 2013/10/06 05:45:19 dholland Exp $
+.\"	$NetBSD: 1.6.t,v 1.6 2015/07/11 09:21:23 kamil Exp $
 .\"
 .\" Copyright (c) 1983, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -133,6 +133,10 @@ RLIMIT_RSS	/* resident set size */
 RLIMIT_MEMLOCK	/* locked-in-memory address space */
 RLIMIT_NPROC	/* number of processes */
 RLIMIT_NOFILE	/* number of open files */
+RLIMIT_SBSIZE	/* maximum size of all socket buffers */
+RLIMIT_AS	/* virtual process size (inclusive of mmap) */
+RLIMIT_VMEM	/* alias of RLIMIT_AS */
+RLIMIT_NTHR	/* number of threads */
 .TE
 .DE
 .ne 1i

Index: src/share/man/man5/login.conf.5
diff -u src/share/man/man5/login.conf.5:1.28 src/share/man/man5/login.conf.5:1.29
--- src/share/man/man5/login.conf.5:1.28	Sat Jun 29 08:14:31 2013
+++ src/share/man/man5/login.conf.5	Sat Jul 11 09:21:23 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: login.conf.5,v 1.28 2013/06/29 08:14:31 wiz Exp $
+.\"	$NetBSD: login.conf.5,v 1.29 2015/07/11 09:21:23 kamil Exp $
 .\"
 .\" Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
 .\" All rights reserved.
@@ -271,6 +271,10 @@ See
 .Xr umask 2 .
 .\"
 .sp
+.It Sy vmemoryuse Ta size Ta "" Ta
+Maximum virtual address space size in bytes.
+.\"
+.sp
 .It Sy welcome Ta file Ta Li /etc/motd Ta
 File containing welcome message.
 .Xr login 1

Index: src/share/man/man7/sysctl.7
diff -u src/share/man/man7/sysctl.7:1.87 src/share/man/man7/sysctl.7:1.88
--- src/share/man/man7/sysctl.7:1.87	Wed May 27 07:52:02 2015
+++ src/share/man/man7/sysctl.7	Sat Jul 11 09:21:23 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysctl.7,v 1.87 2015/05/27 07:52:02 matt Exp $
+.\"	$NetBSD: sysctl.7,v 1.88 2015/07/11 09:21:23 kamil Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -2049,6 +2049,12 @@ set by the
 and
 .Dv SO_SNDBUF
 options.
+.It Li proc.pid.rlimit.vmemoryuse ( PROC_PID_LIMIT_AS )
+The maximum size (in bytes) which a process can obtain.
+.It Li proc.pid.rlimit.maxlwp ( PROC_PID_LIMIT_NTHR )
+The maximum number of threads that cen be created and running at one time in
+the process.
+The first thread of each process is not counted against this.
 .El
 .Pp
 The fifth level name is one of

Reply via email to