![]() |
Rock64 4GB poor USB3 HDD performance - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Rock64 4GB poor USB3 HDD performance (/showthread.php?tid=5948) |
Rock64 4GB poor USB3 HDD performance - KernelPanic - 04-08-2018 I've received my Rock64 4GB a few weeks back but I'm having some trouble getting the external hard drive to perform as it should. I really hope anyone here has some idea's on how to get performance up to spec because I'm about to pull my hair out with this issue. The main purpose of the Rock64 was a replacement for my RasbPI3 as a NAS. Since the Rock64 has Gigabit ethernet and USB3 it seemed like a good fit but so far it's been dissapointing. (It's rock stable though ![]() The drive I'm a Seagate STEA4000400 USB3 (powered by wall adapter) which performs great on my Windows rig. Transferring files from the same server as I'm using to test with the Rock64 gives me a stable 110MB/s up/down. I'm currently running bionic-minimal-rock64-0.6.31-209-arm64, but I've also tried xenial-minimal-rock64-0.5.15-136-arm64 (the current stable release) and but had similar results. Right now I'm only get around 20MB/s write and about 40MB/s read on the drive when using RSYNC or SAMBA, which seems way too low. I've tried Rsync (SSH), then after reading SSH might be the culprit for poor speed changed to NFS, then when this didn't help I tried the Rsync protocol (no notable change in performance). Then said screw it and tried transferring files via samba, same crap performance. I just tried to do a local rysnc moving files around on the drive, around 18MB/s. At first the drive was formatted as EXT4, I've formatted it to NTFS now and still get the same performance. (I didn't expect any improvement, but this gave me the change to test the drive on my windows machine, which doesn't have the problem). Here's some more debugging I've tried to do to narrow down the cause.. (all done with governor @ performance on 4.4.120-rockchip-ayufan-209) Iperf with Rock64 as client: Code: sudo iperf3 -c 192.168.2.10 Rock64 as server: Code: sudo iperf3 -s As client is a bit slower, but acceptable (if anyone knows why I'd gladly hear it, firewall is disabled) iozone test: Code: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Test with DD: ![]() Code: /mnt/sg1/test$ dd if=/dev/zero of=./largefile bs=1M count=1024 Cleared cache with Code: sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" Then tested read, seems fine: Code: /mnt/sg1/test$ dd if=./largefile of=/dev/null bs=4k This is how the drive is mounted in fstab: (ext4 I had some bad perf) Code: /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN0B7VM-part1 /mnt/sg1 ntfs-3g rw, big_writes, defaults,nofail 0 0 Hope someone one of the smart people on here can help me figure this one out. Thanks in advance! RE: Rock64 4GB poor USB3 HDD performance - Luke - 04-08-2018 Hi, could you please download OMV (old, stable) set it up and let us know if you still experience the slow performance? Thanks. RE: Rock64 4GB poor USB3 HDD performance - KernelPanic - 04-09-2018 I've tried the image you provided but am getting similar results, still getting below 20MB/s when uploading files to the Rock64 ![]() RE: Rock64 4GB poor USB3 HDD performance - KernelPanic - 04-09-2018 Tested with a different USB3 device (Sandisk USB stick) which also managed reads above 100MB/s on my windows machine. Same bad performance on the Rock64 transferring files to my desktop via samba. I've noticed that when I try download the file a second time speedgoes up too 100MB/s (which matches the iperf3 results), but this is probably because linux cached the file? RE: Rock64 4GB poor USB3 HDD performance - rontant - 04-09-2018 Through Samba, I got on average 70MB/s when copying from Win 10 to Rock64 with conventional HDD. Try putting in "noatime" option in your /etc/fstab. With Linux, if you can, try ext4 format instead of ntfs. Here is my fstab: Code: root@rock64:~# cat /etc/fstab By the way, I am using ayufan's Bionic Code: root@rock64:~# uname -a RE: Rock64 4GB poor USB3 HDD performance - thewonderer - 04-10-2018 I have the same problem with mine. I did read that SAMBA can be the issue. Plenty of articles on the NET to try and assist, but still stuck around 40MB/s for my HDD. I think people have said FTP is very quick, so will probably test FTP tonight to see if that's the case because running USB benchmarks on my rock64 show the speed maxes out. The whole reason for me buying the rock64 was to try and get better copy speed across my LAN compared to my banana pi ultra m2. Will try Bionic soon. RE: Rock64 4GB poor USB3 HDD performance - rontant - 04-10-2018 (04-10-2018, 07:16 PM)thewonderer Wrote: I have the same problem with mine. I did read that SAMBA can be the issue. Plenty of articles on the NET to try and assist, but still stuck around 40MB/s for my HDD. I think people have said FTP is very quick, so will probably test FTP tonight to see if that's the case because running USB benchmarks on my rock64 show the speed maxes out. Nah... Samba is fine. You don't have to migrate to Bionic. Just try putting "noatime" option in your fstab and use EXT4 format instead. If you still don't get at least 70MB/s, check your Samba config file (/etc/samba/smb.conf). RE: Rock64 4GB poor USB3 HDD performance - KernelPanic - 04-11-2018 (04-10-2018, 07:47 PM)rontant Wrote:(04-10-2018, 07:16 PM)thewonderer Wrote: I have the same problem with mine. I did read that SAMBA can be the issue. Plenty of articles on the NET to try and assist, but still stuck around 40MB/s for my HDD. I think people have said FTP is very quick, so will probably test FTP tonight to see if that's the case because running USB benchmarks on my rock64 show the speed maxes out. Sadly reformatting to EXT4 and adding noatime didn't solve my issue, I was still getting poor performance. I've done some reading and noatime and it seem it would help on writes, but not much on reads (where I also have problems). I did notice though that I was probably doing something probably pretty stupid... ![]() I was under the impression that it was possible to dualboot with SCard / eMMC. All these test I've been doing was with the latest ayufan bionic setup installed on the eMMC. To test If I was having these problems with other images I installed them on the SDCard and put on the jumper, but at some point I noticed that my kernel wasn't changing along with the images. Also uninstalling the newest kernel and reinstalling the older kernels gave me the newest one with uname -a (even though in the /boot/ directory I had the older kernel files). As you can see I'm still a but of a noob with linux ![]() So I've taken out the eMMC, reflashed the OMV version Luke suggested and things seem a lot better now. Here's some testing I've done so far Write: Code: root@rock64:/srv/dev-disk-by-id-ata-ST4000DM004-2CV104_ZFN0B7VM-part1/test# sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" Read: Code: root@rock64:/srv/dev-disk-by-id-ata-ST4000DM004-2CV104_ZFN0B7VM-part1/test# sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" That's more like it! Code: root@rock64:/srv/dev-disk-by-id-ata-ST4000DM004-2CV104_ZFN0B7VM-part1/test# iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Write seem a bit low, anything I'm doing wrong with the parameters im feeding iozone? Tested with Samba a bit and downloading from Rock64 hovers around 80 - 100MB/s, uploading seems to be about the same. A lot better than my earlier results! In case it my help someone, this is how OMV mounted the drive: Code: LABEL=boot /boot/efi vfat defaults 0 0 and finally Code: root@rock64:/srv/dev-disk-by-id-ata-ST4000DM004-2CV104_ZFN0B7VM-part1/test# uname -a Thanks everyone for helping, I'll probably stick with OMV since I really like the webUI |