Commit Graph

13 Commits

Author SHA1 Message Date
riastradh 90917aa11e kern: Show relevant variables for uidinfo counts in kasserts. 2021-12-28 13:28:24 +00:00
simonb c3540d8521 Add a sysctl hashstat collector for uihash. 2021-04-01 06:25:45 +00:00
christos 72a5054858 PR/53998: Joel Bertrand: Limit the number of semaphores on a
per-user basis not a per-process.  We cannot really keep track on
a per-process basis because a parent process can create the semaphore
and a child can free it taking credit for it.  There is also a
similar issue about resource exhaustion if we limited the number
of lwps per process as opposed to per user (which we don't).
2019-03-01 03:03:19 +00:00
riastradh 2a3b9d8872 Need membar_datadep_consumer here. 2017-03-18 05:49:56 +00:00
riastradh 068914dcb9 Nix trailing whitespace. 2017-03-18 05:45:48 +00:00
pooka 55246528e8 At least pretend to not leak memory in sysctl initialization.
This commit message would be longer if it included opinions about
sysctllog vs. CTLFLAG_PERMANENT ...
2013-03-10 17:55:42 +00:00
christos 847d309682 Remove debugging. 2012-06-09 02:55:32 +00:00
christos 0461089547 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.
2012-06-09 02:31:14 +00:00
ad 7c4a91a3e5 uid_init: maxproc -> maxcpus 2009-03-22 00:49:13 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
ad a68a7877a5 Correction to previous. 2008-10-14 09:17:23 +00:00
ad a65f991bb4 Redo kern_resource.c:1.146 by pooka@: change ui_sbsize to a u_long. 2008-10-14 09:16:32 +00:00
pooka 7e5aba5af0 Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.
2008-10-11 13:40:57 +00:00