Nice number
• Range: -20 ~ +19
• User process default: 0
• + no. lower the priority
• - no. raise the priority
• Only root can lower the no.
• Don’t assign +no. to fg jobs -- sluggish
Syntax
• Just nice shows current priority
• nice [-n no.] [command]
• nice [-no.] [command]
• Normal user: no. = 1~19
• Root: no. = -20~19
• Not specified no.: default to 10
Examples
[law@localhost ~]$ nice seq 1000000&
Using default nice# 10 to reduce priority
[law@localhost ~]$ nice -n -10 vi /etc/hosts.deny
Start vi at high priority (-10)
renice
Modify nice no. of a running program
Syntax:
Renice [+|-]nicenumber [option] targets
Examples
[law@localhost ~]$ renice 19 501
Lower process 501's priority
[law@localhost ~]$ renice -10 -u law -p 501
Increase all law's process and process 501
Labels
訂閱:
張貼留言 (Atom)
History
-
▼
2010
(37)
-
▼
1月
(9)
- Recommended application and installation for new U...
- Linux - Compression and Uncompression Example
- Change process priority - nice and renice
- Checking system status
- Linux command - cut, sed, awk
- ps aux 各欄位的意義
- Fine tune your VM - Extend vm disk size in Linux
- Fedora 12 enable root login in GUI
- editor - vi
-
▼
1月
(9)
沒有留言:
張貼留言