Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes Pi5 #34

Open
peardox opened this issue Dec 23, 2023 · 6 comments
Open

Crashes Pi5 #34

peardox opened this issue Dec 23, 2023 · 6 comments
Assignees

Comments

@peardox
Copy link

peardox commented Dec 23, 2023

First trme run worked fine and got this https://pibenchmarks.com/user/Peardox/

As I mention the lead seems an issue - I've got an M2 in a USB Caddy so I swapped lead for a known good one...

Output............ (after this nothing works and power needs removing as all commands are unknown)

Eeek.....

peardox@pi5:~ $ sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36196 100 36196 0 0 127k 0 --:--:-- --:--:-- --:--:-- 126k
Trimming and syncing drives ...
Board information: Manufacturer: Raspberry Pi Foundation - Model: Raspberry Pi 5 Model B Rev 1.0 - Architecture: aarch64 - OS: Debian GNU/Linux 12 (bookworm)
Fetching required components ...
Clock speeds: CPU: 2400 - Core: 910
System rootfs drive (/) has been detected as /dev/sda2 (sda2)
Starting INXI hardware identification...
System:
Kernel: 6.1.0-rpi7-rpi-2712 arch: aarch64 bits: 64 compiler: gcc v: 12.2.0 Console: pty pts/1
Distro: Debian GNU/Linux 12 (bookworm)
Machine:
Type: ARM System: Raspberry Pi 5 Model B Rev 1.0 details: N/A rev: d04170 serial:
CPU:
Info: quad core model: N/A variant: cortex-a76 bits: 64 type: MCP arch: ARMv8 rev: 1
Speed (MHz): avg: 2400 min/max: 1000/2400 cores: 1: 2400 2: 2400 3: 2400 4: 2400 bogomips: 432
Features: Use -f option to see features
Graphics:
Device-1: bcm2712-hdmi0 driver: vc4_hdmi v: N/A bus-ID: N/A
Device-2: bcm2712-hdmi1 driver: vc4_hdmi v: N/A bus-ID: N/A
Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: wayfire
v: 0.7.5 driver: N/A tty: 80x40
API: OpenGL Message: GL data unavailable in console, glxinfo missing.
Network:
Device-1: driver: rp1 v: N/A port: N/A bus-ID: 01:00.0
IF: wlan0 state: up mac:
IF-ID-1: eth0 state: up speed: 1000 Mbps duplex: full mac:
Drives:
Local Storage: total: 931.51 GiB used: 10.32 GiB (1.1%)
ID-1: /dev/sda vendor: Western Digital model: WD BLACK SN770 1TB size: 931.51 GiB type: USB
Message: No optical or floppy data found.
Partition:
ID-1: / size: 916.49 GiB used: 10.25 GiB (1.1%) fs: ext4 dev: /dev/sda2
Info:
Processes: 182 Uptime: 15m Memory: total: 8 GiB available: 7.86 GiB used: 627.4 MiB (7.8%)
igpu: 4 MiB Init: systemd target: graphical (5) Compilers: gcc: 12.2.0 clang: 14.0.6
Packages: 1670 Client: Sudo v: 1.9.13p3 inxi: 3.3.31
Running additional hardware identification tests...
Additional hardware identification tests completed.
Starting mass storage device identification...
Running HDParm tests ...
bash: line 835: sed: command not found
bash: line 837: sed: command not found
bash: line 840: sed: command not found
bash: line 843: sed: command not found
bash: line 846: sed: command not found
bash: line 849: sed: command not found

bash: line 852: grep: command not found
bash: line 852: awk: command not found
bash: line 852: sed: command not found
bash: line 853: grep: command not found
bash: line 853: awk: command not found
bash: line 853: sed: command not found
bash: line 854: grep: command not found
bash: line 854: sed: command not found
bash: line 854: awk: command not found
bash: line 855: grep: command not found
bash: line 855: awk: command not found
bash: line 855: sed: command not found
HDParm: - HDParmCached:
Running dd tests ...
bash: line 860: /usr/bin/sync: Input/output error
bash: line 861: /usr/bin/sync: Input/output error
bash: line 862: sed: command not found
bash: line 863: tail: command not found
bash: line 863: awk: command not found
bash: line 863: sed: command not found
bash: line 863: sed: command not found
bash: line 864: tail: command not found
bash: line 864: awk: command not found
bash: line 864: sed: command not found
bash: line 864: sed: command not found

