【X3m】emmc稳定性测试和性能测试

emmc_stability_test.sh

#!/bin/sh

echo "Emmc stability test start!"
mkdir -p ../output
loop_num=2000

for i in $(seq 1 $loop_num)
do
        echo "loop_test: ${i}"
    ../bin/iozone -e -I -az -n 16m -g 4g -q 16m -f ../output/iozone_data -Rb ../output/test_iozone_emmc_ext4_stability_${i}.xls
    if [ "$?" != "0" ];then
                echo "Test fail loop ${i} error!" >> ../output/emmc_stability.log
                exit 1
        else
                echo "Test loop ${i} success!" >> ../output/emmc_stability.log
        fi

emmc_performance_test.sh

#!/bin/sh

echo "Emmc performance test start!"
mkdir -p ../output
loop_num=2000

for i in $(seq 1 $loop_num)
do
        echo "loop_test: ${i}"
    ../bin/iozone -e -I -a -r 4K -r 16K -r 64K -r 256K -r 1M -r 4M -r 16M -s 16K -s 1M -s 16M -s 128M -s 1G -f ../output/iozone_data -Rb ../output/test_iozone_emmc_ext4_performance_${i}.xls
    if [ "$?" != "0" ];then
                echo "Test fail loop ${i} error!" >> ../output/emmc_performance.log
                exit 1
        else
                echo "Test loop ${i} success!" >> ../output/emmc_performance.log
        fi

你可能感兴趣的:(X3M,linux)