top/ps 顯示 priority的問題 - Linux

Carol avatar
By Carol
at 2008-07-29T02:58

Table of Contents

※ 引述《[email protected] (小州)》之銘言:
: ps -o 是使用 priority, 不是 pri 這個字而已, 輸出的意義用途
: 不大一樣

man ps裡提到PRI有兩種: priority, oprio
加上一種不知道哪來的 prio....
這三種有什麼區別阿...


不管哪個跟ULK的100~140差的蠻多的...
|cmd_ni ps_pririty ps_opri ps_pri ps_ni top_pr top_ni
|-20 0 60 39 -20 0 -20
| 0 20 80 19 0 20 0
| 19 39 99 0 19 39 19


root@test-laptop:~# renice -20 -p $pid
9238: old priority 19, new priority -20
root@test-laptop:~# ps -o "pid pri priority opri nice" $pid
PID PRI PRI PRI NI
9238 39 0 60 -20
root@test-laptop:~# renice 0 -p $pid
9238: old priority -20, new priority 0
root@test-laptop:~# ps -o "pid pri priority opri nice" $pid
PID PRI PRI PRI NI
9238 19 20 80 0
root@test-laptop:~# renice 19 -p $pid
9238: old priority 0, new priority 19
root@test-laptop:~# ps -o "pid pri priority opri nice" $pid
PID PRI PRI PRI NI
9238 0 39 99 19
root@test-laptop:~#

--
Tags: Linux

All Comments

postfix 與 mutt

Isabella avatar
By Isabella
at 2008-07-29T01:18
我用的是 debian + postfix 收信軟體是: mutt , 可是當我執行 mutt時,都會出現 /var/mail/user: Permission denied (errno = 13) 如果改用 root權限,「手動」建立這個檔案 /var/mail/user 則會造成: mutt ...

安裝軟體 設定軟體使用環境問題

Dorothy avatar
By Dorothy
at 2008-07-29T00:06
小弟正在按照安裝步驟安裝到最後一步 設定軟體使用環境 輸入:source /usr/cad/synopsys/CIC/astro.cshrc 就出現了:bash:/CIC/snps_platform: No such file or direcory Platform = bash: /CIC/license ...

有關於gnome-terminal上bbs的問題

Hazel avatar
By Hazel
at 2008-07-28T19:09
※ 引述《Chris7462.bbsatbbs.math.ncu.edu.tw (~烤焦麵包~)》之銘言: : ※ 引述《fuha.bbsatptt.cc (mimi)》之銘言: : andgt; 恩我也有用~ : andgt; 不過有時候要多開個pcman 有點麻煩 : andgt; 所以今天試了一下 直接 ...

有關於gnome-terminal上bbs的問題

Todd Johnson avatar
By Todd Johnson
at 2008-07-28T18:09
※ 引述《Maxsolar.bbsatOfO.twbbs.org (Astro v.s. Geo)》之銘言: : ※ 引述《fuha.bbsatptt.cc (mimi)》之銘言: : : 今天試著用 gnome-terminal 來上bbs : : 在 terminal 下鍵入 : : env LC_ALL ...

有關於gnome-terminal上bbs的問題

Carolina Franco avatar
By Carolina Franco
at 2008-07-28T17:19
今天試著用 gnome-terminal 來上bbs 在 terminal 下鍵入 env LC_ALL=zh_TW.Big5 gnome-terminal --disable-factory \ -x telnet ptt.ccandamp; 除了美工的部份沒有辦法接受外 其實整體用起來也還不錯 ...