13。ボードのシステム情報を確認する
13.1 システム全体の情報を確認します
# Execute the following command in the armsom terminal
neofetch
次の情報が表示されます。
その意味は次のとおりです。
- OS: armbian 25.2.0 バージョン
- 主催者:ボード名 armsom sige5
- カーネル: カーネルバージョン 6.1.84 バージョン
- 稼働時間: ボードのオンライン時間 4分
- パッケージ: 1392 インストール パッケージがインストールされました
- Shell: armom によって使用されるシェル環境が bash 5.2.21 バージョンであることを示します
- 解像度: 画面解像度は1200*1920です
- ターミナル: ターミナルは /dev/ttyFIQ0 を使用します
- CPU: 8 コア、大小のコア アーキテクチャを使用しているため、実際の CPU 周波数は表示できません
- メモリ: 合計 7920MiB (8G)、現在 498MiB を使用
13.2 Vファイルシステムを確認する
#Use the command
df -h
# The actual machine runs as follows
armsom@armsom-sige5:/$ df -h
File system Capacity Used Available Used% Mount point
Filesystem Size Used Avail Use% Mounted on
tmpfs 793M 9.5M 783M 2% /run
/dev/mmcblk1p1 57G 5.1G 51G 9% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 8.0K 3.9G 1% /tmp
/dev/zram1 47M 2.9M 41M 7% /var/log
tmpfs 792M 68K 792M 1% /run/user/112
tmpfs 792M 56K 792M 1% /run/user/1000
13.3 パフォーマンス監視ツール
13.3.1 トップ
ボードに付属する監視ツール。プロセスの基本情報を表示できます。
#Use command
top
13.3.2 hトップ
htop これは、Linux システムの対話型プロセス ビューアであり、ncurses を必要とするテキスト モード アプリケーション (コンソールまたは X ターミナル内) です。 Linux の従来のトップと比較して、htop はより使いやすくなっています。ユーザーはインタラクティブに操作でき、カラーテーマをサポートし、プロセスリストを水平または垂直にスクロールでき、マウス操作もサポートします。
#Use command
htop
htop の詳細な使用法 (クリックするとリンクにジャンプします)
13.4 VCPU 情報を表示
/proc/cpuinfo ファイルには CPU 情報が保存されており、次のコマンドで表示できます。
完全なコード/コマンドと出力を展開します (完全なオリジナル)
armsom@armsom-sige5:~$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 4
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd08
CPU revision : 0
processor : 5
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd08
CPU revision : 0
processor : 6
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd08
CPU revision : 0
processor : 7
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd08
CPU revision : 0
Serial : ef3fdfea9ac14db7
// Definition of ARM_CPU_PART
#define ARM_CPU_PART_AEM_V8 0xD0F
#define ARM_CPU_PART_FOUNDATION 0xD00
#define ARM_CPU_PART_CORTEX_A57 0xD07
#define ARM_CPU_PART_CORTEX_A72 0xD08
#define ARM_CPU_PART_CORTEX_A53 0xD03
#define ARM_CPU_PART_CORTEX_A73 0xD09
#define ARM_CPU_PART_CORTEX_A75 0xD0A
#define ARM_CPU_PART_CORTEX_A35 0xD04
#define ARM_CPU_PART_CORTEX_A55 0xD05
#define ARM_CPU_PART_CORTEX_A76 0xD0B
#define ARM_CPU_PART_NEOVERSE_N1 0xD0C
#define ARM_CPU_PART_CORTEX_A77 0xD0D
#define ARM_CPU_PART_NEOVERSE_V1 0xD40
#define ARM_CPU_PART_CORTEX_A78 0xD41
#define ARM_CPU_PART_CORTEX_A78AE 0xD42
#define ARM_CPU_PART_CORTEX_X1 0xD44
#define ARM_CPU_PART_CORTEX_A510 0xD46
#define ARM_CPU_PART_CORTEX_A710 0xD47
#define ARM_CPU_PART_CORTEX_X2 0xD48
#define ARM_CPU_PART_NEOVERSE_N2 0xD49
#define ARM_CPU_PART_CORTEX_A78C 0xD4B
上記の情報から、armsom sige5 CPU には 8 コアがあることがわかります
- コア 0 ~ 3 は 0xD05 を使用します。 ARMによると_CPU_上記のPART定義、それはCORTEXです_A53.
- 4~7のコアは0xD0Bを使用します。 ARMの定義によると_CPU_上の部分、それはCORTEXです_A72
- RK3576 シリーズチップは 4xCORTEX で構成されています_A72+4xコルテックス_A53
13.5 soc 周波数を確認してください
- soc周波数を確認してください
デフォルトは可変周波数モードで、周波数は現在のアプリケーションに応じて変化します。
armsom@armsom-sige5:/sys/devices/system/cpu$ cat cpu*/cpufreq/scaling_cur_freq
408000
408000
408000
408000
408000
408000
408000
408000
- GPUの周波数を確認する
デフォルトは可変周波数モードで、周波数は現在のアプリケーションに応じて変化します。
armsom@armsom-sige5:/$ cat /sys/class/devfreq/27700000.npu/cur_freq
300000000
- NPU周波数を確認してください
デフォルトは可変周波数モードで、周波数は現在のアプリケーションに応じて変化します。
armsom@armsom-sige5:/$ sudo cat /sys/kernel/debug/clk/clk_summary | grep npu*
scmi_clk_npu 0 0 0 200000000 0 0 50000 Y
tclk_npu_wdt 0 0 0 24000000 0 0 50000 N
clk_nputimer_root 0 0 0 24000000 0 0 50000 N clk_nputimer1 0 0 0 24000000 0 0 50000 N clk_nputimer0 0 0 0 24000000 0 0 50000 N clk_npu_cm0_rtc 0 0 0 32768 0 0 50000 N hclk_npu_cm0_root 0 0 0 396000000 0 0 50000 N fclk_npu_cm0_core 0 0 0 396000000 0 0 50000 N pclk_nputop_root 0 0 0 100000000 0 0 50000 N pclk_npu_wdt 0 0 0 100000000 0 0 50000 N
pclk_npu_timer 0 0 0 100000000 0 0 50000 N
- DDR周波数をチェックする
デフォルトは可変周波数モードで、周波数は現在のアプリケーションに応じて変化します。
armsom@armsom-sige5:/$ cat /sys/class/devfreq/dmc/cur_freq
2112000000
13.6。ソック温度を確認してください
Thermal を使用してチップの温度を監視する
# List all thermal devices
ls /sys/class/thermal
armsom@armsom-sige5:~$ ls /sys/class/thermal
cooling_device0 cooling_device2 thermal_zone0 thermal_zone2 thermal_zone4
cooling_device1 cooling_device3 thermal_zone1 thermal_zone3 thermal_zone5
- 冷却が4つあるのがわかります_デバイスと 6 つのサーマル_ファイル内のゾーン
冷却_デバイスは、SOC が温度制御に達すると、温度を下げるために SOC 自体のデバイスの電力消費の一部を削減します。
冷却_device0 は、SOC の 4 つの小さなコアの周波数低減デバイスに対応します
冷却_device1 は、SOC の 2 つの大きなコアの周波数低減デバイスに対応します
冷却_device2 は、SOC の他の 2 つの大きなコアの周波数低減デバイスに対応します
冷却_device3 は、SOC の GPU の周波数低減デバイスに対応します。
熱_ゾーンは SOC 内の温度監視ポイントです
熱_ゾーン0はSOCのメイン温度監視と冷却の起動と停止に対応します。_デバイスはこのデバイスに依存しています
熱_ゾーン 1 は、SOC の 2 つの大きなコアの温度監視に対応します。
熱_zone2 は、SOC の他の 2 つの大きなコアの温度監視に対応します。
熱_zone3 は SOC の 4 つの小さなコアの温度監視に対応します
熱_ゾーン4はチップ中心の温度監視に対応します
熱_zone5はSOCのGPUの温度監視に対応
cat /sys/class/thermal/thermal_zone0/temp
# Other temperature control monitoring points can also be operated as above to check the temperature
13.7 VSOC スケジューリング ポリシーを確認または変更します
armom が使用する rk3576 の CPU スケジューリング ポリシー (クラスター) は、各コアの周波数変換を個別に制御しません。 rk は、8 コアを 2 クラスターに分割します
armsom@armsom-sige5:~$ ls /sys/devices/system/cpu/cpufreq/
policy0 policy4
- 4 皮質_A53 コア – ポリシー0
- 4 皮質_A72 コア – ポリシー 4
これにより制御が非常に容易になり、クラスターを制御することで SOC の全体的なパフォーマンスを制御できます。
これらのクラスターの固定周波数を設定する方法は非常に簡単です。
# View the current SOC scheduling policy
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
# The actual machine runs as follows (the current SOC frequency modulation policy is ondemand)
armsom@armsom-sige5:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
ondemand
armsom@armsom-sige5:~$
# View all SOC scheduling policies
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
# The actual machine runs as follows (there are 7 types)
armsom@armsom-sige5:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
interactive conservative ondemand userspace powersave performance schedutil
armsom@armsom-sige5:~$
- 保守的: CPU 負荷に基づいて周波数を動的に調整し、特定の比率に従って周波数を滑らかに増減します。
- オンデマンド: CPU 負荷に基づいた動的周波数調整。周波数調整範囲が広く、最高または最低の周波数に直接調整できます。
- インタラクティブ: CPU 負荷に基づいた動的な周波数調整、より速い応答時間、より多くの設定可能なパラメータ、およびオンデマンドよりも高い柔軟性。
- userspace: ユーザーモード アプリケーションが周波数を調整するための対応するインターフェイスを提供します。
- powersave:消費電力を優先し、周波数を常に最低値に設定します。
- パフォーマンス: パフォーマンスが優先され、周波数は常に最高の値に設定されます。
- schedutil: EAS はガバナーを使用します。 EAS (Energy Aware Scheduling) は、新世代のタスク スケジューリング戦略です。これは、CPUFreq 戦略と CPUIdle 戦略を組み合わせたものです。タスクを実行する CPU を選択するときは、パフォーマンスと消費電力の両方が考慮され、パフォーマンスに影響を与えることなくシステムのエネルギー消費が最小限に抑えられます。 Schedutil スケジューリング ポリシーは、EAS に特に使用される CPU 周波数調整ポリシーです。
クラスターのスケジューリング ポリシー設定 (policy0 を例にします):
# This configuration requires the root user to operate
su root
# Enter your password (default is "root")
# View supported scheduling policies
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
# Adjust to the scheduling policy you need (taking performance as an example)
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
クラスターの固定頻度ポリシー設定 (policy0 を例にします):
# This configuration requires the root user to operate
su root
# Enter your password (default is "root")
# Adjust the policy to ``userspace``
echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
# View the available CPU frequency
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
# The actual machine runs as follows (there are 8 types)
armsom@armsom-sige5:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
408000 600000 816000 1008000 1200000 1416000 1608000 1800000
armsom@armsom-sige5:~$
# Set the frequency (set to 600MHz)
echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
上記は一時的なものであり、再起動後は機能しなくなります。永続的に修正する必要がある場合は、/etc/init.d/boot の最後に上記のコマンドを追加できます。_init.sh.
