Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 2 訪客 正在閱讀本文。
top > CPU我想要把top的結果輸出到檔案 , 可是檔案內CPU的使用率卻消失了 , 但是直接打 top 指令明明有包含 CPU使用率這一項 , 請問為什麼會這樣 , 有辦法取得嗎?謝謝
$ top -d 2 -b -s1> top.txt$ cat top.txt~$ cat top.txtlast pid: 24669; load averages: 0.24, 0.18, 0.11 up 0+01:37:19 16:26:1789 processes: 1 running, 88 sleepingMem: 128M Active, 37M Inact, 149M Wired, 32K Cache, 85M Buf, 664M FreeSwap: 8192M Total, 8192M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1170 yamaka 1 56 0 111M 20508K select 1 0:42 0.00% gnome-netstatus-app 1323 yamaka 2 45 0 115M 23236K piperd 1 0:17 0.00% gnome-terminal 1077 root 1 44 0 93408K 47412K select 1 0:17 0.00% Xorg 1071 root 1 44 0 11500K 1936K select 1 0:04 0.00% hald-addon-storage 1023 haldaemon 2 70 0 29788K 5688K piperd 0 0:04 0.00% hald 1132 yamaka 1 44 0 13100K 3680K select 0 0:03 0.00% gam_server 1145 yamaka 1 44 0 179M 32592K select 0 0:03 0.00% nautilus 1133 yamaka 1 44 0 100M 18464K select 1 0:01 0.00% metacity 1168 root 1 44 0 13100K 2660K select 1 0:01 0.00% gam_server 1129 yamaka 1 44 0 193M 16980K select 1 0:01 0.00% gnome-settings-daem 1117 root 1 44 0 27528K 4532K select 1 0:01 0.00% upowerd 1142 yamaka 1 44 0 139M 24108K select 0 0:01 0.00% gnome-panel 740 messagebus 1 44 0 8092K 2516K select 0 0:01 0.00% dbus-daemon 1153 yamaka 1 44 0 137M 23904K select 1 0:01 0.00% wnck-applet 1172 yamaka 1 44 0 182M 27360K select 0 0:00 0.00% clock-applet 1155 yamaka 1 44 0 94188K 14420K select 0 0:00 0.00% gnome-power-manager 1176 yamaka 1 44 0 34516K 5820K select 1 0:00 0.00% gvfsd-trash 1137 yamaka 1 44 0 28360K 4952K select 1 0:00 0.00% gvfs-hal-volume-monlast pid: 24677; load averages: 0.24, 0.18, 0.11 up 0+01:37:20 16:26:1889 processes: 1 running, 88 sleepingCPU: 1.3% user, 0.0% nice, 3.7% system, 0.0% interrupt, 95.0% idleMem: 128M Active, 37M Inact, 149M Wired, 32K Cache, 85M Buf, 664M FreeSwap: 8192M Total, 8192M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1170 yamaka 1 56 0 111M 20508K select 1 0:42 0.00% gnome-netstatus-app 1323 yamaka 2 45 0 115M 23236K piperd 1 0:17 0.00% gnome-terminal 1077 root 1 44 0 93408K 47412K select 0 0:17 0.00% Xorg 1071 root 1 44 0 11500K 1936K select 1 0:04 0.00% hald-addon-storage 1023 haldaemon 2 70 0 29788K 5688K piperd 0 0:04 0.00% hald 1132 yamaka 1 44 0 13100K 3680K select 0 0:03 0.00% gam_server 1145 yamaka 1 44 0 179M 32592K select 0 0:03 0.00% nautilus 1133 yamaka 1 44 0 100M 18464K select 1 0:01 0.00% metacity 1168 root 1 44 0 13100K 2660K select 1 0:01 0.00% gam_server 1129 yamaka 1 44 0 193M 16980K select 1 0:01 0.00% gnome-settings-daem 1117 root 1 44 0 27528K 4532K select 1 0:01 0.00% upowerd 1142 yamaka 1 44 0 139M 24108K select 0 0:01 0.00% gnome-panel 740 messagebus 1 44 0 8092K 2516K select 1 0:01 0.00% dbus-daemon 1153 yamaka 1 44 0 137M 23904K select 1 0:01 0.00% wnck-applet 1172 yamaka 1 44 0 182M 27360K select 0 0:00 0.00% clock-applet 1155 yamaka 1 44 0 94188K 14420K select 1 0:00 0.00% gnome-power-manager 1176 yamaka 1 44 0 34516K 5820K select 1 0:00 0.00% gvfsd-trash 1137 yamaka 1 44 0 28360K 4952K select 1 0:00 0.00% gvfs-hal-volume-mon