Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4844

Raspberry Pi OS • Re: RPI 5 pcie monitor

$
0
0
ok thanks for all of the help from everyone. I've created a short script to help automate this:

Code:

#!/bin/bash# Raspberry Pi check vital device statistics.## Download this script and give it execute permissions (chmod +x).# Then run it with ./check_vitals.shwho -buptimemyfile=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freqecho "cpu max freq: " $(sudo cat $myfile)vcgencmd get_throttledvcgencmd measure_tempvcgencmd measure_volts uncachedecho "pmic_read_adc:"vcgencmd pmic_read_adcecho -e "\npcie test direct:"dd if=/dev/zero of=./Testingfile bs=100M count=50 oflag=directecho -e "\npcie test dsync:"dd if=./Testingfile of=/dev/zero bs=100M count=50 oflag=dsyncecho -e "\naer_dev_correctable:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_dev_correctableecho -e "\naer_dev_fatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_dev_fatalecho -e "\naer_dev_nonfatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_dev_nonfatalecho -e "\naer_rootport_total_err_cor:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_rootport_total_err_corecho -e "\naer_rootport_total_err_fatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_rootport_total_err_fatalecho -e "\naer_rootport_total_err_nonfatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/aer_rootport_total_err_nonfatalecho -e "\ndevice/aer_dev_err_correctable:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/0000\:01\:00.0/aer_dev_correctableecho -e "\ndevice/aer_dev_fatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/0000\:01\:00.0/aer_dev_fatalecho -e "\ndevice/aer_dev_nonfatal:"cat /sys/devices/platform/axi/1000110000.pcie/pci0000\:00/0000\:00\:00.0/0000\:01\:00.0/aer_dev_nonfatal
The output is:
./check_vitals.sh
system boot 2024-01-29 23:58
17:37:00 up 3:40, 2 users, load average: 1.12, 0.58, 0.34
cpu max freq: 3000000
throttled=0x0
temp=41.1'C
volt=1.0000V
pmic_read_adc:
3V7_WL_SW_A current(0)=0.09271335A
3V3_SYS_A current(1)=0.05562801A
1V8_SYS_A current(2)=0.19421010A
DDR_VDD2_A current(3)=0.07417068A
DDR_VDDQ_A current(4)=0.00343140A
1V1_SYS_A current(5)=0.20787310A
0V8_SW_A current(6)=0.41086650A
VDD_CORE_A current(7)=3.00941000A
3V3_DAC_A current(17)=0.00000000A
3V3_ADC_A current(18)=0.00024420A
0V8_AON_A current(16)=0.00586080A
HDMI_A current(22)=0.02002440A
3V7_WL_SW_V volt(8)=3.71462400V
3V3_SYS_V volt(9)=3.31374500V
1V8_SYS_V volt(10)=1.81635900V
DDR_VDD2_V volt(11)=1.10109800V
DDR_VDDQ_V volt(12)=0.60329610V
1V1_SYS_V volt(13)=1.10988900V
0V8_SW_V volt(14)=0.80109810V
VDD_CORE_V volt(15)=1.00302700V
3V3_DAC_V volt(20)=3.31409900V
3V3_ADC_V volt(21)=3.32692000V
0V8_AON_V volt(19)=0.80029220V
HDMI_V volt(23)=5.13756000V
EXT5V_V volt(24)=5.16436000V
BATT_V volt(25)=0.00000000V

pcie test direct:
50+0 records in
50+0 records out
5242880000 bytes (5.2 GB, 4.9 GiB) copied, 6.95265 s, 754 MB/s

pcie test dsync:
50+0 records in
50+0 records out
5242880000 bytes (5.2 GB, 4.9 GiB) copied, 6.26708 s, 837 MB/s

aer_dev_correctable:
RxErr 0
BadTLP 2
BadDLLP 0
Rollover 1
Timeout 1
NonFatalErr 0
CorrIntErr 0
HeaderOF 0
TOTAL_ERR_COR 2

aer_dev_fatal:
Undefined 0
DLP 0
SDES 0
TLP 0
FCP 0
CmpltTO 0
CmpltAbrt 0
UnxCmplt 0
RxOF 0
MalfTLP 0
ECRC 0
UnsupReq 0
ACSViol 0
UncorrIntErr 0
BlockedTLP 0
AtomicOpBlocked 0
TLPBlockedErr 0
PoisonTLPBlocked 0
TOTAL_ERR_FATAL 0

aer_dev_nonfatal:
Undefined 0
DLP 0
SDES 0
TLP 0
FCP 0
CmpltTO 0
CmpltAbrt 0
UnxCmplt 0
RxOF 0
MalfTLP 0
ECRC 0
UnsupReq 0
ACSViol 0
UncorrIntErr 0
BlockedTLP 0
AtomicOpBlocked 0
TLPBlockedErr 0
PoisonTLPBlocked 0
TOTAL_ERR_NONFATAL 0

aer_rootport_total_err_cor:
9

aer_rootport_total_err_fatal:
0

aer_rootport_total_err_nonfatal:
0

device/aer_dev_err_correctable:
RxErr 0
BadTLP 0
BadDLLP 0
Rollover 1
Timeout 1
NonFatalErr 0
CorrIntErr 0
HeaderOF 0
TOTAL_ERR_COR 1

device/aer_dev_fatal:
Undefined 0
DLP 0
SDES 0
TLP 0
FCP 0
CmpltTO 0
CmpltAbrt 0
UnxCmplt 0
RxOF 0
MalfTLP 0
ECRC 0
UnsupReq 0
ACSViol 0
UncorrIntErr 0
BlockedTLP 0
AtomicOpBlocked 0
TLPBlockedErr 0
PoisonTLPBlocked 0
TOTAL_ERR_FATAL 0

device/aer_dev_nonfatal:
Undefined 0
DLP 0
SDES 0
TLP 0
FCP 0
CmpltTO 0
CmpltAbrt 0
UnxCmplt 0
RxOF 0
MalfTLP 0
ECRC 0
UnsupReq 0
ACSViol 0
UncorrIntErr 0
BlockedTLP 0
AtomicOpBlocked 0
TLPBlockedErr 0
PoisonTLPBlocked 0
TOTAL_ERR_NONFATAL 0
Hi there.
Do you have any idea what the VDD_CORE_A is in your output? It says approx. 3A. Under what circumstances was that? I try the same on mine, and it's only between 1.1A and 1.8A. Why such a difference to yours? And note that I have some issues with a SSD in a Pineberry Bottom Hat. It works fine except when transferring files via my home ethernet to another computer. That doesn't run as fast as it should. It should go close to 1Gbit/s. It's more around 100-150Mbit/s, and there's nothing wrong with ethernet cables, switch etc. Iperf shows optimal connection speed between my Pi5 and my Win11 laptop. Testing SSD also shows fine speed with around 400MB/s.
I do occasionally get some warnings about insufficient power supply. Testing with another Pi5 and original power supply gives the same problems. So I suspect there is some power/current challenges here with the hat and the 4TB SSD.
Hope you can help me here? My other voltage and current is ballpark like yours... except that VDD_CORE_A.

Best regards

Ulrich

Statistics: Posted by ullenulle — Thu Feb 22, 2024 4:54 am



Viewing all articles
Browse latest Browse all 4844

Trending Articles