Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys

Module Name:    src
Committed By:   christos
Date:           Sat Jun  9 02:31:15 UTC 2012

Modified Files:
        src/sys/conf: param.c
        src/sys/kern: kern_lwp.c kern_proc.c kern_prot.c kern_resource.c
        src/sys/sys: lwp.h resource.h sysctl.h uidinfo.h

Log Message:
Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There
is a global sysctl kern.maxlwp to control this, which is by default 2048.
The first lwp of each process or kernel threads are not counted against the
limit. To show the current resource usage per user, I added a new sysctl
that dumps the uidinfo structure fields.

To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/conf/param.c
cvs rdiff -u -r1.168 -r1.169 src/sys/kern/kern_lwp.c \
cvs rdiff -u -r1.185 -r1.186 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.114 -r1.115 src/sys/kern/kern_prot.c
cvs rdiff -u -r1.5 -r1.6 src/sys/kern/kern_uidinfo.c
cvs rdiff -u -r1.161 -r1.162 src/sys/sys/lwp.h
cvs rdiff -u -r1.32 -r1.33 src/sys/sys/resource.h
cvs rdiff -u -r1.200 -r1.201 src/sys/sys/sysctl.h
cvs rdiff -u -r1.2 -r1.3 src/sys/sys/uidinfo.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index