DD Write Speed:
bash: line 868: /usr/bin/rm: Input/output error
Running fio write test ...
bash: line 872: /usr/bin/sync: Input/output error
bash: line 873: /usr/bin/sync: Input/output error
bash: line 874: fio: command not found
bash: line 874: sed: command not found
bash: line 875: awk: command not found
bash: line 876: awk: command not found
bash: line 877: /usr/bin/rm: Input/output error
Running fio read test ...
bash: line 879: /usr/bin/sync: Input/output error
bash: line 880: /usr/bin/sync: Input/output error
bash: line 881: fio: command not found
bash: line 881: sed: command not found
bash: line 882: awk: command not found
bash: line 883: awk: command not found
FIO results - 4k RandWrite: IOPS ( KB/s) - 4k RandRead: IOPS ( KB/s)
bash: line 885: /usr/bin/rm: Input/output error
Running iozone test ...
bash: line 889: /usr/bin/sync: Input/output error
bash: line 890: /usr/bin/sync: Input/output error
bash: line 891: which: command not found
bash: line 892: iozone/src/current/./iozone: Input/output error
bash: line 896: tail: command not found
bash: line 896: awk: command not found
bash: line 897: tail: command not found
bash: line 897: awk: command not found
bash: line 898: tail: command not found
bash: line 898: awk: command not found
bash: line 899: tail: command not found
bash: line 899: awk: command not found
bash: line 900: sed: command not found
bash: line 900: grep: command not found

RandRead: - RandWrite: - Read: - Write:
Enter a description of your storage and setup (Example: Kingston A400 SSD on Pi 4 using StarTech SATA to USB adapter)

@peardox
Copy link
Author

peardox commented Dec 23, 2023

FYI Additional manual tests that don't crash anything...

simon@pi5:~ $ sudo hdparm -t /dev/sda2

/dev/sda2:
Timing buffered disk reads: 1090 MB in 3.01 seconds = 362.52 MB/sec
simon@pi5:~ $ iozone -a -e -I -i 0 -i 1 -i 2 -s 80M -r 4k
Iozone: Performance Test of File I/O
Version $Revision: 3.489 $
Compiled for 64 bit mode.
Build: linux

    Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                 Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                 Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                 Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                 Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                 Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                 Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                 Vangel Bojaxhi, Ben England, Vikentsi Lapa,
                 Alexey Skidanov, Sudhir Kumar.

    Run began: Sat Dec 23 19:12:16 2023

    Auto Mode
    Include fsync in write timing
    O_DIRECT feature enabled
    File size set to 81920 kB
    Record Size 4 kB
    Command line used: iozone -a -e -I -i 0 -i 1 -i 2 -s 80M -r 4k
    Output is in kBytes/sec
    Time Resolution = 0.000001 seconds.
    Processor cache size set to 1024 kBytes.
    Processor cache line size set to 32 bytes.
    File stride size set to 17 * record size.
                                                          random    random     bkwd    record    stride
          kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
       81920       4    43724    45022    38928    32095    24446    44885

@peardox
Copy link
Author

peardox commented Dec 23, 2023

Oh, additionally, the Pi5 has no SD Card - only USB3 HS Caddy for M2 one of these...
https://www.amazon.co.uk/gp/product/B09T97Z7DM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

@mikeyd810
Copy link

First trme run worked fine and got this https://pibenchmarks.com/user/Peardox/

As I mention the lead seems an issue - I've got an M2 in a USB Caddy so I swapped lead for a known good one...

Output............ (after this nothing works and power needs removing as all commands are unknown)

Eeek.....

peardox@pi5:~ $ sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 36196 100 36196 0 0 127k 0 --:--:-- --:--:-- --:--:-- 126k Trimming and syncing drives ... Board information: Manufacturer: Raspberry Pi Foundation - Model: Raspberry Pi 5 Model B Rev 1.0 - Architecture: aarch64 - OS: Debian GNU/Linux 12 (bookworm) Fetching required components ... Clock speeds: CPU: 2400 - Core: 910 System rootfs drive (/) has been detected as /dev/sda2 (sda2) Starting INXI hardware identification... System: Kernel: 6.1.0-rpi7-rpi-2712 arch: aarch64 bits: 64 compiler: gcc v: 12.2.0 Console: pty pts/1 Distro: Debian GNU/Linux 12 (bookworm) Machine: Type: ARM System: Raspberry Pi 5 Model B Rev 1.0 details: N/A rev: d04170 serial: CPU: Info: quad core model: N/A variant: cortex-a76 bits: 64 type: MCP arch: ARMv8 rev: 1 Speed (MHz): avg: 2400 min/max: 1000/2400 cores: 1: 2400 2: 2400 3: 2400 4: 2400 bogomips: 432 Features: Use -f option to see features Graphics: Device-1: bcm2712-hdmi0 driver: vc4_hdmi v: N/A bus-ID: N/A Device-2: bcm2712-hdmi1 driver: vc4_hdmi v: N/A bus-ID: N/A Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: wayfire v: 0.7.5 driver: N/A tty: 80x40 API: OpenGL Message: GL data unavailable in console, glxinfo missing. Network: Device-1: driver: rp1 v: N/A port: N/A bus-ID: 01:00.0 IF: wlan0 state: up mac: IF-ID-1: eth0 state: up speed: 1000 Mbps duplex: full mac: Drives: Local Storage: total: 931.51 GiB used: 10.32 GiB (1.1%) ID-1: /dev/sda vendor: Western Digital model: WD BLACK SN770 1TB size: 931.51 GiB type: USB Message: No optical or floppy data found. Partition: ID-1: / size: 916.49 GiB used: 10.25 GiB (1.1%) fs: ext4 dev: /dev/sda2 Info: Processes: 182 Uptime: 15m Memory: total: 8 GiB available: 7.86 GiB used: 627.4 MiB (7.8%) igpu: 4 MiB Init: systemd target: graphical (5) Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1670 Client: Sudo v: 1.9.13p3 inxi: 3.3.31 Running additional hardware identification tests... Additional hardware identification tests completed. Starting mass storage device identification... Running HDParm tests ... bash: line 835: sed: command not found bash: line 837: sed: command not found bash: line 840: sed: command not found bash: line 843: sed: command not found bash: line 846: sed: command not found bash: line 849: sed: command not found

