K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-04-13T21:04:06.580697Z K 7 svn:log V 854 MFC r242139: Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu". It was implemented by Rudolf Tomori during Google Summer of Code 2012. MFC r242957: Don't divide by zero. MFC r243070: Fix kassert that's not really valid for %CPU accounting. The problem here is race between decaying the resource usage in containers, and updating per-process usage; basically, the former may cause per-container usage to get smaller than per-process usage. MFC r243088: Improve KASSERT messages in racct, to make it clear which resource caused the problem. MFC r248298: Accessing td_state requires thread lock to be held. MFC r248300: When throttling a process to enforce RACCT limits, do not use neither PBDRY (which simply doesn't make any sense) nor PCATCH (which could be used by a malicious process to work around the PCPU limit). END