The goal of the project is to add the CPU percentage usage accounting to the existing racct/rctl infrastructure. I want to make it possible for the system administrator to limit either a particular process, a particular user or a particular jail to for example 30% CPU.
cd /usr/src
patch -p1 < patch-file.patch
options RACCT
options RCTL
rctl -a user:tom:pcpu:deny=60 Adds a 60% cpu limit for user tom.
rctl -a process:1657:pcpu:deny=70 Adds a 70% cpu limit for process with id 1657.