From ArchWiki
(Redirected from Verynice)
Jump to: navigation, search

Gnome-colors-add-files-to-archive.pngThis article is being considered for archiving.Gnome-colors-add-files-to-archive.png

Reason: As mentioned in #Installation this project is down, so maintained alternatives should be preferred. (The table in #Configuration is a copy-paste from its former homepage.) (Discuss in Talk:VeryNice#)

VeryNice is a daemon, available in the AUR, for dynamically adjusting the nice levels of executables. The nice level represents the priority of the executable when allocating CPU resources. Simply define executables for which responsiveness is important, like X or multimedia applications, as goodexe in /etc/verynice.conf. Similarly, CPU-hungry executables running in the background, like make, can be defined as badexe. This prioritisation greatly improves system responsiveness under heavy load.


Note: VeryNice hasn't been updated since 2014 and the official homepage is down. Try ananicy-gitAUR for alternative.

Install the veryniceAUR package from the AUR.

Start/enable verynice.service.


VeryNice automatically reads configuration information both from a central location (/etc/verynice.conf ) and from the home directories of individual users, in the ~/.verynicerc file. The format of both kinds of configuration files is the same. More restrictive settings in the global configuration generally take precedence over individual users' settings. Of course the settings in a user's ~/.verynicerc file only affect that user's processes. A sample verynice.conf file is usually installed in /etc/verynice.conf or /usr/local/etc/verynice.conf.

notniceSet the nice-level of "goodexe" processes -4 Any negative number greater than -20 Centralno
batchjobSet the nice-level of "badexe" processes 18 Any positive number less than 20Centralno
runawaySet the bad karma (nice) level at which runawayexe processes are killed with SIGTERM 20 Any positive numberCentralno
killSet the bad karma (nice) level at which runawayexe processes are killed with SIGKILL 22 Any positive numberCentralno
badkarmarateSet the amount of bad karma generated per second of 100% cpu usage (for small bad karma levels) .0167 Any positive real number Centralno
badkarmarestorationrateSet the amount of bad karma removed per second of 0% cpu usage .0167 Any positive real number Centralno
periodicitySet the approximate number of seconds between iterations through the process analysis code of VeryNice 60 Any positive integer. Large values use less CPU. Small values give more precise performance. Centralno
rereadcfgperiodicitySet the approximate number of program cycles (periodicities, above) between attempts to reread the configuration files of VeryNice 60 Any positive integer. Be aware that reconfiguring requires looking up the .verynicerc file in each user's home directory and does not affect existing processes. Centralno
immuneuserInhibit VeryNice from modifying the nice level of a user's processes, except for "goodexe", below, if set in the central config file.(none)Any user name, unquotedCentralyes
immuneexeInhibit VeryNice from modifying the nice level of certain executables(none)Any substring of the complete path to the executable, quoted with double quotes ("). If it begins with '/', it must match the complete path precisely. Central/Useryes
badexeForce the nice level of an executable to the BATCHJOB level(none) (As above)Central/Useryes
goodexeForce the nice level of an executable to the NOTNICE level. This is typically used for real-time multimedia applications which need high priority(none) (As above) Central/Useryes
runawayexeMark an executable as a potential runaway process. Only processes specially marked will ever be killed by VeryNice(none) (As above) Central/Useryes
hungryexeMark an executable as "assumed to be CPU hungry". Such a process will be treated as if it were using 100% of the CPU, regardless of its actual CPU usage. This is appropriate for programs that do their real work in lots of short-lived subprocesses, such as make(1). (none) (As above) Central/Useryes

See also

Project Site (via the Internet Archive)