103.6 Modify Process Execution Priorities Flashcards
Modify Process Execution Priorities
allow a user to start a process with a priority lower than the default
nice
0 is default
nice starts with 10
Modify Process Execution Priorities
nice
allows you to change the default priority of the indicated program
nice -n [#] [program]
Modify Process Execution Priorities
changes priority of a process and commonly used to lower a process priority that may be consuming too many resources or to raise a process priority so it can complete faster
renice
Modify Process Execution Priorities
renice
change priority to higher number to lower priority and ALL users can do this
renice +[#] [PID]
Modify Process Execution Priorities
renice
only root users can do this - change priority to a lower number which is a higher priority
renice -[#] [PID]
Modify Process Execution Priorities
config is read from /etc/toprc or local - /home/usr/.toprc for user configs and used to display actively running running processes and can be used to alter priority of running processes
top
Modify Process Execution Priorities
top
run and update the processes display ever ‘#’ of seconds
top d [#]
Modify Process Execution Priorities
top
show only active processes
top -i
Modify Process Execution Priorities
top
run in batch mode
top -b
Modify Process Execution Priorities
top
run ‘#’ of updates and exit
top -c [#]
Modify Process Execution Priorities
top
will run top in batch mode and update 5 times and write the results to output.txt file and exit
top -b -n 5 > output.txt
Modify Process Execution Priorities
top shortcuts
immediate update
top spacebar
Modify Process Execution Priorities
top shortcuts
displays help screen
top -h
Modify Process Execution Priorities
top shortcuts
prompts for PID to kill
top -k
Modify Process Execution Priorities
top shortcuts
display or ignore inactive/idle/zombie processes (toggle)
top -i