Nice

From blag.wiki.aktivix.org

Jump to: navigation, search

Do you compile kernels and applications alot? Find that it takes a looong time? Well speed up your development time with the nice command. The general usage is Usage: nice [OPTION] [COMMAND [ARG]...]

Run COMMAND with an adjusted scheduling priority. With no COMMAND, print the current scheduling priority. ADJUST is 10 by default. Range goes from -20 (highest priority) to 19 (lowest). Here's an example;

nice -n -15 make && nice -n -15 make modules_install && nice -n -15 make

Note the negative number. Root can use -ve numbers to increase a job's priority to the "front of the job queue". Jobs with lower negative numbers have the highest priority. I've used -20 to compile a kernel in ten minutes from scratch.

- jayeola

Personal tools