Page 1 of 1

R5C network performance ~10MB/sec

Posted: Fri Oct 11, 2024 5:15 pm
by pzi@pzi.net
When I test the R5C local disk write speed I see ~50MB/s bandwidth but when I try to rsync/scp to the same disk I see ~10MB/s. Does anybody have a remedy? The network speed on 1Gbit/s Ethernet should be above 100MB/s and this is the speed I see with other devices on my network. I will describe the test first and then the details of the environment and disk setup:

1. Tests:

I have two V30 or better SD cards mounted with ext4 file systems on /share and /share1. First test the speed of write with dd:

Code: Select all

root@FriendlyWrt:/share# uname -a
Linux FriendlyWrt 6.1.57 #1 SMP Mon Aug 19 19:56:08 CST 2024 aarch64 GNU/Linux

root@FriendlyWrt:~# cd /share

root@FriendlyWrt:/share# ls
lost+found
root@FriendlyWrt:/share# time dd if=/dev/random of=test1 bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 34.4614 s, 30.4 MB/s

real    0m34.466s
user    0m0.021s
sys     0m10.723s


Now I copy the generated file to the other SD card mounted on /share1:

Code: Select all

root@FriendlyWrt:/share# rsync -avx --progress test1 /share1
sending incremental file list
test1
  1,048,576,000 100%   78.61MB/s    0:00:12 (xfr#1, to-chk=0/1)

sent 1,048,832,094 bytes  received 35 bytes  48,782,889.72 bytes/sec
total size is 1,048,576,000  speedup is 1.00

When trying to rsync from locally Ethernet connected PC I see ~10MB/sec speed:

Code: Select all

pzi@pzi-s3:/cygdrive/c/users/pzi/downloads$ rsync -avx --progress ubuntu-24.04-live-server-amd64.iso root@npi:/share
Warning: Permanently added 'npi' (ED25519) to the list of known hosts.
sending incremental file list
ubuntu-24.04-live-server-amd64.iso
    123,633,664   4%   11.28MB/s    0:03:47
rsync error: unexplained error (code 255) at rsync.c(713) [sender=3.3.0]

2. Configuration - the SD filesystems and mounts configuration:

Code: Select all

opkg update
opkg install block-mount kmod-fs-ext4 e2fsprogs parted kmod-usb-storage
opkg install mount-utils usbutils kmod-usb-storage-uas
lsblk
parted -s /dev/mmcblk0 -- print
parted -s /dev/mmcblk0 -- mklabel gpt
parted -s /dev/mmcblk0 -- print
parted -s /dev/mmcblk0 -- mkpart primary 0% 100%
parted -s /dev/mmcblk0 -- print
lsblk
mkfs.ext4 /dev/mmcblk0p1

uci -q delete fstab.sd
uci set fstab.sd=mount
uci set fstab.sd.device=/dev/mmcblk0p1
uci set fstab.sd.target=/share
uci set fstab.sd.enabled=1
uci changes
uci commit fstab
uci show fstab

Re: R5C network performance ~10MB/sec

Posted: Wed Feb 12, 2025 2:06 am
by lorde
I have this error too, did you fix it?