Advertisement
Guest User

Untitled

a guest
Feb 5th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # /etc/cgrules.conf
  2. #
  3. #Each line describes a rule for a user in the forms:
  4. #
  5. #<user> <controllers> <destination>
  6. #<user>:<process name> <controllers> <destination>
  7. #
  8. #Where:
  9. # <user> can be:
  10. # - an user name
  11. # - a group name, with @group syntax
  12. # - the wildcard *, for any user or group.
  13. # - The %, which is equivalent to "ditto". This is useful for
  14. # multiline rules where different cgroups need to be specified
  15. # for various hierarchies for a single user.
  16. #
  17. # <process name> is optional and it can be:
  18. # - a process name
  19. # - a full command path of a process
  20. #
  21. # <controller> can be:
  22. # - comma separated controller names (no spaces)
  23. # - * (for all mounted controllers)
  24. #
  25. # <destination> can be:
  26. # - path with-in the controller hierarchy (ex. pgrp1/gid1/uid1)
  27. #
  28. # Note:
  29. # - It currently has rules based on uids, gids and process name.
  30. #
  31. # - Don't put overlapping rules. First rule which matches the criteria
  32. # will be executed.
  33. #
  34. # - Multiline rules can be specified for specifying different cgroups
  35. # for multiple hierarchies. In the example below, user "peter" has
  36. # specified 2 line rule. First line says put peter's task in test1/
  37. # dir for "cpu" controller and second line says put peter's tasks in
  38. # test2/ dir for memory controller. Make a note of "%" sign in second line.
  39. # This is an indication that it is continuation of previous rule.
  40. #
  41. #
  42. #<user> <controllers> <destination>
  43. #
  44. #john cpu usergroup/faculty/john/
  45. #john:cp cpu usergroup/faculty/john/cp
  46. #@student cpu,memory usergroup/student/
  47. #peter cpu test1/
  48. #% memory test2/
  49. #@root * admingroup/
  50. #* * default/
  51. # End of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement