SD-card UHS mode test

Post Reply
User avatar
odroid
Site Admin
Posts: 39555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2683 times
Been thanked: 1482 times
Contact:

SD-card UHS mode test

Post by odroid »

Just a record.
~65MB/sec with a SDR104 capable card seems to be acceptable.

Code: Select all

/* Samsung PRO Plus 32GB - SDR104 */ 
                                                     random   random
    kB  reclen   write   rewrite     read   reread     read    write
102400       4     2883     3716    12113    12098    12091      894
102400      16     9859    10572    30478    30506    30320     7273
102400     512    54893    55461    59892    59626    60255    56433
102400    1024    57205    58042    61404    61672    61500    57904
102400   16384    60413    61197    65869    66360    66078    60919

/* Samsung EVO 64GB - DDR50 */
                                                     random   random
    kB  reclen    write  rewrite     read   reread     read    write
102400       4     1887     2837     7929     7879     7960     3469
102400      16     9487    10851    15118    15012    14994    11382
102400     512    17273    17253    21841    21875    21814    15369
102400    1024    16002    17415    22266    22283    22292    20074
102400   16384    17346    18705    23127    23153    23154    19332

tkaiser
Posts: 773
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 2 times
Been thanked: 25 times
Contact:

Re: SD-card UHS mode test

Post by tkaiser »

Hmm... how does the output of the following look like when the Samsung Pro Plus is in use?

Code: Select all

dmesg | grep mmc0
I get not more than 23MB/s regardless which card I use (and those cards show 80MB/s sequential read in my MacBook and other boards)

User avatar
odroid
Site Admin
Posts: 39555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2683 times
Been thanked: 1482 times
Contact:

Re: SD-card UHS mode test

Post by odroid »

In fact, the UHS test was done several weeks ago.
So I have to check which kernel version we tested tomorrow and run it with the latest Kernel again.

BTW, do you have a Red EVO+? or Orange EVO?

tkaiser
Posts: 773
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 2 times
Been thanked: 25 times
Contact:

Re: SD-card UHS mode test

Post by tkaiser »

odroid wrote:do you have a Red EVO+? or Orange EVO?
For tests currently only a red 128GB EVO+ (all normal/orange EVO are in productive use). But I only tested on N1 with SanDisk Ultra A1, Extreme A1, Extreme Plus and a Samsung Pro so far. Looking forward to your findings, maybe it's something trivial as a simple DT node mofification needed :)

Off-topic: but now testing with a 16GB FORESEE eMMC ;)

Compared to your orange Samsung eMMC -- all sizes as tested on N1 here https://pastebin.com/raw/ePUCXyg6 -- it's pretty slow especially with random IO, small blocksizes and writes in general:

Code: Select all

                                                              random    random
              kB  reclen    write  rewrite    read    reread    read     write
          102400       1      885      914     3792     2770     2216      678
          102400       4     3511     3077    19816    11235    11928     2498
          102400      16    15043    10338    51040    68678    48572     6889
          102400     512     9629     9660    82296   131494   128654    10864
          102400    1024    10713    10846    87849   133272   137032    10227
          102400   16384    10219    10425   137164   136923   137970     9992

User avatar
odroid
Site Admin
Posts: 39555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2683 times
Been thanked: 1482 times
Contact:

Re: SD-card UHS mode test

Post by odroid »

Ahhh, the UHS patch was not included in the current kernel. Sorry for the confusion caused.
We will push the patch within a couple of days.

User avatar
odroid
Site Admin
Posts: 39555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2683 times
Been thanked: 1482 times
Contact:

Re: SD-card UHS mode test

Post by odroid »

Update the kernel with "dist-upgrade".
Kernel 4.4.112-7 release included the UHS patch as well as some other nice things.
https://github.com/hardkernel/linux/com ... idn1-4.4.y

tkaiser
Posts: 773
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 2 times
Been thanked: 25 times
Contact:

Re: SD-card UHS mode test

Post by tkaiser »

odroid wrote:Update the kernel with "dist-upgrade".
Yes, that did the trick, now UHS seems to work:

Code: Select all

[    3.852205] mmc0: new ultra high speed SDR104 SDXC card at address 0001
Now also some interrupt numbers changed (but trying to rely on numbers is stupid anyway if we keep in mind that we want to switch to mainline kernel also and there numbers are different compared to BSP kernel) and it might be a good idea to change your repo definition slightly since otherwise the forum will be flooded soon by users complaining about harmless warnings being an error:

Code: Select all

root@odroid:~# cat /etc/apt/sources.list.d/odroid.list 
deb [arch=arm64] http://deb.odroid.in/rk3399 stretch main

tkaiser
Posts: 773
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 2 times
Been thanked: 25 times
Contact:

Re: SD-card UHS mode test

Post by tkaiser »

I tested now with 7 different SD cards, 6 of them able to make use of SDR104: https://forum.armbian.com/topic/954-sd- ... ment=49811

Interesting observations: Sequential speed on N1 seems now to be bottlenecked at around 68MB/s and interface mode also influences random IO performance with small block sizes (though the larger the more).

mdrjr
Site Admin
Posts: 11817
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 51 times
Contact:

Re: SD-card UHS mode test

Post by mdrjr »

tkaiser wrote:
odroid wrote:Update the kernel with "dist-upgrade".
Yes, that did the trick, now UHS seems to work:

Code: Select all

[    3.852205] mmc0: new ultra high speed SDR104 SDXC card at address 0001
Now also some interrupt numbers changed (but trying to rely on numbers is stupid anyway if we keep in mind that we want to switch to mainline kernel also and there numbers are different compared to BSP kernel) and it might be a good idea to change your repo definition slightly since otherwise the forum will be flooded soon by users complaining about harmless warnings being an error:

Code: Select all

root@odroid:~# cat /etc/apt/sources.list.d/odroid.list 
deb [arch=arm64] http://deb.odroid.in/rk3399 stretch main

Thanks for the tip, will do :)

mlinuxguy
Posts: 842
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO
Has thanked: 0
Been thanked: 0
Contact:

Re: SD-card UHS mode test

Post by mlinuxguy »

Just for grins testing iozone under Ubuntu 18.04 with my sd card: SanDisk Extreme Plus 32gb UHS-1
Checking dmesg

Code: Select all

# dmesg | grep mmc0
[    3.187418] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.316876] mmc_host mmc0: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
[    3.579099] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[    3.579363] mmcblk0: mmc0:aaaa SP32G 29.7 GiB
Running 64-bit iozone built on Ubuntu 18.04
iozone -e -I -a -s 100M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2

Code: Select all

              kB  reclen    write  rewrite    read    reread    read     write     
          102400       4     3102     3071    14018    14005    13028     5201
          102400     512    52189    52395    62503    62189    62472    46969
          102400   16384    61585    59612    67685    67841    67769    61068

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest