13. 보드의 시스템 정보를 확인하세요.
13.1 전체 시스템 정보를 확인하세요
# Execute the following command in the armsom terminal
neofetch
다음 정보를 볼 수 있습니다.
그 의미는 다음과 같습니다.
- OS: armbian 25.2.0 버전
- 호스트: 보드 이름 armsom sige5
- 커널: 커널 버전 6.1.84 버전
- 가동 시간: 보드 온라인 시간 4min
- 패키지: 1392 설치 패키지가 설치되었습니다.
- Shell: armsom에서 사용하는 쉘 환경이 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 htop
htop ncurses가 필요한 텍스트 모드 애플리케이션(콘솔 또는 X 터미널)인 Linux 시스템의 대화형 프로세스 뷰어입니다. Linux의 기존 top과 비교하면 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_위의 PART는 CORTEX입니다._A72
- RK3576 시리즈 칩은 4xCORTEX로 구성됩니다._A72+4xCORTEX_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. Soc 온도를 확인하세요
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의 두 개의 대형 코어의 주파수 감소 장치에 해당합니다.
냉각_device2는 SOC의 다른 두 개의 대형 코어의 주파수 감소 장치에 해당합니다.
냉각_device3은 SOC GPU의 주파수 감소 장치에 해당합니다.
열_구역은 SOC 내부의 온도 모니터링 지점입니다.
열_zone0은 SOC의 주요 온도 모니터링 및 냉각 시작 및 종료에 해당합니다._장치가 이 장치에 종속되어 있습니다.
열_zone1은 SOC의 두 개의 대형 코어에 대한 온도 모니터링에 해당합니다.
열_zone2는 SOC의 다른 두 개의 대형 코어의 온도 모니터링에 해당합니다.
열_zone3은 SOC의 4개 소형 코어 온도 모니터링에 해당합니다.
열_zone4는 칩 중앙의 온도 모니터링에 해당합니다.
열_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 V사회 일정 정책 보기 또는 수정
armsom에서 사용하는 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:~$
- 보수적(conservative): CPU 부하에 따라 주파수를 동적으로 조정하여 특정 비율에 따라 주파수를 부드럽게 늘리거나 줄입니다.
- ondemand: 넓은 주파수 조정 범위를 갖춘 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.
