nvme_storage_benchmark.sh

Placa base Xerxes Nano para módulos Jetson Orin Nano Super y Turing RK1 · Archivo : nvme_storage_benchmark.sh · Lenguaje : Bash · Uso : Benchmark des performances du stockage NVMe connecté via le port M.2 PCIe Gen 3.

Script Bash que utiliza fio para medir el rendimiento de lectura/escritura del SSD NVMe insertado en la ranura M.2 de la placa.

Hardware: SSD NVMe M.2 instalado en el puerto M.2 PCIe Gen 3 de la Xerxes Nano. Software: Linux (Ubuntu/JetPack), herramienta fio. Ejecución: sudo chmod +x benchmark.sh && sudo ./benchmark.sh. Advertencia: Las pruebas sobrescriben los datos en el disco objetivo.

nvme_storage_benchmark.sh

#!/bin/bash
# Script de benchmark pour le stockage NVMe sur Xerxes Nano
# Nécessite l'installation de 'fio' (sudo apt install fio)

TARGET_DEVICE="/dev/nvme0n1" # À adapter selon 'lsblk'
TEST_FILE="testfile"
SIZE="1G"

if [ ! -b "$TARGET_DEVICE" ]; then
    echo "Erreur : Périphérique $TARGET_DEVICE non trouvé. Utilisez 'lsblk' pour identifier le disque."
    exit 1
fi

echo "Démarrage du benchmark de lecture séquentielle..."
fio --name=seqread --rw=read --bs=1M --size=$SIZE --runtime=30 --time_based --direct=1 --filename=$TARGET_DEVICE

echo "Démarrage du benchmark d'écriture séquentielle..."
fio --name=seqwrite --rw=write --bs=1M --size=$SIZE --runtime=30 --time_based --direct=1 --filename=$TARGET_DEVICE

echo "Démarrage du benchmark aléatoire 4K..."
fio --name=rand4k --rw=randrw --bs=4k --size=$SIZE --runtime=30 --time_based --direct=1 --filename=$TARGET_DEVICE

echo "Benchmark terminé."

← Volver a la ficha