1 1
Madozu

A20 SATA write speed improvement

Recommended Posts

I tested the recently added sunxi-dev patch to improve the SATA write speed. Here are the results:

 

Board: Cubietruck
OS: Ubuntu Bionic (18.04.2), Armbian 5.86
Kernel: 5.1.0 with and without RFC-drivers-ata-ahci_sunxi-Increased-SATA-AHCI-DMA-TX-RX-FIFOs.patch

SATA-device: SAMSUNG SSD 830 Series, 256GB

 

Measurement method: dd if=/dev/zero of=/tesfile bs=? count=? oflag=direct

bs: measured 4k, 64k and 1M block sizes
count: adjusted to ensure that data written is ~500MB

 

Measurements below are made with kernel 5.1.0 without (before) and with the mentioned patch:

dd bs  Before MB/s  After MB/s  Increase
4k            13.3        19.0       43%
64k           35.9        82.0      128%
1M            42.5       112.0      164%

As you can see, the SATA write speed improved, especially when using larger block sizes. Up to now, no negative side-effects encountered.

 

Share this post


Link to post
Share on other sites
7 hours ago, Sigge said:

Hi, could you indicate a step by step procedure for installing this kernel? I would love to try it!

Either grab the build script and build your own kernel package (https://github.com/armbian/build) or simply wait until the next version bump and do a standard apt upgrade to get the fresh packages.

Share this post


Link to post
Share on other sites

 

Samsung SSD 840 Pro 256 GB @ Cubietruck

iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2

Kernel 3.4.y
                                                               random   random
                  reclen    write  rewrite     read   reread     read    write
          102400       4    10714    15285    31921    32280    16328    14767
          102400      16    21757    25767    57812    58010    45695    25201
          102400     512    33403    32429   128245   116062   109591    33595
          102400    1024    34846    35240   129965   131121   129515    35227
          102400   16384    37895    37918   207564   204627   204340    38019

Kernel 4.19.y with SATA improvement patch

          102400       4    22876    32704    37686    39143    22571    30990
          102400      16    54254    69325    94749    97225    61354    68529
          102400     512   110670   113325   190346   163677   186012   112679
          102400    1024   113971   115928   206044   207406   184936   115069
          102400   16384   127084   127588   243400   253305   252148   127611

without

          102400       4    18053    22336    45249    46338    24860    22292
          102400      16    30692    32188   106052   106577    71526    32746
          102400     512    39632    39978   186433   185444   178097    39939
          102400    1024    39860    40163   189900   191076   188446    40098
          102400   16384    38875    41508   241939   244088   243405    41314

 

Share this post


Link to post
Share on other sites
4 hours ago, Igor said:

Samsung SSD 840 Pro 256 GB @ Cubietruck iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2

Thank you Igor, the report of Madozu was not promising, not enough numbers. Yours look nice, some day I my Lamobo R1 comes back to life  :thumbup:

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1