avg
5fd0e7aabd
kern_racct: move sys/systm.h inclusion to its proper place
...
This should fix the build failure introduced with r228424.
Also remove duplicate inclusion of sys/param.h.
Pointyhat to: avg
MFC after: 1 week
2011-12-12 07:46:10 +00:00
trasz
09473dab33
Actually enforce limit for inheritable resources on fork.
...
MFC after: 3 days
2011-10-04 14:56:33 +00:00
trasz
76ddb474d9
Move some code inside the racct_proc_fork(); it spares a few lock operations
...
and it's more logical this way.
MFC after: 3 days
2011-10-03 17:40:55 +00:00
trasz
82df9bbbc4
Fix another bug introduced in r225641, which caused rctl to access certain
...
fields in 'struct proc' before they got initialized in do_fork().
MFC after: 3 days
2011-10-03 16:23:20 +00:00
trasz
138a535460
Fix bug introduced in r225641, which would cause panic if racct_proc_fork()
...
returned error -- the racct_destroy_locked() would get called twice.
MFC after: 3 days
2011-10-03 15:32:15 +00:00
trasz
a6059bf016
Fix panic that happens when fork(2) fails due to a limit other than
...
the rctl one - for example, it happens when someone reaches maximum
number of processes in the system.
Approved by: re (kib)
2011-09-03 08:08:24 +00:00
trasz
13232d13fa
Rename resource names to match these in login.conf.
2011-07-14 19:18:17 +00:00
trasz
b468f23f53
Style fix - macros are supposed to be uppercase.
2011-07-07 17:44:42 +00:00
trasz
5499b0b9d5
Remove definitions for RACCT_FSIZE and RACCT_SBSIZE - these two are rather
...
performance-sensitive and not that useful, so I won't be merging them
before 9.0.
2011-05-27 19:57:58 +00:00
trasz
752ffacc69
Change the way rctl interfaces with jails by introducing prison_racct
...
structure, which acts as a proxy between them. This makes jail rules
persistent, i.e. they can be added before jail gets created, and they
don't disappear when the jail gets destroyed.
2011-05-03 07:32:58 +00:00
trasz
fffd1b22a5
Add missing stubs.
2011-04-05 19:50:34 +00:00
trasz
8d3dbe6760
Remove pointless (always true) KASSERTs.
...
Submitted by: pjd
2011-03-29 19:19:10 +00:00
trasz
b8d3e8755d
Add racct. It's an API to keep per-process, per-jail, per-loginclass
...
and per-loginclass resource accounting information, to be used by the new
resource limits code. It's connected to the build, but the code that
actually calls the new functions will come later.
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (earlier version)
2011-03-29 17:47:25 +00:00