Radjah

Untitled

Jan 7th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /etc/cgconfig.conf
  2. mount {
  3. cpu = /cgroups/cpu;
  4. cpuacct = /cgroups/cpuacct;
  5. memory = /cgroups/memory;
  6. }
  7.  
  8.  
  9. group java-i2p {
  10. perm {
  11. admin {
  12. uid = root;
  13. }
  14. task {
  15. uid = i2psvc;
  16. }
  17. }
  18. cpu {
  19. cpu.shares = 400;
  20. }
  21. }
  22.  
  23. group java-hah {
  24. perm {
  25. admin {
  26. uid = root;
  27. }
  28. task {
  29. uid = hah;
  30. }
  31. }
  32. cpu {
  33. cpu.shares = 400;
  34. }
  35. }
  36.  
  37. cat /etc/cgrules.conf
  38. #<user> <controllers> <destination>
  39. @i2psvc cpu java-i2p
  40. hah cpu java-hah
Advertisement
Add Comment
Please, Sign In to add comment