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.

DM814x SD Card Benchmarks

Other Parts Discussed in Thread: DM385

Hi ,

    We try to test a class 4 sd card read/write benchmark by using dd command, but the performance is bad.

I reference this but result is quite different:

http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_04.01.00.07_Feature_Performance_Guide#Performance_and_Benchmarks_6

Is any driver or clock source need to modify ? Or is there any other suggest tool?

Expect more than 4MB r/w for class4, SD is 4bit mode, clk is 20Mhz

root@dm813x-evm:~# ./busybox dd count=20 bs=1M if=/dev/zero conv=fsync of=/media/mmcblk0p1/test.img
20+0 records in
20+0 records out

20971520 bytes (20.0MB) copied, 7.333820 seconds, 2.7MB/s

10485760 bytes (10.0MB) copied, 3.198495 seconds, 3.1MB/s
root@dm813x-evm:~# ./busybox dd count=10 bs=1M if=/dev/zero conv=fsync of=/media/mmcblk0p1/test.img
10+0 records in
10+0 records out

10485760 bytes (10.0MB) copied, 3.198495 seconds, 3.1MB/s

Regards,

Dan

  • Dan,

    Dan Chang said:
    We try to test a class 4 sd card

    The MMC/SD driver supports:

    MMC v4.0

    High Speed SD v1.1

    High Capacity SD v2.0

    Dan Chang said:

    This is very old PSP version. What is the SDK and PSP that you are using? The latest EZSDK is 5.05.00.02 and it come with PSP 04.04.00.01:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.01_Feature_Performance_Guide#MMC.2FSD_Driver

    And the latest PSP is 04.04.00.02:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.02_Feature_Performance_Guide#MMC.2FSD_Driver

    Dan Chang said:
    Is any driver or clock source need to modify ?

    The clock configuration that is used for the tests is:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.01_Feature_Performance_Guide#Default_Clock_Configuration

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_04.04.00.02_Feature_Performance_Guide#Default_Clock_Configuration

    The test setup:

    http://processors.wiki.ti.com/index.php/Sitara_PSP_Test_Setup#MMC.2FSD

    Dan Chang said:
    root@dm813x-evm

    Are you actually using DM385/DM813x/TI813x device?

    Regards,
    Pavel

  • Dan,

    Have a look also in the below e2e thread:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/246193.aspx

    Regards,
    Pavel

  • Hi Pavel,

        Yes, I use dm8134 for miracasst SDK called "rmd5_rdk_1.0.0_setuplinux".It is modify from ezsdk.

    I recheck sd clock is 25MHz not 20, CPU is 500Mhz.

    # cat osc0_clkin_ck/video0_dpll_clkin_ck/ video0_dpll_ck/sd_venc_ck/rate
    250000000

    It is strange that before I use the older busybox dd with "conv=fdatasync",

    performance is 2.5~3MB/s,

    After using busybox-1.19 dd with "conv=fsync", and regenerate rootfs

    its up to 6.5~7MB/s

    ./busybox dd count=20 bs=1M if=/dev/zero conv=fsync of=/media/mmcblk0p1/test.img
    20+0 records in
    20+0 records out
    20971520 bytes (20.0MB) copied, 2.974520 seconds, 6.7MB/s

    I am not sure if file system or older busybox cause this problem. Is there any possible reason?

    Besides, do you have suggested sd read performance utility?

    Thanks,

    Dan

  • Dan,

    Dan Chang said:

    I recheck sd clock is 25MHz not 20, CPU is 500Mhz.

    # cat osc0_clkin_ck/video0_dpll_clkin_ck/ video0_dpll_ck/sd_venc_ck/rate
    250000000

    This is the SD_VENC clock, not the MMC/SD clock.

    The MMC/SD functional clock is:

    ./osc0_clkin_ck/usb_dpll_clkin_ck/usb_dpll_ck/usb_dpll_clk2_ck/sysclk8_ck/mmchs2_fck/rate ==> 192000000

    The Cortex-A8 CPU clock is:

    ./osc0_clkin_ck/arm_dpll_clkin_ck/arm_dpll_ck/mpu_ck/rate ==> 600000000

    Dan Chang said:
    I am not sure if file system or older busybox cause this problem. Is there any possible reason?

    Make sure your filesystem is mounted as async (async is the default option for mount)

    Best regards,
    Pavel