Top をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
Topコマンドあれこれ
windowsのタスクマネージャと同等な情報を得るには?
&ref(2013y07m09d_000838265.png,nolink);
***top [#d18643a6]
プロセスの負荷状況とか経過時間が見られる。あとswapとか実...
#code{{
top - 16:52:54 up 16 min, 1 user, load average: 0.02, 0...
Tasks: 96 total, 1 running, 95 sleeping, 0 stopped,...
Cpu0 : 0.2%us, 0.1%sy, 0.0%ni, 99.5%id, 0.2%wa, 0.0...
Cpu1 : 0.1%us, 0.1%sy, 0.0%ni, 99.6%id, 0.3%wa, 0.0...
Cpu2 : 0.1%us, 0.1%sy, 0.0%ni, 99.5%id, 0.4%wa, 0.0...
Cpu3 : 0.2%us, 0.1%sy, 0.0%ni, 99.4%id, 0.3%wa, 0.0...
Mem: 16360912k total, 371368k used, 15989544k free, ...
Swap: 16777212k total, 0k used, 16777212k free, ...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIM...
1781 root 20 0 15072 1204 912 R 2.8 0.0 0:00...
1 root 20 0 19276 1508 1224 S 0.0 0.0 0:00...
2 root 20 0 0 0 0 S 0.0 0.0 0:00...
3 root 20 0 0 0 0 S 0.0 0.0 0:00...
5 root 0 -20 0 0 0 S 0.0 0.0 0:00...
7 root RT 0 0 0 0 S 0.0 0.0 0:00...
8 root 20 0 0 0 0 S 0.0 0.0 0:00...
9 root 20 0 0 0 0 S 0.0 0.0 0:00...
}}
***nvtop [#wf9489f2]
#code(nonumber){{
dnf install nvtop
}}
GPUカード毎に稼働率、GPUメモリ使用率が表示される
***cpupowerutils [#c415bd31]
haswell cpuのc6/c7の状況を示します。
#code(nonumber){{
[root@s ~]# yum install cpupowerutils
[root@s ~]# turbostat
cor CPU %c0 GHz TSC SMI %c1 %c3 %c6 %c7 ...
0.03 0.80 3.49 0 0.07 0.01 0.00 99.89 ...
0 0 0.10 0.80 3.49 0 0.09 0.01 0.00 99.80 ...
0 4 0.02 0.80 3.49 0 0.16
1 1 0.04 0.80 3.49 0 0.04 0.01 0.00 99.92 ...
1 5 0.01 0.80 3.49 0 0.07
2 2 0.02 0.80 3.49 0 0.04 0.00 0.00 99.94 ...
2 6 0.02 0.80 3.49 0 0.04
3 3 0.04 0.80 3.49 0 0.05 0.00 0.01 99.91 ...
3 7 0.03 0.80 3.49 0 0.06
[root@s ~]#
}}
***i7z [#re8476a9]
#code(nonumber){{
[root@s ~]# cd /opt/src/
[root@s src]# git clone git://github.com/ajaiantilal/i7z....
Initialized empty Git repository in /opt/src/i7z/.git/
remote: Reusing existing pack: 589, done.
remote: Total 589 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (589/589), 1.41 MiB | 272 KiB/s, ...
Resolving deltas: 100% (350/350), done.
[root@s src]#
[root@s src]# cd i7z/
[root@s i7z]# ls -CF
COPYING README.txt i7z.h ...
GUI/ cpuinfo.c i7z_32bit* ...
MAKEDEV-cpuid-msr doc/ i7z_64bit* ...
Makefile helper_functions.c i7z_Dual_Socket.c ...
README.md i7z.c i7z_Single_Socket....
[root@s i7z]# ./i7z_64bit
Cpu speed from cpuinfo 3491.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess co...
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 3491 MHz
CPU Multiplier 35x || Bus clock frequency (BCLK) 99.74 ...
Socket [0] - [physical cores=4, logical cores=8, max onli...
TURBO ENABLED on 4 Cores, Hyper Threading ON
True Frequency 3590.74 MHz (99.74 x [36])
Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is...
Current Frequency 798.30 MHz [99.74 x 8.00] (Max of bel...
Core [core-id] :Actual Freq (Mult.) C0% H...
Core 1 [0]: 798.30 (8.00x) 1 ...
Core 2 [1]: 785.65 (7.88x) 1 ...
Core 3 [2]: 797.92 (8.00x) 1 ...
Core 4 [3]: 797.86 (8.00x) 1 ...
C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power s...
C3 = Cores running with PLL turned off and core cache tur...
C6 = Everything in C3 + core state saved to last level ca...
Above values in table are in percentage over the last 1...
[core-id] refers to core-id number in /proc/cpuinfo
[root@s i7z]#
}}
***iftop [#ja014674]
yum --enablerepo=epel install iftop
インターフェイスのtopコマンド
どのサイトからどんだけのスピード(bps)でどの方向でデータが...
#code{{
12.5kb 25.0kb 37....
---------------------------------------------------------...
c8.chaperone.jp => c.chaperone.jp ...
<= ...
}}
***iotop [#i7f8aef2]
ディスクへの書き込み・読み込みを図るみたい。
#code{{
Total DISK READ: 149.17 K/s | Total DISK WRITE: 39.25 K/s
TID PRIO USER DISK READ DISK WRITE SWAPIN I...
13824 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
}}
下記はpt2を使っていた時
#code{{
Total DISK READ: 0.00 B/s | Total DISK WRITE: 0.00 B/s
TID PRIO USER DISK READ DISK WRITE SWAPIN I...
1387 be/4 root 0.00 B/s 1615.11 K/s 0.00 % 0.00...
1390 be/4 root 0.00 B/s 1827.32 K/s 0.00 % 0.00...
1395 be/4 root 0.00 B/s 1839.11 K/s 0.00 % 0.00...
1398 be/4 root 0.00 B/s 1650.48 K/s 0.00 % 0.00...
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
}}
***virt-top [#s919c0c7]
yum --enablerepo=epel install virt-top
#code{{
virt-top 19:15:25 - x86_64 4/4CPU 1197MHz 15977MB
1 domains, 1 active, 1 running, 0 sleeping, 0 paused, 0 i...
CPU: 5.6% Mem: 4096 MB (ゲストによる 4096 MB)
ID S RDRQ WRRQ RXBY TXBY %CPU %MEM TIME NAME
7 R 0 0 2M 55K 5.6 25.0 0:23.91 c
}}
***powertop [#i531a58d]
yum install powertop
#code{{
PowerTOP version 1.11 (C) 2007 Intel Corporation
Cステイト 平均滞在時間 Pステイト (周波数)
C0 (CPU動作状態) ( 0.0%)
ポーリング C1 mwait 0.0ms ( 0.0%)
C1 mwait 0.0ms ( 0.0%)
C2 mwait 0.9ms ( 0.1%)
C3 mwait 152.6ms (100.0%)
}}
***atop [#iaa73f13]
topの詳細版な感じ?
#code{{
ATOP - c8 2013/07/07 17:06:08 ----...
PRC | sys 3.41s | user 0.63s | #proc 104 | ...
CPU | sys 2% | user 20% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
CPL | avg1 0.18 | avg5 0.50 | avg15 0.42 | ...
MEM | tot 15.6G | free 14.7G | cache 682.6M | ...
SWP | tot 16.0G | free 16.0G | | ...
DSK | sda | busy 2% | read 24136 | ...
DSK | sdc | busy 0% | read 347 | ...
DSK | sdb | busy 0% | read 363 | ...
DSK | sdd | busy 0% | read 363 | ...
NET | transport | tcpi 5236 | tcpo 4703 | ...
NET | network | ipi 5434 | ipo 4877 | ...
NET | eth0 0% | pcki 9053 | pcko 4903 | ...
*** system and process activity sin...
PID THR SYSCPU USRCPU VGROW RGROW RDDSK WRDSK ST...
9 1 0.57s 0.00s 0K 0K 0K 0K N-...
38 1 0.38s 0.00s 0K 0K 0K 0K N-...
1 1 0.34s 0.03s 19276K 1508K 51049K 136K N-...
1182 1 0.37s 0.00s 0K 0K 0K 0K N-...
}}
***ftop [#v96048c2]
プロセスとファイルとの関係図を表示
yum --enablerepo=epel install ftop
#code{{
Sun Jul 7 17:07:49 2013 ...
Processes: 34 total, 0 unreadable ...
Open Files: 17 regular, 4 dir, 117 chr, 0 blk, 19 pipe, 9...
_ PID #FD USER COMMAND
-- 360 10 root /sbin/udevd -d
| +- 3 -rw -- 389/389 /dev/.udev/queue.bin
-- 1422 7 root auditd
| +- 5 --W -- 409174/409174 /var/log/audit/audit...
-- 1438 4 root /sbin/rsyslogd -i /var/run/syslo...
| +- out --W -- 21114/21114 /var/log/secure
| +- 3 -r- -- 0/0 /proc/kmsg
| +- 4 --W -- 545551/545551 /var/log/messages
-- 1533 10 rpcuser rpc.statd
| +- 6 --w -- 5/5 /var/run/rpc.statd.pid
-- 1709 7 root /usr/sbin/xrdp-sesman
| +- 3 --W -- 673/673 /var/log/xrdp-sesman...
-- 1771 10 root /usr/sbin/packagekitd
| +- 9 -rw -- 8192/8192 /var/lib/PackageKit/...
}}
終了行:
Topコマンドあれこれ
windowsのタスクマネージャと同等な情報を得るには?
&ref(2013y07m09d_000838265.png,nolink);
***top [#d18643a6]
プロセスの負荷状況とか経過時間が見られる。あとswapとか実...
#code{{
top - 16:52:54 up 16 min, 1 user, load average: 0.02, 0...
Tasks: 96 total, 1 running, 95 sleeping, 0 stopped,...
Cpu0 : 0.2%us, 0.1%sy, 0.0%ni, 99.5%id, 0.2%wa, 0.0...
Cpu1 : 0.1%us, 0.1%sy, 0.0%ni, 99.6%id, 0.3%wa, 0.0...
Cpu2 : 0.1%us, 0.1%sy, 0.0%ni, 99.5%id, 0.4%wa, 0.0...
Cpu3 : 0.2%us, 0.1%sy, 0.0%ni, 99.4%id, 0.3%wa, 0.0...
Mem: 16360912k total, 371368k used, 15989544k free, ...
Swap: 16777212k total, 0k used, 16777212k free, ...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIM...
1781 root 20 0 15072 1204 912 R 2.8 0.0 0:00...
1 root 20 0 19276 1508 1224 S 0.0 0.0 0:00...
2 root 20 0 0 0 0 S 0.0 0.0 0:00...
3 root 20 0 0 0 0 S 0.0 0.0 0:00...
5 root 0 -20 0 0 0 S 0.0 0.0 0:00...
7 root RT 0 0 0 0 S 0.0 0.0 0:00...
8 root 20 0 0 0 0 S 0.0 0.0 0:00...
9 root 20 0 0 0 0 S 0.0 0.0 0:00...
}}
***nvtop [#wf9489f2]
#code(nonumber){{
dnf install nvtop
}}
GPUカード毎に稼働率、GPUメモリ使用率が表示される
***cpupowerutils [#c415bd31]
haswell cpuのc6/c7の状況を示します。
#code(nonumber){{
[root@s ~]# yum install cpupowerutils
[root@s ~]# turbostat
cor CPU %c0 GHz TSC SMI %c1 %c3 %c6 %c7 ...
0.03 0.80 3.49 0 0.07 0.01 0.00 99.89 ...
0 0 0.10 0.80 3.49 0 0.09 0.01 0.00 99.80 ...
0 4 0.02 0.80 3.49 0 0.16
1 1 0.04 0.80 3.49 0 0.04 0.01 0.00 99.92 ...
1 5 0.01 0.80 3.49 0 0.07
2 2 0.02 0.80 3.49 0 0.04 0.00 0.00 99.94 ...
2 6 0.02 0.80 3.49 0 0.04
3 3 0.04 0.80 3.49 0 0.05 0.00 0.01 99.91 ...
3 7 0.03 0.80 3.49 0 0.06
[root@s ~]#
}}
***i7z [#re8476a9]
#code(nonumber){{
[root@s ~]# cd /opt/src/
[root@s src]# git clone git://github.com/ajaiantilal/i7z....
Initialized empty Git repository in /opt/src/i7z/.git/
remote: Reusing existing pack: 589, done.
remote: Total 589 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (589/589), 1.41 MiB | 272 KiB/s, ...
Resolving deltas: 100% (350/350), done.
[root@s src]#
[root@s src]# cd i7z/
[root@s i7z]# ls -CF
COPYING README.txt i7z.h ...
GUI/ cpuinfo.c i7z_32bit* ...
MAKEDEV-cpuid-msr doc/ i7z_64bit* ...
Makefile helper_functions.c i7z_Dual_Socket.c ...
README.md i7z.c i7z_Single_Socket....
[root@s i7z]# ./i7z_64bit
Cpu speed from cpuinfo 3491.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess co...
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 3491 MHz
CPU Multiplier 35x || Bus clock frequency (BCLK) 99.74 ...
Socket [0] - [physical cores=4, logical cores=8, max onli...
TURBO ENABLED on 4 Cores, Hyper Threading ON
True Frequency 3590.74 MHz (99.74 x [36])
Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is...
Current Frequency 798.30 MHz [99.74 x 8.00] (Max of bel...
Core [core-id] :Actual Freq (Mult.) C0% H...
Core 1 [0]: 798.30 (8.00x) 1 ...
Core 2 [1]: 785.65 (7.88x) 1 ...
Core 3 [2]: 797.92 (8.00x) 1 ...
Core 4 [3]: 797.86 (8.00x) 1 ...
C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power s...
C3 = Cores running with PLL turned off and core cache tur...
C6 = Everything in C3 + core state saved to last level ca...
Above values in table are in percentage over the last 1...
[core-id] refers to core-id number in /proc/cpuinfo
[root@s i7z]#
}}
***iftop [#ja014674]
yum --enablerepo=epel install iftop
インターフェイスのtopコマンド
どのサイトからどんだけのスピード(bps)でどの方向でデータが...
#code{{
12.5kb 25.0kb 37....
---------------------------------------------------------...
c8.chaperone.jp => c.chaperone.jp ...
<= ...
}}
***iotop [#i7f8aef2]
ディスクへの書き込み・読み込みを図るみたい。
#code{{
Total DISK READ: 149.17 K/s | Total DISK WRITE: 39.25 K/s
TID PRIO USER DISK READ DISK WRITE SWAPIN I...
13824 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
}}
下記はpt2を使っていた時
#code{{
Total DISK READ: 0.00 B/s | Total DISK WRITE: 0.00 B/s
TID PRIO USER DISK READ DISK WRITE SWAPIN I...
1387 be/4 root 0.00 B/s 1615.11 K/s 0.00 % 0.00...
1390 be/4 root 0.00 B/s 1827.32 K/s 0.00 % 0.00...
1395 be/4 root 0.00 B/s 1839.11 K/s 0.00 % 0.00...
1398 be/4 root 0.00 B/s 1650.48 K/s 0.00 % 0.00...
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00...
}}
***virt-top [#s919c0c7]
yum --enablerepo=epel install virt-top
#code{{
virt-top 19:15:25 - x86_64 4/4CPU 1197MHz 15977MB
1 domains, 1 active, 1 running, 0 sleeping, 0 paused, 0 i...
CPU: 5.6% Mem: 4096 MB (ゲストによる 4096 MB)
ID S RDRQ WRRQ RXBY TXBY %CPU %MEM TIME NAME
7 R 0 0 2M 55K 5.6 25.0 0:23.91 c
}}
***powertop [#i531a58d]
yum install powertop
#code{{
PowerTOP version 1.11 (C) 2007 Intel Corporation
Cステイト 平均滞在時間 Pステイト (周波数)
C0 (CPU動作状態) ( 0.0%)
ポーリング C1 mwait 0.0ms ( 0.0%)
C1 mwait 0.0ms ( 0.0%)
C2 mwait 0.9ms ( 0.1%)
C3 mwait 152.6ms (100.0%)
}}
***atop [#iaa73f13]
topの詳細版な感じ?
#code{{
ATOP - c8 2013/07/07 17:06:08 ----...
PRC | sys 3.41s | user 0.63s | #proc 104 | ...
CPU | sys 2% | user 20% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
cpu | sys 1% | user 5% | irq 0% | ...
CPL | avg1 0.18 | avg5 0.50 | avg15 0.42 | ...
MEM | tot 15.6G | free 14.7G | cache 682.6M | ...
SWP | tot 16.0G | free 16.0G | | ...
DSK | sda | busy 2% | read 24136 | ...
DSK | sdc | busy 0% | read 347 | ...
DSK | sdb | busy 0% | read 363 | ...
DSK | sdd | busy 0% | read 363 | ...
NET | transport | tcpi 5236 | tcpo 4703 | ...
NET | network | ipi 5434 | ipo 4877 | ...
NET | eth0 0% | pcki 9053 | pcko 4903 | ...
*** system and process activity sin...
PID THR SYSCPU USRCPU VGROW RGROW RDDSK WRDSK ST...
9 1 0.57s 0.00s 0K 0K 0K 0K N-...
38 1 0.38s 0.00s 0K 0K 0K 0K N-...
1 1 0.34s 0.03s 19276K 1508K 51049K 136K N-...
1182 1 0.37s 0.00s 0K 0K 0K 0K N-...
}}
***ftop [#v96048c2]
プロセスとファイルとの関係図を表示
yum --enablerepo=epel install ftop
#code{{
Sun Jul 7 17:07:49 2013 ...
Processes: 34 total, 0 unreadable ...
Open Files: 17 regular, 4 dir, 117 chr, 0 blk, 19 pipe, 9...
_ PID #FD USER COMMAND
-- 360 10 root /sbin/udevd -d
| +- 3 -rw -- 389/389 /dev/.udev/queue.bin
-- 1422 7 root auditd
| +- 5 --W -- 409174/409174 /var/log/audit/audit...
-- 1438 4 root /sbin/rsyslogd -i /var/run/syslo...
| +- out --W -- 21114/21114 /var/log/secure
| +- 3 -r- -- 0/0 /proc/kmsg
| +- 4 --W -- 545551/545551 /var/log/messages
-- 1533 10 rpcuser rpc.statd
| +- 6 --w -- 5/5 /var/run/rpc.statd.pid
-- 1709 7 root /usr/sbin/xrdp-sesman
| +- 3 --W -- 673/673 /var/log/xrdp-sesman...
-- 1771 10 root /usr/sbin/packagekitd
| +- 9 -rw -- 8192/8192 /var/lib/PackageKit/...
}}
ページ名:
1