This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6548: Testing emmc performance

Part Number: AM6548

Hi Ti,

From below link, https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Release_Specific_Performance_Guide.html#rt-kernel-performance-guide,

we can get the information about the emmc performance.

And we are trying to test writing 1MB file and get the performance on Linux RT SDK 07_01_00_18

As you can see below, the Max time and Min time have a big gap.

But in your result, it looks more stable.  If there is any setting need to configure?

Below is the sample code we use to test write 1MB file.

Thanks.

  • Hi Eric,

    I will take a look at this and get back in a day a two.

    Best Regards,
    Keerthy

  • Eric,

    Can you share the code as a text file? The above is any image.

    Best Regards,
    Keerthy

  • Hi ,

    Attached the file.

    Eric

    #include <stdlib.h>
    #include <time.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <string.h>
    #include <arpa/inet.h>
    #include <sys/time.h>
    
    #define SERV_PORT 5134
    
    
    int main( ){
    
        FILE *rfilp = NULL;
    	FILE *wfilp = NULL;
    	//char rfileDir[] = "/home/StdLogger2048.csv";
    	char wfileDir[] = "/home/wtest.txt";
    	char buffer[1024*1024];
    	int readCnt = 0;
    	int writeCnt = 0, maxcnt=0;
    	int i=0,cycle=10000, j=0;
    	struct timeval timer, timer1, timer2, timer3;
    	unsigned long tick = 0, tickMax = 0, tickMin = 0, tickAvg = 0, totaltick = 0;
    	int wfd = -1;
    	
    #if 0
    	memset(buffer, 0x5A, sizeof(buffer));
    
    	//srand((unsigned int)time(NULL));
    	//for(i=0;i<1024*1024;i++)
    	//{
    	//	buffer[i] = rand()%254 + 1;
    	//}
    #endif
    
    	//readCnt = fread(buffer, 1, sizeof(buffer), rfilp);
    	//printf("readCnt = %d\n",readCnt);
    
    	//gettimeofday(&timer2, NULL);
    	for(i=0;i<cycle;i++)
    	{
    #if 1
    		memset(buffer, 0, sizeof(buffer));
    
    		srand((unsigned int)time(NULL));
    		for(j=0;j<1024*1024;j++)
    		{
    			buffer[j] = rand()%254 + 1;
    		}
    #endif
    		gettimeofday(&timer, NULL);
    		
    		wfilp = fopen(wfileDir, "w+");
    		if(wfilp == NULL)
    		{
    			printf("open file failed!! \r\n");
    			break;
    		}
    		writeCnt = fwrite(buffer, 1, sizeof(buffer), wfilp);
    
    		fflush(wfilp);
    
    		wfd = fileno(wfilp);
            if(wfd != -1)
            {
                fsync(wfd);
            }
    		
    		fclose(wfilp);
    
    		gettimeofday(&timer1, NULL);
    		tick = ((timer1.tv_sec - timer.tv_sec) * 1000000) + (timer1.tv_usec - timer.tv_usec);
    		//tick = 1000 - (tick % 1000);
    		
    		if(tickMax == 0)
    			tickMax = tick;
    		
    		if(tickMin == 0)
    			tickMin = tick;
    
    		if(tick > tickMax)
    		{
    			tickMax = tick;
    			maxcnt = i;
    		}
    
    		if(tick < tickMin)
    			tickMin = tick;
    
    		totaltick = totaltick + tick;
    	}
    	//gettimeofday(&timer3, NULL);
    //	tickAvg = ((timer3.tv_sec - timer2.tv_sec) * 1000000) + (timer3.tv_usec - timer2.tv_usec);
    //	tickAvg = tickAvg/cycle;
    
    	tickAvg = totaltick/10000;
    
    	printf("tickMax(%d)=%d tickMin=%d tickAvg=%d\n",maxcnt,tickMax,tickMin,tickAvg);
    	printf("writeCnt = %d\n",writeCnt);
    
    
        return 0;
    }

  • Eric,

    From linux command prompt try the below commands:

    cd /opt/ltp
    ./runltp -f ddt/emmc_perf_ext4 -P am654x-evm

    Output: https://pastebin.ubuntu.com/p/P4wT5jrjWw/

    NOTE: The above test case took almost an hour.

    In the pastebin link search for iomode:write iomode:read

    Typically 42MBps for write, read 180 MBps

    Try and let me know.

    Best Regards,
    Keerthy


  • Hi

    I just looked into the result you provide and few questions want to check with you.

    1.What's the procedure of the test? something like "dd" or using fopen, fwrite as my test program?

    2.What's your cpu frequency? 800MHz, 1GHz or 1.1GHz?

    3.There are some test loops, all of them are with file size 100MB and srcfile 10MB, the difference is only buffer size. Correct?

    So, the test is to write srcfile(10MB) into file size(100MB)?

    |TRACE LOG|The application buffer size in bytes|102400|
    |TRACE LOG|file size in MB|100.00|
    |TRACE LOG|Iomode|write|
    |TRACE LOG|srcfile size in MB|10.00|

    4.I found almost the speed is about 38~42MB/s, but I still can see 18.35, 24.79 or 30.x MB/s. It looks like unstable. Isn't it?

    Eric

  • 2.What's your cpu frequency? 800MHz, 1GHz or 1.1GHz?

    800 MHz. This is the default frequency at which latest SDK boots.

    3.There are some test loops, all of them are with file size 100MB and srcfile 10MB, the difference is only buffer size. Correct?

    Yes. That is correct.

    4.I found almost the speed is about 38~42MB/s, but I still can see 18.35, 24.79 or 30.x MB/s. It looks like unstable. Isn't it?

    I checked with MMC expert and yes there are outliers like 18.35, 24.7 etc. That is expected. So we take 38-42MB as the average.


    1.What's the procedure of the test? something like "dd" or using fopen, fwrite as my test program?

    Definitely using dd. The test suite is pretty comprehensive. You can view the code: /opt/ltp/testcases/bin/ddt/blk/blk_device_filesystem_perf_test.sh

    Best Regards,
    Keerthy

  • Hi ,

    I tried to run the test case. But it seems failed.

    Could you please look into the log?


    root@am65xx-evm:/opt/ltp# ./runltp -f ddt/emmc_perf_ext4 -P am654x-evm
    INFO: creating /opt/ltp/results directory
    INFO: Filtering testscenarios based on am654x-evm capabilities
    awk: cmd. line:1: warning: regexp escape sequence `\&' is not a known regexp operator
    Checking for required user/group ids

    'nobody' user id and group found.
    'bin' user id and group found.
    'daemon' user id and group found.
    Users group found.
    Sys group found.
    Required users/groups exist.
    If some fields are empty or look unusual you may have an old version.
    Compare to the current minimal requirements in Documentation/Changes.

    /etc/os-release
    ID=arago
    NAME="Arago"
    VERSION="2020.09"
    VERSION_ID=2020.09
    PRETTY_NAME="Arago 2020.09"

    uname:
    Linux am65xx-evm 5.4.74-rt42-g9002faf1c0 #1 SMP PREEMPT_RT Thu Nov 26 04:33:56 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

    /proc/cmdline
    console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 isolcpus=1-3 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.rootfs),128k(ospi.phypattern) root=PARTUUID=b46044b4-02 rw rootfstype=ext4 rootwait

    Gnu C gcc (GCC) 9.2.1 20191025
    Clang
    Gnu make 4.3
    util-linux 2.35.1
    mount linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, debug)
    modutils 26
    e2fsprogs 1.45.4
    Linux C Library > libc.2.30
    Dynamic linker (ldd) 2.30
    Linux C++ Library 6..
    Procps 3.3.16
    iproute2 iproute2-ss200127
    iputils 'V'
    ethtool 5.4
    Kbd 2.2.0
    Sh-utils 8.31
    Modules Loaded xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables br_netfilter bridge stp llc overlay xfrm_user xfrm_algo sha512_generic sha512_arm64 md5 des_generic libdes cbc xhci_plat_hcd xhci_hcd usbcore rpmsg_char ti_am335x_adc kfifo_buf dwc3 udc_core usb_common crct10dif_ce icssg_prueth icss_iep pru_rproc irq_pruss_intc gpio_decoder input_polldev ti_k3_r5_remoteproc virtio_rpmsg_bus m_can_platform m_can can_dev ti_am335x_tscadc pruss ti_cal phy_omap_usb2 dwc3_keystone ov5640 v4l2_fwnode pvrsrvkm sch_fq_codel jailhouse cryptodev ipv6

    free reports:
    total used free shared buff/cache available
    Mem: 954928 139436 583196 9460 232296 790444
    Swap: 0 0 0

    cpuinfo:
    Architecture: aarch64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 4
    On-line CPU(s) list: 0-3
    Thread(s) per core: 1
    Core(s) per socket: 2
    Socket(s): 2
    Vendor ID: ARM
    Model: 4
    Model name: Cortex-A53
    Stepping: r0p4
    BogoMIPS: 400.00
    L1d cache: 128 KiB
    L1i cache: 128 KiB
    L2 cache: 1 MiB
    Vulnerability Itlb multihit: Not affected
    Vulnerability L1tf: Not affected
    Vulnerability Mds: Not affected
    Vulnerability Meltdown: Not affected
    Vulnerability Spec store bypass: Not affected
    Vulnerability Spectre v1: Mitigation; __user pointer sanitization
    Vulnerability Spectre v2: Not affected
    Vulnerability Srbds: Not affected
    Vulnerability Tsx async abort: Not affected
    Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

    AppArmor disabled

    SELinux mode: unknown
    no big block device was specified on commandline.
    Tests which require a big block device are disabled.
    You can specify it with option -z
    COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 1507 -n 1507 -p -f /tmp/ltp-NmLwg4xps9/alltests -l /tmp/tmp.Uz0KSED8OR -C /opt/ltp/output/LTP_RUN_ON-tmp.Uz0KSED8OR.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.Uz0KSED8OR.tconf
    LOG File: /tmp/tmp.Uz0KSED8OR
    FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.Uz0KSED8OR.failed
    TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.Uz0KSED8OR.tconf
    Running tests.......
    <<<test_start>>>
    tag=EMMC_L_PERF_EXT4 stime=1606364023
    cmdline[ 357.648564] 000: LTP: starting EMMC_L_PERF_EXT4 (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -B "102400 262144 524288 1048576 5242880" -d "emmc")
    ="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -B "102400 262144 524288 1048576 5242880" -d "emmc""
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 358.119996] 000: LTP: starting EMMC_L_PERF_EXT4_SYNC (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -o 'sync' -B "102400 262144 524288 1048576 5242880" -d "emmc")
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=17 cstime=24
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_L_PERF_EXT4_SYNC stime=1606364023
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -o 'sync' -B "102400 262144 524288 1048576 5242880" -d "emmc""
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 358.565715] 000: LTP: starting EMMC_M_PERF_EXT4_SYNC (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -o 'sync' -B "262144" -d "emmc")
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=1 termination_type=exited termination_id=1 corefile=no
    cutime=22 cstime=19
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_M_PERF_EXT4_SYNC stime=1606364024
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 100 -o 'sync' -B "262144" -d "emmc""
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 359.010552] 000: LTP: starting EMMC_S_PERF_EXT4_FILESIZE_2M (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 2 -B "262144" -d "emmc" -c 1)
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=18 cstime=23
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_S_PERF_EXT4_FILESIZE_2M stime=1606364024
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 2 -B "262144" -d "emmc" -c 1"
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 359.456804] 000: LTP: starting EMMC_S_PERF_EXT4_FILESIZE_4M (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 4 -B "262144" -d "emmc" -c 1)
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=18 cstime=22
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_S_PERF_EXT4_FILESIZE_4M stime=1606364024
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 4 -B "262144" -d "emmc" -c 1"
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 359.902417] 000: LTP: starting EMMC_S_PERF_EXT4_FILESIZE_8M (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 8 -B "262144" -d "emmc" -c 1)
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=1 termination_type=exited termination_id=1 corefile=no
    cutime=19 cstime=22
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_S_PERF_EXT4_FILESIZE_8M stime=1606364025
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 8 -B "262144" -d "emmc" -c 1"
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 360.347120] 000: LTP: starting EMMC_S_PERF_EXT4_FILESIZE_10M (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 10 -B "262144" -d "emmc" -c 1)
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=22 cstime=20
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_S_PERF_EXT4_FILESIZE_10M stime=1606364025
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 10 -B "262144" -d "emmc" -c 1"
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 360.802655] 000: LTP: starting EMMC_M_PERF_EXT4_VARIOUS_BUFSIZE (source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 10 -B "4096 8192 16384 32768 65536" -d "emmc")
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=1 termination_type=exited termination_id=1 corefile=no
    cutime=19 cstime=21
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_M_PERF_EXT4_VARIOUS_BUFSIZE stime=1606364026
    cmdline="source "common.sh"; install_modules.sh "emmc"; blk_device_filesystem_perf_test.sh -f ext4 -s 10 -B "4096 8192 16384 32768 65536" -d "emmc""
    contacts=""
    analysis=exit
    <<<test_output>>>
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR[ 361.249998] 000: LTP: starting EMMC_S_PERF_EXT4_FIO_QUICK (source 'common.sh'; install_modules.sh "emmc"; do_cmd 'blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m" -d "emmc" ')
    |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=21 cstime=20
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_S_PERF_EXT4_FIO_QUICK stime=1606364026
    cmdline="source 'common.sh'; install_modules.sh "emmc"; do_cmd 'blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m" -d "emmc" '"
    contacts=""
    analysis=exit
    <<<test_output>>>
    |TRACE LOG|Inside do_cmd:CMD=blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m" -d "emmc" |
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR|Line: File:FATAL: error getting partition with biggest size: |E[ 361.703365] 000: LTP: starting EMMC_L_PERF_EXT4_FIO_1G (source 'common.sh'; install_modules.sh "emmc"; do_cmd 'blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m 1m 256k 4k" -d "emmc" ')
    RROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    |ERROR|Line: File:blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m" -d "emmc" failed. Return code is 1 - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=1 termination_type=exited termination_id=1 corefile=no
    cutime=21 cstime=20
    <<<test_end>>>
    <<<test_start>>>
    tag=EMMC_L_PERF_EXT4_FIO_1G stime=1606364027
    cmdline="source 'common.sh'; install_modules.sh "emmc"; do_cmd 'blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m 1m 256k 4k" -d "emmc" '"
    contacts=""
    analysis=exit
    <<<test_output>>>
    incrementing stop
    |TRACE LOG|Inside do_cmd:CMD=blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m 1m 256k 4k" -d "emmc" |
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    ls -al /dev/disk/by-path
    total 0
    drwxr-xr-x 2 root root 160 Nov 26 04:08 .
    drwxr-xr-x 7 root root 140 Nov 26 04:08 ..
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-S0J56X_0x125368ab -> ../../mmcblk0
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part1 -> ../../mmcblk0p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-S0J56X_0x125368ab-part2 -> ../../mmcblk0p2
    lrwxrwxrwx 1 root root 13 Nov 26 04:07 mmc-SC32G_0x93f60530 -> ../../mmcblk1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part1 -> ../../mmcblk1p1
    lrwxrwxrwx 1 root root 15 Nov 26 04:08 mmc-SC32G_0x93f60530-part2 -> ../../mmcblk1p2
    |ERROR|Line: File:FATAL: error while getting device node: |ERROR|Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    |ERROR|Line: File:blk_device_filesystem_perf_test.sh -p "fio" -f "ext4" -s 1g -B "4m 1m 256k 4k" -d "emmc" failed. Return code is 1 - |
    <<<execution_status>>>
    initiation_status="ok"
    duration=0 termination_type=exited termination_id=1 corefile=no
    cutime=22 cstime=19
    <<<test_end>>>
    INFO: ltp-pan reported all tests PASS
    LTP Version: 20200120

    ###############################################################"

    Done executing testcases."
    LTP Version: 20200120
    Result log is in the /tmp/tmp.Uz0KSED8OR "
    ###############################################################"

    Test Start Time: Thu Nov 26 04:13:43 2020
    -----------------------------------------
    Testcase Result Exit Value
    -------- ------ ----------
    EMMC_L_PERF_EXT4 FAIL 1
    EMMC_L_PERF_EXT4_SYNC FAIL 1
    EMMC_M_PERF_EXT4_SYNC FAIL 1
    EMMC_S_PERF_EXT4_FILESIZE_2M FAIL 1
    EMMC_S_PERF_EXT4_FILESIZE_4M FAIL 1
    EMMC_S_PERF_EXT4_FILESIZE_8M FAIL 1
    EMMC_S_PERF_EXT4_FILESIZE_10M FAIL 1
    EMMC_M_PERF_EXT4_VARIOUS_BUFSIZE FAIL 1
    EMMC_S_PERF_EXT4_FIO_QUICK FAIL 1
    EMMC_L_PERF_EXT4_FIO_1G FAIL 1

    -----------------------------------------------
    Total Tests: 10
    Total Skipped Tests: 0
    Total Failures: 10
    Kernel Version: 5.4.74-rt42-g9002faf1c0
    Machine Architecture: aarch64
    Hostname: am65xx-evm

    Thanks.

    Eric

  • |Line: File:FATAL: error getting partition with biggest size: |ERROR|Line: File:FATAL: Could not find the partition to test! Maybe all the existing partitions are either boot (contains file u-boot*) or rootfs partition (contains etc or dev directory). Please check the contents of the partitions; if needed, please reformat the device to leave at least one partition for testing! - | - | - |
    <<<execution_status>>>

    Do you have eMMC partitioned? It seems its not able to find any partitions for testing.

    - Keerthy

  • Hi Keerthy,

    I looked into the pdf file and found the emmc on EVM can support up to HS400 mode.

    And in k3-am65-mail.dtsi, the default setting for emmc is "mmc-hs200-1_8". It looks like am654 evm can only support HS200.

    After I look into the emmc spec, the speed can up to 30MB/s at HS200 mode, 

    But according to your avg test result, it can up to 38-42MB/s.

    Could you confirm about this? Thanks.

    Eric

  • Hi Eric,

    Those were the numbers from our standard test suite. I am not sure if they are
    the conservative numbers from Micron but even our development team got
    the same numbers. I confirm. If no other questions please click on verify answer.

    Best Regards,
    Keerthy