Topコマンドあれこれ
windowsのタスクマネージャと同等な情報を得るには?
プロセスの負荷状況とか経過時間が見られる。あとswapとか実メモリの使用量など
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
haswell cpuのc6/c7の状況を示します。
[root@s ~]# yum install cpupowerutils
[root@s ~]# turbostat
cor CPU %c0 GHz TSC SMI %c1 %c3 %c6 %c7 CTMP PTMP %pc2 %pc3 %pc6 %pc7 Pkg_W Cor_W GFX_W
0.03 0.80 3.49 0 0.07 0.01 0.00 99.89 24 25 99.66 0.00 0.00 0.00 5.44 0.00 0.00
0 0 0.10 0.80 3.49 0 0.09 0.01 0.00 99.80 23 25 99.66 0.00 0.00 0.00 5.44 0.00 0.00
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 23
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 24
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 19
3 7 0.03 0.80 3.49 0 0.06
[root@s ~]#
[root@s ~]# cd /opt/src/
[root@s src]# git clone git://github.com/ajaiantilal/i7z.git
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, done.
Resolving deltas: 100% (350/350), done.
[root@s src]#
[root@s src]# cd i7z/
[root@s i7z]# ls -CF
COPYING README.txt i7z.h i7z_rw_registers.rb
GUI/ cpuinfo.c i7z_32bit* perfmon-i7z/
MAKEDEV-cpuid-msr doc/ i7z_64bit* put_cores_offline.sh
Makefile helper_functions.c i7z_Dual_Socket.c put_cores_online.sh
README.md i7z.c i7z_Single_Socket.c test-scripts/
[root@s i7z]# ./i7z_64bit
Cpu speed from cpuinfo 3491.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess correctly try estimating via tsc
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 3491 MHz
CPU Multiplier 35x || Bus clock frequency (BCLK) 99.74 MHz
Socket [0] - [physical cores=4, logical cores=8, max online cores ever=4]
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 39x/39x/38x/37x
Current Frequency 798.30 MHz [99.74 x 8.00] (Max of below)
Core [core-id] :Actual Freq (Mult.) C0% Halt(C1)% C3 % C6 % Temp
Core 1 [0]: 798.30 (8.00x) 1 99 1 0 24
Core 2 [1]: 785.65 (7.88x) 1 100 0 0 23
Core 3 [2]: 797.92 (8.00x) 1 100 0 0 25
Core 4 [3]: 797.86 (8.00x) 1 100 0 0 21
C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver)
C3 = Cores running with PLL turned off and core cache turned off
C6 = Everything in C3 + core state saved to last level cache
Above values in table are in percentage over the last 1 sec
[core-id] refers to core-id number in /proc/cpuinfo
[root@s i7z]#
yum --enablerepo=epel install iftop
インターフェイスのtopコマンド
どのサイトからどんだけのスピード(bps)でどの方向でデータが転送されているかを示す。
1 2 3 4 |
|
ディスクへの書き込み・読み込みを図るみたい。
1 2 3 4 5 |
|
下記はpt2を使っていた時
1 2 3 4 5 6 7 |
|
yum --enablerepo=epel install virt-top
1 2 3 4 5 6 |
|
yum install powertop
1 2 3 4 5 6 7 8 |
|
topの詳細版な感じ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
プロセスとファイルとの関係図を表示
yum --enablerepo=epel install ftop
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|