xerxes-nano-m2-storage-benchmark.sh

Xerxes Nano Carrier Board for Jetson Orin Nano Super and Turing RK1 Modules · File : xerxes-nano-m2-storage-benchmark.sh · Language : Bash · Use case : Tester les performances du stockage M.2 PCIe Gen 3 situé sous le module pour valider le débit.

Disk benchmark script using dd to measure read/write speeds of the Xerxes Nano's M.2 PCIe Gen 3 slot.

Hardware: Xerxes Nano with NVMe M.2 SSD installed under the Jetson module. Format and mount the disk (e.g., sudo mount /dev/nvme0n1 /mnt/nvme0). Execution: ./bench_m2.sh. Results depend on the SSD used but validate the PCIe 3.0 x1/x4 link depending on module configuration. Watch temperature during the test.

xerxes-nano-m2-storage-benchmark.sh

#!/bin/bash
# Benchmark rapide du stockage M.2 sur Xerxes Nano
# Assurez-vous que le SSD M.2 est monté sur /mnt/nvme0

MOUNT_POINT="/mnt/nvme0"
TEST_FILE="$MOUNT_POINT/testfile.bin"
SIZE_MB=1024

if [ ! -d "$MOUNT_POINT" ]; then
    echo "Point de montage $MOUNT_POINT introuvable. Montez le SSD M.2 d'abord."
    exit 1
fi

echo "Écriture de ${SIZE_MB} Mo sur $MOUNT_POINT..."
sudo dd if=/dev/zero of=$TEST_FILE bs=1M count=$SIZE_MB conv=fdatasync

echo "Lecture de ${SIZE_MB} Mo depuis $MOUNT_POINT..."
sudo dd if=$TEST_FILE of=/dev/null bs=1M

sudo rm $TEST_FILE
echo "Test terminé."

← Back to the board