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,419
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,419
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
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    K3Nv2 @ K3Nv2: Did you try wearing them?