ssh slow transfers

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Fri Jul 31, 2020 4:47    Post subject: ssh slow transfers Reply with quote
on my x86 system with an ssd that gets over 20mb/s on 4k perf and 200mb/s+ on seq, gets 2.33mb/s write speed when copying my adblock lists to /jffs (about 48mb size). this wasnt always the case, several builds ago on the same system, transfers were nearly instant. resetting to defaults does nothing.

connected to it by ethernet cat6. there seems to be some artificial limit, is there a way to get the speed back? using winscp, as always have so its not that.

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Fri Jul 31, 2020 9:26    Post subject: Reply with quote
I would first copy a file to /tmp to measure the scp speed

Code:
scp Test-Video.ts root@192.168.1.1:/tmp/
DD-WRT v3.0-r42967 std (c) 2020 NewMedia-NET GmbH
Release: 04/21/20
Board: Netgear R7800
Test-Video.ts                  100%  159MB  15.9MB/s   00:10


encryption cannot be deactivated with scp, you can only use another cipher that is not as CPU intensive

Code:
scp -c aes128-cbc Test-Video.ts root@192.168.1.1:/tmp/
DD-WRT v3.0-r42967 std (c) 2020 NewMedia-NET GmbH
Release: 04/21/20
Board: Netgear R7800
Test-Video.ts                  100%  159MB  17.7MB/s   00:09



well not very fast but faster than 2MB/s

if it is not the general scp transferspeed, then it is probably the SSD or the filesystem

which filesystem is mounted under /jffs?
with online discard option?

what does the partition layout look like on the ssd? are reserve blocks still free?

have you ever tried to trim the ssd manually? (fstrim -v)

or test the copy speed from drive to drive
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Fri Jul 31, 2020 10:37    Post subject: Reply with quote
same speed copying to /tmp. i dont see any setting for changing encryption, i would think a 3.5ghz 2c/4t haswell with AES should eat through most encryptions?

its not the ssd, the same hardware from a build around dec 2019 or jan 2020 was over 4x faster. smart data is all normal.

how do i see filesystem/partition from ddwrt? is it this?

Code:
Disk /dev/sda: 112 GB, 120034123776 bytes, 234441648 sectors
232581 cylinders, 16 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sda1 *  0,1,1       16,15,63            63      17135      17073 8536K 83 Linux
/dev/sda2    17,1,1      277,15,63        17199     280223     263025  128M 83 Linux
/dev/sda3    278,1,1     58,15,63        280287    4188239    3907953 1908M 83 Linux
/dev/sda4    59,1,1      61,15,63       4188303    4191263       2961 1480K 83 Linux


and -sh: fstrim: not found

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Fri Jul 31, 2020 11:13    Post subject: Reply with quote
/tmp is ramfs and stored in RAM

then it probably has nothing to do with your hard drive

maybe try via FTP?


Edit: just try something to see what it could be

I can test later, there have been some dropbear updates in the meantime (but I have no time right now)
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Fri Jul 31, 2020 17:53    Post subject: Reply with quote
the pig no longer takes my RSA keys

Code:
 ssh dd-wrt
DD-WRT v3.0-r44044 std (c) 2020 NewMedia-NET GmbH
Release: 07/31/20
Board: Netgear R7800
Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.



Quote:
authpriv.info dropbear[5823]: Exit before auth from <192.168.1.100:50616>: (user 'root', 0 fails): Non-matching signing type



that's a bug, isn't it?

> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=4e57fd5adaf0c937da1e947f32dfa9ae513637a5


but the transfer speed is normal

Code:
scp Test-Video.ts root@192.168.1.1:/tmp/
DD-WRT v3.0-r44044 std (c) 2020 NewMedia-NET GmbH
Release: 07/31/20
Board: Netgear R7800
root@192.168.1.1's password:
Test-Video.ts                 100%  159MB  15.9MB/s   00:10



can someone confirm that the "public key authentication" is broken?

Edit: already solved in later Builds > back to the thread topic
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Thu Aug 06, 2020 0:31    Post subject: Reply with quote
the speed came back to normal all on its own with r44077.. (its not the forced nvram wipe as i went back to r44048 and yet again wiped it there to test, was still slow on that build)
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Thu Aug 06, 2020 14:27    Post subject: Reply with quote
ho1Aetoo wrote:
the pig no longer takes my RSA keys

Code:
 ssh dd-wrt
DD-WRT v3.0-r44044 std (c) 2020 NewMedia-NET GmbH
Release: 07/31/20
Board: Netgear R7800
Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.

Build 44044 was pulled. Pretty strong hint that an upgrade is called for.

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Thu Aug 06, 2020 16:09    Post subject: Reply with quote
ho1Aetoo wrote:
Edit: already solved in later Builds > back to the thread topic


https://svn.dd-wrt.com/ticket/7179
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14207
Location: Texas, USA

PostPosted: Thu Aug 06, 2020 16:19    Post subject: Reply with quote
I had no issues with 44044. I guess I'm just stupid.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum