Home Technical Articles AIX Howto to lower the "nice" level of a user
Howto to lower the "nice" level of a user PDF Print E-mail
Written by Administrator   

aix.jpgThe nice command lets you run a command at a priority lower than the command's normal priority.  The nice value can range from 0 to 39, with 39 being the lowest priority.  For example, if a command normally runs at a priority of 20, specifying an increment of 5 runs the command at a lower priority, 25, and the command runs slower. 

A standard user usually has a nice level of 20 so you are able to reduce the nice level of a user from 20 to 39 (0 to -19).  Edit the /etc/passwd file entry for the user, and run the users shell program at a lower nice level.

In the example below the user

johnr's shell will at a nice level of 39 :-

Before :-

johnr:!:200:1:John Roebuck:/home/johnr:/usr/bin/ksh

After :-

johnr:!:200:1:John Roebuck:/home/johnr: /bin/nice -19 /usr/bin/ksh

All commands run from within the shell will also run at the reduced

nice level of 39.

You can use the following command to check the nice levels of users

programs :-

ps -o "%n %u %p %P %x %y %t %c %a"

Last Updated on Sunday, 24 January 2010 01:04
 
SoluFlex

Login Form



Who's Online

We have 3 guests online

Statistics

Members : 149
Content : 37
Web Links : 6
Content View Hits : 38780