Homebrew Question i need help with ftp speeds

David Zocchi

Active Member
OP
Newcomer
Joined
Mar 12, 2016
Messages
27
Trophies
0
Age
32
XP
330
Country
I need some advice because I cannot for the life figure out what is causing this
I'm using tinfoil/dz it happens on all versions, I am getting various slows speeds this is what I've tried

Nas with ftp server 2mbps
Nas with webserver 4mbps
PC with ftp server 6-7 mbps
PC with ampps server 8 - 10 mbps

i have tried each of these with a variety of network setups

i tried putting a wifi adapter in the nas and creating an isolated network both ftp & http were no faster than 3mbps
i tried broadcasting from the PC both were no faster than 4mbps

however the nas and pc transfer between each other at 100mbps +

occasionally it jumps to 24mbps for a few seconds but lately with PC/AMPPS it wont go faster than 4mbps, how do i speed things up what? is causing this issue? i have tried different sd formats, i can't think of anything else to try
 

notimp

Well-Known Member
Member
Joined
Sep 18, 2007
Messages
5,779
Trophies
1
XP
4,420
Country
Laos
Three potential answers. CPU, network, or I/O bound. ;)

Probably i/O bound, actually, as creating a 4MB savestate in Retroarch usually takes around 5 seconds as well.

If you use ftp active mode, the transfer should be initiated by the server, in passive its initiated by the client, and might produce more overhead at the end you dont want it.

Also FTP has a control channel thats always initiated by the client (and therefore might be cpu bound).

Aso random write speeds on most SD cards only are around 5MB/s, sometimes even lower
When comparing random large-block transfers, however, the new EVO Plus card fell behind in writes with just 1.15MB/s. Reads were much better at 85.72MB/s. In comparison, the last gen EVO Plus recorded 79.5MB/s read with 3.9MB/s write, which shows both a slight gain and a loss by the newest release. The SanDisk Extreme Plus posted read and write speeds of 85.9MB/s and 43.8MB/s respectively. src: https://www.storagereview.com/samsung_evo_plus_microsd_memory_card_review_128gb
, so if something is written during the FTP file transfer that writes in a different sector (control channel acknowledging packet received) - that would also drop it down to around those speeds.

if some day, a Switch ftp client could write to internal storage, you'd find out. :)

--------------------- MERGED ---------------------------

Found out something interesting, with FTPD (app), there seems to be CPU throttling in action if active mode is active - so the switch actually transfers files faster, if it does initiate the transfer (passive mode), at least larger ones. So this looks like the switch clocking down the CPU during transfer. We are still talking around 3MB/s though, in my case.. ;) (on average)
 
Last edited by notimp,

notimp

Well-Known Member
Member
Joined
Sep 18, 2007
Messages
5,779
Trophies
1
XP
4,420
Country
Laos
Not necessarily, thats the point. :) If the SD card is the culprit (random writes being that slow), or if the speed is actually switch CPU bound (switch throttling down the CPU to "standby speeds" mode, so the return channel for ftp (run by the client) actually gets throttled. :)

The stuff I've just found out actually makes it seem, that it is switch CPU bound to a certain extent.
 
Last edited by notimp,
  • Like
Reactions: Taorn and Mythical

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Yummy yummy :rofl2: