linux 用 ps 找出誰占用 CPU 最多的程序
作者:cross 日期:2011-10-04 17:32
指令
參數說明ps -eo pid,ppid,user,group,pcpu,pmem,comm,stat,state,time,lstart,ni,tty,vsize,sz | sort -r -k 5
結果顯示comm = command = args = cmd
pcpu = cpu utilization of the process in "##.#" format
time = cumulative CPU time
pmem = ratio of the process’s resident set size to the physical memory on the machine, expressed as a percentage
lstart = time the command started
ni = nice value. This ranges from 19 (nicest) to -20 (not nice to others)
tty = tt = tname = controlling tty (terminal).
vsize = vsz = virtual memory size of the process in KiB
sz = size in physical pages of the core image of the process
IIS7 出現 500 - 內部伺服器錯誤,我怎麼debug除錯
作者:cross 日期:2011-10-03 11:05
puush-螢幕抓圖工具、立即分享圖片在網路上
作者:cross 日期:2011-09-26 15:57
用tagBeep監控網站,免費簡訊寄信警告
作者:cross 日期:2011-09-23 15:15
Synergy 讓多台電腦使用同一組鍵盤滑鼠
作者:cross 日期:2011-09-21 16:08
Synergy 從官網 上的 slogan 是
它可以達到 :
比方說我有兩台電腦,有兩個螢幕 (各接自已的電腦),它可以讓我只使用同一組鍵盤滑鼠,
且是同時在兩個螢幕上 (滑鼠移過去那個螢幕就可使用那台電腦),
不像KVM 是要按切換鍵的 (KVM是用於同一個螢幕) 。
更棒的是它是 open source,支援 windows、 mac、 ubuntu、redhat、fedora
它的功能跟KVM (螢幕的切換設備) 很像,Just move your mouse from one screen to another
它可以達到 :
比方說我有兩台電腦,有兩個螢幕 (各接自已的電腦),它可以讓我只使用同一組鍵盤滑鼠,
且是同時在兩個螢幕上 (滑鼠移過去那個螢幕就可使用那台電腦),
不像KVM 是要按切換鍵的 (KVM是用於同一個螢幕) 。
更棒的是它是 open source,支援 windows、 mac、 ubuntu、redhat、fedora
更跨張的 vim 小抄來了
作者:cross 日期:2011-09-21 11:37
linux benchmark 對 linux 作壓力測試的工具--nbench
作者:cross 日期:2011-09-18 11:38
nbench
1。也是linux 平台下測試效能的工具
2。好像比較針對 CPU 作測試
3。官網在 http://www.tux.org/~mayer/linux/bmark.html
怎麼操作
1。在官網下載 nbench-byte-2.2.3.tar.gz
2。解開
3。執行 make 後,就會產生 nbench
4。就可執行 ./nbench 進行測試
測試硬體規格
。Intel(R) Pentium(R) CPU G6950 2.80GHz
。RAM: 2G





