high-speed-storage-benchmark.sh

AAEON PICO-PTH4: Placa Pico-ITX con SoC Intel Panther Lake · Archivo : high-speed-storage-benchmark.sh · Lenguaje : Bash · Uso : Benchmark de performance du stockage NVMe PCIe Gen5 x4

Script Bash que utiliza fio para medir el rendimiento secuencial y los IOPS aleatorios en el almacenamiento NVMe PCIe Gen5.

Instale 'fio'. Asegúrese de que la SSD NVMe sea detectada (lsblk). La ranura M.2 es PCIe Gen5 x4, ofreciendo velocidades teóricas superiores a 10 GB/s. Tenga cuidado con los datos en el dispositivo.

high-speed-storage-benchmark.sh

#!/bin/bash
# Benchmark de stockage NVMe sur PICO-PTH4
# Le slot M.2 2280 M-Key supporte PCIe Gen5 x4.
# Nécessite 'fio' installé.

DEVICE="/dev/nvme0n1" # Vérifier avec lsblk

if [ ! -e "$DEVICE" ]; then
    echo "Erreur: Device $DEVICE introuvable. Vérifiez lsblk."
    exit 1
fi

echo "Démarrage du benchmark fio sur $DEVICE..."

# Test d'écriture séquentielle (1MB blocks)
fio --name=seqwrite --rw=write --bs=1m --size=1G --numjobs=1 --iodepth=32 --runtime=60 --time_based --direct=1 --ioengine=libaio --filename=$DEVICE --group_reporting

# Test de lecture séquentielle
fio --name=seqread --rw=read --bs=1m --size=1G --numjobs=1 --iodepth=32 --runtime=60 --time_based --direct=1 --ioengine=libaio --filename=$DEVICE --group_reporting

# Test d'écriture aléatoire 4K (IOPS)
fio --name=randwrite --rw=randwrite --bs=4k --size=1G --numjobs=4 --iodepth=64 --runtime=60 --time_based --direct=1 --ioengine=libaio --filename=$DEVICE --group_reporting

echo "Benchmark terminé."

← Volver a la ficha