From owner-p4-projects@FreeBSD.ORG Fri Jan 21 16:23:11 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7D9E21065674; Fri, 21 Jan 2011 16:23:11 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 403931065672 for ; Fri, 21 Jan 2011 16:23:11 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id 12FD28FC14 for ; Fri, 21 Jan 2011 16:23:11 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id p0LGNAOa074523 for ; Fri, 21 Jan 2011 16:23:10 GMT (envelope-from trasz@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p0LGNAqi074520 for perforce@freebsd.org; Fri, 21 Jan 2011 16:23:10 GMT (envelope-from trasz@freebsd.org) Date: Fri, 21 Jan 2011 16:23:10 GMT Message-Id: <201101211623.p0LGNAqi074520@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to trasz@freebsd.org using -f From: Edward Tomasz Napierala To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 188033 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 16:23:11 -0000 http://p4web.freebsd.org/@@188033?ac=10 Change 188033 by trasz@trasz_victim on 2011/01/21 16:22:37 Add manual page for userstat(8). Affected files ... .. //depot/projects/soc2009/trasz_limits/usr.bin/rctl/rctl.8#2 edit .. //depot/projects/soc2009/trasz_limits/usr.bin/userstat/Makefile#2 edit .. //depot/projects/soc2009/trasz_limits/usr.bin/userstat/userstat.8#1 add Differences ... ==== //depot/projects/soc2009/trasz_limits/usr.bin/rctl/rctl.8#2 (text+ko) ==== @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 3, 2009 +.Dd February 13, 2011 .Dt RCTL 8 .Os .Sh NAME @@ -98,17 +98,17 @@ the defined action triggers. .Pp The per field defines what entity the limit gets accounted for. -For example, rule "loginclass:users:memoryuse:deny=100M/process" means -that each process of any user belonging to login class "users" may use up to 100MB -of memory. -Rule "loginclass:users:memoryuse:deny=100M/user" would mean that the sum of -memory used by all processes of any user belonging to the login class "users" -will not exceed 100MB. -Rule "loginclass:users:memoryuse:deny=100M/loginclass" would mean that the sum of -memory used by all processes of all users belonging to that login class will -not exceed 100MB. +For example, rule "loginclass:users:vmem:deny=100M/process" means +that each process of any user belonging to login class "users" may allocate +up to 100MB of virtual memory. +Rule "loginclass:users:vmem:deny=100M/user" would mean that for each +user belonging to the login class "users", the sum of virtual memory allocated +by all the processes of a that user will not exceed 100MB. +Rule "loginclass:users:vmem:deny=100M/loginclass" would mean that the sum of +virtual memory allocated by all processes of all users belonging to that login +class will not exceed 100MB. .Pp -Valid rule has all of these fields specified, except for the per, which defaults +Valid rule has all those fields specified, except for the per, which defaults to the value of subject. .Pp A filter is a rule for which one of more fields other than per is left empty. @@ -119,8 +119,8 @@ .Sh EXIT STATUS .Ex -std .Sh SEE ALSO -.Xr id 1 , -.Xr limits 1 +.Xr jailstat 8 , +.Xr userstat 8 .Sh HISTORY The .Nm ==== //depot/projects/soc2009/trasz_limits/usr.bin/userstat/Makefile#2 (text+ko) ==== @@ -3,8 +3,7 @@ SCRIPTS= userstat.sh LINKS= ${BINDIR}/userstat ${BINDIR}/jailstat -#MAN= userstat.1 -#MLINKS= jailstat.1 -MAN= +MAN= userstat.8 +MLINKS= userstat.8 jailstat.8 .include