bash: line 852: grep: command not found bash: line 852: awk: command not found bash: line 852: sed: command not found bash: line 853: grep: command not found bash: line 853: awk: command not found bash: line 853: sed: command not found bash: line 854: grep: command not found bash: line 854: sed: command not found bash: line 854: awk: command not found bash: line 855: grep: command not found bash: line 855: awk: command not found bash: line 855: sed: command not found HDParm: - HDParmCached: Running dd tests ... bash: line 860: /usr/bin/sync: Input/output error bash: line 861: /usr/bin/sync: Input/output error bash: line 862: sed: command not found bash: line 863: tail: command not found bash: line 863: awk: command not found bash: line 863: sed: command not found bash: line 863: sed: command not found bash: line 864: tail: command not found bash: line 864: awk: command not found bash: line 864: sed: command not found bash: line 864: sed: command not found

DD Write Speed: bash: line 868: /usr/bin/rm: Input/output error Running fio write test ... bash: line 872: /usr/bin/sync: Input/output error bash: line 873: /usr/bin/sync: Input/output error bash: line 874: fio: command not found bash: line 874: sed: command not found bash: line 875: awk: command not found bash: line 876: awk: command not found bash: line 877: /usr/bin/rm: Input/output error Running fio read test ... bash: line 879: /usr/bin/sync: Input/output error bash: line 880: /usr/bin/sync: Input/output error bash: line 881: fio: command not found bash: line 881: sed: command not found bash: line 882: awk: command not found bash: line 883: awk: command not found FIO results - 4k RandWrite: IOPS ( KB/s) - 4k RandRead: IOPS ( KB/s) bash: line 885: /usr/bin/rm: Input/output error Running iozone test ... bash: line 889: /usr/bin/sync: Input/output error bash: line 890: /usr/bin/sync: Input/output error bash: line 891: which: command not found bash: line 892: iozone/src/current/./iozone: Input/output error bash: line 896: tail: command not found bash: line 896: awk: command not found bash: line 897: tail: command not found bash: line 897: awk: command not found bash: line 898: tail: command not found bash: line 898: awk: command not found bash: line 899: tail: command not found bash: line 899: awk: command not found bash: line 900: sed: command not found bash: line 900: grep: command not found

RandRead: - RandWrite: - Read: - Write: Enter a description of your storage and setup (Example: Kingston A400 SSD on Pi 4 using StarTech SATA to USB adapter)

I'm wondering if this is a power or usb adapter issue, are you using the official Pi 5 power supply?

@peardox
Copy link
Author

peardox commented Dec 24, 2023

Everything is official Pi5 apart from the caddy
The only difference is that I switched cables. The questionable cable was USB-C to USB-C with a USB3 (claimed) adapter which worked OK but at USB2 speeds
I have a similar setup on the Pi4 so swapped the lead as that one is a proper USB-C to USB3
The only difference is the lead - now working at USB3 speed

When attached to Pi4 and some Samsung M2 out of a dead Strix G713 (good enuff drive) it worked fine reporting as....
Category Test Result
HDParm Disk Read 332.24 MB/sec
HDParm Cached Disk Read 322.12 MB/sec
DD Disk Write 136 MB/s
FIO 4k random read 14586 IOPS (58347 KB/s)
FIO 4k random write 9674 IOPS (38696 KB/s)
IOZone 4k read 31996 KB/s
IOZone 4k write 27742 KB/s
IOZone 4k random read 24866 KB/s
IOZone 4k random write 31744 KB/s

So simply using the same cable with a WD770SN on Pi5 is causing some issue after HDParam resulting in no commands being recognised (pull plug only answer)

@mikeyd810
Copy link

What sort of errors do you see around the time it occurs if you run dmesg? Assuming if you even can at that point

@TheRemote
Copy link
Owner

This isn't really making a lot of sense. We already have 631 submissions for the Pi 5. I think this has to be something with the distro.

It doesn't look like it can find sed or awk? What happens if you just type sed on the command line? Is it really missing these core utilities?

I don't fully qualify my path either in the storage script. All I do is run "sed" for example instead of /usr/bin/sed or anything like that. That would suggest to me that your path variables are messed up on this distro for some reason.

What do you get for echo $PATH:

ubuntu@pibenchmarks:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

That's what I get on the pibenchmarks.com server running Ubuntu. I'm guessing your system utilities are not going to be on your PATH variable based on your output here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants