nvme-sysbench-storage-perf-4.ino
Bash script using sysbench to measure sequential and random throughput on the M-Key NVMe storage.
Prerequisites: Ubuntu 24.04 installed on the M.2 M-Key NVMe slot. Installation: sudo apt install sysbench smartmontools. The script checks disk temperature via smartmontools before running sequential read and 4K random write tests on a 5GB file. Ensure the target disk (/dev/nvme0n1) is correct in the DISK_PATH variable to avoid system data loss. Execution: chmod +x script.sh && ./script.sh.
nvme-sysbench-storage-perf-4.ino
#!/bin/bash
# Benchmark rapide du stockage NVMe sur BIWCL-PAT (Ubuntu 24.04)
# Nécessite : sudo apt install sysbench smartmontools
DISK_PATH="/dev/nvme0n1"
echo "1. Vérification de la température du SSD..."
sudo smartctl -A $DISK_PATH | grep -i "temperature"
echo "\n2. Test de lecture séquentielle (4 threads)..."
sysbench fileio --file-test-mode=seqrd --threads=4 --file-total-size=5G run
echo "\n3. Test d'écriture aléatoire (4 threads, 4k)...
sysbench fileio --file-test-mode=rndwr --threads=4 --file-total-size=5G --file-block-size=4k run
echo "\n4. Nettoyage des fichiers de test..."
sysbench fileio cleanup