Kieu Vu
Published © MIT

Testing Samsung KM5P8001DM-B424 UFS Memory

A hardware project to evaluate UFS 2.1 storage performance of Samsung KM5P8001DM-B424 uMCP memory on embedded computing platforms.

IntermediateProtip12 hours10
Testing Samsung KM5P8001DM-B424 UFS Memory

Things used in this project

Hardware components

KM5P8001DM-B424
×1
Embedded Development Board / SBC
×1
USB-UART Converter
×1

Software apps and online services

Linux
FIO

Hand tools and fabrication machines

Logic Analyzer

Story

Read more

Schematics

UFS 2.1 Storage Benchmark with KM5P8001DM-B424

Code

ufs_storage_benchmark.sh

SH
The benchmark script uses fio to evaluate sequential and random I/O performance of the UFS 2.1 storage integrated in KM5P8001DM-B424.
#!/bin/bash

# KM5P8001DM-B424 UFS 2.1 Storage Benchmark
# Embedded Linux Storage Performance Test Script

echo "======================================"
echo "KM5P8001DM-B424 UFS 2.1 Benchmark"
echo "======================================"

echo ""
echo "[1] Detecting storage devices..."
lsblk

echo ""
echo "[2] Checking UFS storage information..."
cat /sys/class/scsi_host/host*/proc_name 2>/dev/null || true

echo ""
echo "[3] Sequential Read Test"

fio --name=ufs_seq_read \
    --filename=/tmp/ufs_testfile \
    --size=1G \
    --rw=read \
    --bs=1M \
    --direct=1 \
    --numjobs=1 \
    --runtime=60 \
    --time_based


echo ""
echo "[4] Sequential Write Test"

fio --name=ufs_seq_write \
    --filename=/tmp/ufs_testfile \
    --size=1G \
    --rw=write \
    --bs=1M \
    --direct=1 \
    --numjobs=1 \
    --runtime=60 \
    --time_based


echo ""
echo "[5] Random Read Test"

fio --name=ufs_random_read \
    --filename=/tmp/ufs_testfile \
    --size=1G \
    --rw=randread \
    --bs=4k \
    --direct=1 \
    --numjobs=4 \
    --runtime=60 \
    --time_based


echo ""
echo "[6] Random Write Test"

fio --name=ufs_random_write \
    --filename=/tmp/ufs_testfile \
    --size=1G \
    --rw=randwrite \
    --bs=4k \
    --direct=1 \
    --numjobs=4 \
    --runtime=60 \
    --time_based


echo ""
echo "======================================"
echo "Benchmark Completed"
echo "======================================"

rm -f /tmp/ufs_testfile

Credits

Kieu Vu
10 projects • 0 followers
Electronics sourcing expert at lisleapex. Focused on component integrity, EOL solutions, and next-gen semiconductor trends.

Comments