PiBenchmarks icon indicating copy to clipboard operation
PiBenchmarks copied to clipboard

Tests other than fio don't report results

Open SpaceCadetRick opened this issue 1 year ago • 4 comments

Hi,

I'm having some trouble getting results, I've been going through and installing most of the dependancies that I could but some like iozone I couldn't figure out and the script doesn't seem to be installing them for me. Below is the output that I get when I run it. I'm running Home Assistant on a Raspberry Pi 4. Any idea what might be causing this?

~ $ 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 35745  100 35745    0     0   175k      0 --:--:-- --:--:-- --:--:--  176k                                                                                                                                                      
Trimming and syncing drives ...                                                                                                                                                                                                     
Board information: Architecture: aarch64 - OS: Alpine Linux v3.16                                                                                                                                                                   
Fetching required components ...                                                                                                                                                                                                    
No package manager found!                                                                                                                                                                                                           
Clock speeds: CPU: 1500 - Core:                                                                                                                                                                                                     
System rootfs drive (/) has been detected as overlay (overlay)                                                                                                                                                                      
Starting INXI hardware identification...                                                                                                                                                                                            
ps: unrecognized option: w                                                                                                                                                                                                          
BusyBox v1.35.0 (2022-08-01 15:14:44 UTC) multi-call binary.                                                                                                                                                                        
                                                                                                                                                                                                                                    
Usage: ps [-o COL1,COL2=HEADER] [-T]                                                                                                                                                                                                
                                                                                                                                                                                                                                    
Show list of processes                                                                                                                                                                                                              
                                                                                                                                                                                                                                    
        -o COL1,COL2=HEADER     Select columns for display                                                                                                                                                                          
        -T                      Show threads                                                                                                                                                                                        
Use of uninitialized value $pppid in substitution (s///) at ./inxi line 6211.                                                                                                                                                       
System:                                                                                                                                                                                                                             
  Kernel: 5.15.61-v8 arch: aarch64 bits: 64 compiler: N/A Console: pty pts/1                                                                                                                                                        
    Distro: Alpine Linux v3.16                                                                                                                                                                                                      
Machine:                                                                                                                                                                                                                            
  Type: ARM System: Raspberry Pi 4 Model B Rev 1.4 details: BCM2835 rev: b03114                                                                                                                                                     
CPU:                                                                                                                                                                                                                                
  Info: quad core model: N/A variant: armv8 bits: 64 type: MCP arch: ARMv8 rev: 3 cache:                                                                                                                                            
    L1: 320 KiB L2: 1024 KiB                                                                                                                                                                                                        
  Speed (MHz): avg: 600 min/max: 600/1500 cores: 1: 600 2: 600 3: 600 4: 600 bogomips: 432                                                                                                                                          
  Features: Use -f option to see features                                                                                                                                                                                           
Graphics:                                                                                                                                                                                                                           
  Device-1: bcm2708-fb driver: N/A bus-ID: N/A                                                                                                                                                                                      
  Device-2: Realtek RTL2838 DVB-T type: USB driver: usbfs bus-ID: 1-1.2:7                                                                                                                                                           
  Display: server: No display server data found. Headless machine? tty: 80x40                                                                                                                                                       
  API: N/A Message: No display API data available in console. Headless machine?                                                                                                                                                     
Network:                                                                                                                                                                                                                            
  Device-1: bcm2835-mmc driver: mmc_bcm2835 v: N/A port: N/A bus-ID: N/A                                                                                                                                                            
  IF: wlan0 state: down mac: <filter>                            
  Device-2: bcm2711-genet-v5 driver: bcmgenet v: N/A port: N/A bus-ID: N/A                                                                                                                                                          
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>                                                                                                                                                                    
  Device-3: StarTech.com SA400S37240G type: USB driver: uas bus-ID: 1-1.4.2:6                                                                                                                                                       
  IF-ID-1: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>                                                                                                                                                        
  IF-ID-2: hassio state: up speed: 10000 Mbps duplex: unknown mac: <filter>                                                                                                                                                         
  IF-ID-3: veth33111c5 state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-4: veth56a1007 state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-5: veth70a06c1 state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-6: veth7b12cf7 state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-7: veth85dd770 state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-8: vethccb32ae state: up speed: 10000 Mbps duplex: full mac: <filter>                                                                                                                                                       
  IF-ID-9: vethd1141e8 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-10: vethe1d46d9 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-11: vethe786c5d state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-12: vethf3d4a47 state: up speed: 10000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 223.57 GiB used: 20.81 GiB (9.3%) 
  ID-1: /dev/sda type: USB vendor: Kingston model: SA400S37240G size: 223.57 GiB
  Message: No optical or floppy data found.
Partition:
  Message: No partition data found.
Info:
  Processes: 18 Uptime: 6d 9h 8m Memory: 1.8 GiB used: 827.5 MiB (44.8%) Init: s6 Compilers:
  gcc: N/A Packages: 256 Client: shell wrapper v: 5.1.16-release inxi: 3.3.23
Running additional hardware identification tests...
Additional hardware identification tests completed.
Starting mass storage device identification...
Running HDParm tests ...

HDParm:  MB/s - HDParmCached:  MB/s
Running dd tests ...
81920+0 records in
81920+0 records out
DD Write Speed: records MB/s
Running fio write test ...
Running fio read test ...
FIO results - 4k RandWrite: 3949 IOPS (15799 KB/s) - 4k RandRead: 4029 IOPS (16116 KB/s)
Running iozone test ...
bash: line 886: iozone/src/current/./iozone: cannot execute binary file: Exec format error

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)
Description: 
(Optional) Enter alias to use on benchmark results.  Leave blank for completely anonymous.
Alias (leave blank for Anonymous): 
Result submitted successfully and will appear live on https://pibenchmarks.com within a couple of minutes.
(standard_in) 2: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error

     Category                  Test                      Result     
