Advertisement
Guest User

illektr1k - verynice.conf 01-Aug-2010

a guest
Jul 31st, 2010
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. # verynice.conf -- sample configuration file
  2. #
  3. # declare root immune (root owned processes will never be adjusted)
  4. immuneuser root
  5. immuneuser bin
  6. immuneuser daemon
  7. immuneuser adm
  8.  
  9.  
  10. # declare immune program, matlab in this case. If the line is uncommented,
  11. # any program with "matlab" in it's path will be immune to renicing.
  12. # The quoted quantity must match a substring of the symbolic link in
  13. # /proc/{pid}/exe
  14. # if there is a leading slash, the match must be precise
  15. #immuneexe "matlab"
  16.  
  17.  
  18. # declare "bad" program -- automatically niced to batch job level
  19. #badexe "mathematica"
  20. badexe "yaourt"
  21. badexe "pacman"
  22. badexe "fc-cache"
  23.  
  24.  
  25. # declare "hungry" program -- always assumed to have 100% cpu usage,
  26. # regardless of actual usage. For programs
  27. # which tend to have lots of little subprocesses
  28. # with short lifetimes to do their dirty work
  29. # (such as "make")
  30. # (we use leading slashes and various possible paths so that we will never
  31. # accidentally give this flag to another program)
  32. # Note that it IS possible to set both the "hungry" and "runaway" flags
  33. # simultaneously (process will always be killed after a certain amount of time)
  34. hungryexe "/usr/bin/make"
  35. hungryexe "/usr/bin/gmake"
  36. hungryexe "/bin/make"
  37. hungryexe "/bin/gmake"
  38. hungryexe "/make"
  39. hungryexe "/gmake"
  40. hungryexe "/gnumake"
  41. hungryexe "/usr/local/bin/make"
  42. hungryexe "/usr/local/bin/gmake"
  43. hungryexe "/usr/local/bin/gnumake"
  44.  
  45. # declare "good" program -- automatically negatively reniced to
  46. # multimedia job level. goodexe "xmms" reduces the chances of skipping when
  47. # playing mp3's
  48. # Also we do this for "xanim" and "realplay"
  49. goodexe "xmms"
  50. goodexe "xanim"
  51. goodexe "realplay"
  52. goodexe "rvplayer"
  53. goodexe "totem"
  54. goodexe "vlc"
  55. goodexe "clementine"
  56.  
  57.  
  58. # reduce your probability of turning out coasters from your CD drive
  59. goodexe "cdrecord"
  60. goodexe "xcdroast"
  61. goodexe "brasero"
  62. goodexe "gnomebaker"
  63.  
  64. # Making the X server a "good" program is usually a good idea too
  65. # -- X is essentially a multimedia app. These next few lines will
  66. # work even if root is declared an "immune" user and X is run as root,
  67. # because "goodexe"'s specified in verynice.conf are exceptions to
  68. # the "immuneuser" rule
  69. # (these are appropriate for Archlinux July 2010 -- the appropriate
  70. # file might be different on your system. To find the proper name, do a PS
  71. # to find the X pid, then ls -l /proc/{pid}/exe
  72. goodexe "Xorg"
  73. goodexe "compiz"
  74. goodexe "docky"
  75. goodexe "mono"
  76.  
  77. # declare "potential runaway" program. potential runaways can go to a lower
  78. # priority (reniced all the way to +20), and if they exceed that will be
  79. # killed. Other processes are never killed. This is good for netscape and
  80. # any other programs with a tendency to start eating the CPU for no reason.
  81. # example:
  82. #runawayexe "xfig"
  83.  
  84.  
  85. # Sample additional parameters, specifying the built in defaults
  86. #notnice -7
  87. #batchjob 18
  88. #runaway 20
  89. #kill 22
  90. #badkarmarate .0167
  91. #badkarmarestorationrate .0167
  92. #periodicity 60
  93. #rereadcfgperiodicity 60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement