- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-09-24T02:25:17+00:00","","")
#author("2023-04-26T02:00:49+09:00","","")
#topicpath
////////////////////////////////////////////////////////////////////////////////
* 目次 [#m646edfe]
#contents();
////////////////////////////////////////////////////////////////////////////////
* CPU 情報を得る [#get-cpu-info]
- /proc/cpuinfo を見る
$ /proc/cpuinfo
- lscpu を使う
$ lscpu
////////////////////////////////////////////////////////////////////////////////
* CPUの監視 [#fbc9e108]
- 温度・ファン回転数をモニタする
//==============================================================================
** 温度・ファン回転数をモニタする [#v2f78e83]
** パッケージ [#t4fe231c]
*** パッケージ [#t4fe231c]
- debian では、以下のパッケージを使用する
-- lm-sensors
-- libsensors4 (それぞれのアーキテクチャに分かれている)
-- xsensors (Xのグラフィカルな画面で表示させたい場合に使用)
** 実行 [#r8c505f9]
*** 実行 [#r8c505f9]
- 以下で確認が出来る:
[kazu@novak:0 ~]$ sensors
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +44.0°C (crit = +127.0°C)
temp2: +40.0°C (crit = +104.0°C)
thinkpad-isa-0000
Adapter: ISA adapter
fan1: 0 RPM
temp1: +44.0°C
temp2: +41.0°C
temp3: N/A
temp4: +45.0°C
temp5: +32.0°C
temp6: N/A
temp7: +31.0°C
temp8: N/A
temp9: +45.0°C
temp10: +41.0°C
temp11: N/A
temp12: N/A
temp13: N/A
temp14: N/A
temp15: N/A
temp16: N/A
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +40.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +40.0°C (high = +105.0°C, crit = +105.0°C)
//==============================================================================
** Core i7, i5, i3 CPU の情報をモニタリングする [#yb6d4aa8]
- i7z コマンドを実行する
- 出力例
$ i7z
Cpu speed from cpuinfo 2803.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) 2802 MHz
CPU Multiplier 28x || Bus clock frequency (BCLK) 100.07 MHz
Socket [0] - [physical cores=4, logical cores=8, max online cores ever=4]
TURBO ENABLED on 4 Cores, Hyper Threading ON
Max Frequency without considering Turbo 2902.07 MHz (100.07 x [29])
Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is 47x/47x/41x/41x
Real Current Frequency 2043.86 MHz [100.07 x 20.42] (Max of below)
Core [core-id] :Actual Freq (Mult.) C0% Halt(C1)% C3 % C6 % Temp VCore
Core 1 [0]: 1901.43 (19.00x) 30.8 79.1 0 0 73 0.9974
Core 2 [1]: 1935.70 (19.34x) 29.1 79.9 0 0 77 0.9500
Core 3 [2]: 1906.39 (19.05x) 29.1 80.2 0 0 77 0.9674
Core 4 [3]: 2043.86 (20.42x) 33.1 75.8 0 0 77 1.0425
C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver modes with cores idling)
C3 = Cores running with PLL turned off and core cache turned off
C6, C7 = Everything in C3 + core state saved to last level cache, C7 is deeper than C6
Above values in table are in percentage over the last 1 sec
[core-id] refers to core-id number in /proc/cpuinfo
'Garbage Values' message printed when garbage values are read
Ctrl+C to exit
////////////////////////////////////////////////////////////////////////////////
* CPU fan の制御 [#j6f87d71]
- デバイスの確認
# sensors-detect
Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!
Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!
Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/kmod start'
to load them.
Unloading i2c-dev... OK
Unloading cpuid... OK
//==============================================================================
** 参考リンク [#z5d47cac]
- [[ファンスピード制御 - ArchWiki>https://wiki.archlinux.jp/index.php/%E3%83%95%E3%82%A1%E3%83%B3%E3%82%B9%E3%83%94%E3%83%BC%E3%83%89%E5%88%B6%E5%BE%A1]]