HDParm                    Disk Read                  MB/s                    
HDParm                    Cached Disk Read           MB/s                    
DD                        Disk Write                records MB/s             
FIO                       4k random read            4029 IOPS (16116 KB/s)   
FIO                       4k random write           3949 IOPS (15799 KB/s)   
IOZone                    4k read                    KB/s                    
IOZone                    4k write                   KB/s                    
IOZone                    4k random read             KB/s                    
IOZone                    4k random write            KB/s                    

                          Score:                                             

Compare with previous benchmark results at:
https://pibenchmarks.com/

SpaceCadetRick avatar Nov 30 '22 04:11 SpaceCadetRick

It looks like the script doesn't support Alpine Linux (what Home Assistant OS uses), so you'll need to manually install the required dependencies:

apk add lshw udev pciutils usbutils lsscsi bc curl hwinfo hdparm dmidecode fio nvme-cli smartmontools xxd

Two of the tools are only in the edge/testing repository, so you'll need a separate command to install them from there:

apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing iozone sdparm

landalex avatar Mar 21 '23 22:03 landalex

Ugh, I just barely migrated my Home Assistant OS install from my Tinker Board to an Orange Pi 5 (meaning I went supervised). Even though they stopped releasing Home Assistant OS for newer boards there's still a lot of these installations out there and the Pi is still supported (as well as the Tinker Board).

Definitely not a big deal though. I'll reimage the board and do some testing here. Thanks for sharing the dependencies!

TheRemote avatar Mar 21 '23 22:03 TheRemote

No problem! I'm testing on Home Assistant OS myself and I still have some issues because I think it's not parsing some of the inputs correctly (other tools that do exist are using BusyBox and there's some incompatibilities with command line flags etc), so there's probably other modifications required to the script, but at least it output a score this time 🤷

landalex avatar Mar 21 '23 22:03 landalex

No worries at all. You actually have the hard part done here for sure. I'll definitely check to see if there's some output fixes and minor cleanup to be done too as well. Thanks again!

TheRemote avatar Mar 21 '23 22:03 TheRemote