Raspberry Pi-4-Temperature CPU memory hard disk status information

Get the current status and data of the Raspberry Pi (temperature, CPU, memory, hard disk)

1 CPU and operating system information

1.1 CPU information

$ sudo cat /proc/cpuinfo

$ sudo cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 1
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 2
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 3
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

Hardware        : BCM2711
Revision        : c03112
Serial          : 100000001a3259be
Model           : Raspberry Pi 4 Model B Rev 1.2

(1) processor The number of the logic processing core in the
quad-core processor 0,1,2,3
system.
For a single-core processor, it is considered to be its CPU number;
for a multi-core processor, it can be a physical core or a logical core virtualized by hyper-threading technology.
(2) Model name
ARMv7 is an instruction set sold by ARM to various chip vendors, and it is ARM's CPU architecture.
Version rev 3.

(3)
The CPU speed roughly calculated by BogoMIPS when the system kernel is started.
MIPS is the abbreviation of Millions of Instructions Per Second (Millions of Instructions Per Second), which represents the computing speed of the CPU and is an important indicator of CPU performance.
Bogo means Bogus (pseudo).
BogoMIPS is a measure of the operating speed of computer processors in the Linux operating system, written by Linus Torvalds, the main Linux developer. It is calculated by the calibrate_delay() function. Can only be used to roughly calculate the performance of the processor, not very accurate.

(4) Features
CRC32: Cyclic Redundancy Check redundancy check code, CRC32 means that a 32bit (8-digit hexadecimal number) check value will be generated.

CPUID register content, field name:
Implementer (venter sales ID) ---- base address offset: [31-24]
Variant (large version number) ---------------- -Base address offset: [23-20]
Architecture (architecture version) ---------- Base address offset: [19-16]
Part Num (product code)------ ------- Base address offset: [15-4]
Revision (Minor version number) -------------- Base address offset: [3-0]

CPUID is 0x41-0-f-d08-3

(5)CPU implementer
Insert picture description here

1.2 System version

(1)$ uname -a
Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
shows armv7l, but it is still not clear how many systems it is, unless the following information is known.
Where l refers to the little-endian cpu.
The ARMv8 instruction set is divided into the Aarch64 and Aarch32 instruction sets, while the ARMv7 uses the A32 and T16 instruction sets (32-bit and 16-bit respectively).
Insert picture description hereNote that armv7 is not arm7. Arm7, 8, 9 are chip versions, and v7, v8 are instruction set versions.
(2)$ sudo getconf LONG_BIT
32
means to use the 32-bit version of the system

(3)$ sudo cat /proc/version
Linux version 5.4.83-v7l+ (dom@buildbot) (gcc version 8.4.0 (Ubuntu/Linaro 8.4.0-3ubuntu1)) #1379 SMP Mon Dec 14 13:11:54 GMT 2020

1.3 System Kernel

$ cd /boot
$ ls | grep kernel The
Insert picture description herenew raspbian already comes with a 64-bit kernel kernel8.img.

2 Temperature CPU memory hard disk status

2.1 Temperature

$ sudo vcgencmd measure_temp
temp=33.1’C

2.2 CPU

$ sudo top -n1
Insert picture description here
(1) The first line of the top command
top-10:43:39 up 1:14, 2 users, load average: 0.01, 0.03, 0.00
system current time, system running time so far, The number of users currently logged in to the system and the system load (average length of the task queue) are the average values ​​of 1 minute, 5 minutes, and 15 minutes ago to the present [These three are generally less than 1, if they continue to be higher than 5, Please check carefully which program affects the operation of the system].

(2) The second line of the top command
Tasks: 123 total, 1 running, 122 sleeping, 0 stopped, 0 zombie
The number of all started processes, the number of running processes, the number of suspended processes, the number of stopped processes, and the zombie process number.
(3) The third line of the top command
%Cpu(s): 1.4 us, 4.2 sy, 0.0 ni, 94.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st

us,user: time running un-niced user processes 用户空间占用CPU百分比
sy,system: time running kernel processes 内核空间占用CPU百分比
ni,nice: time running niced user processes 用户进程空间内改变过优先级的进程占用CPU百分比
wa,IO-wait: time waiting for I/O completion 等待输入输出的CPU时间百分比
hi: time spent servicing hardware interrupts 硬件中断
si: time spent servicing software interrupts 软件中断
st: time stolen from this vm by the hypervisor

(4) The fourth line of the top command
MiB Mem: 3827.9 total, 3545.2 free, 82.5 used, 200.2 buff/cache
total physical memory, free physical memory, used physical memory, and kernel cache memory.
(5) The top command line 5
MiB Swap: 100.0 total, 100.0 free, 0.0 used. 3609.9 avail Mem
exchange area total, "free exchange area total, used interactive area total, buffered exchange area total.
( 6) Top command line 6
Insert picture description here

PID--------进程ID 
USER-------进程所有者
PR---------优先级priority,越小越被执行
NI---------nice值,负值表示高优先级,正值表示低优先级  
VIRT-------进程使用的虚拟内存总量  
RES--------进程使用的、未被换出的物理内存大小  
SHR--------共享内存大小 
S----------进程状态 
%CPU-------上次更新到现在的CPU时间占用百分比 
%MEM-------进程使用的物理内存百分比    
TIME+------进程使用CPU总时间  
COMMAND----命令名、命令行

2.3 Memory

$ sudo free -m
Insert picture description here

2.4 Hard Disk

$ sudo df -h /
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_20466211/article/details/114208891