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
Done:
root@pi:~/tmp# uname -a
Linux pi 4.19.84-sunxi #19.11.3 SMP Mon Nov 18 18:39:42 CET 2019 armv7l GNU/Linux
root@pi:~/tmp# iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
Iozone: Performance Test of File I/O
Version $Revision: 3.429 $
Compiled for 32 bit mode.
Build: linux
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhi