Cesura / nxsh

BusyBox-like remote shell for the Nintendo Switch over telnet [UNMAINTAINED]
BSD 3-Clause "New" or "Revised" License
79 stars 7 forks source link

Hangs on boot when loading alongside sys-ftpd #9

Closed fennectech closed 5 years ago

fennectech commented 5 years ago

The tool hangs when loading alongside sys-ftpd.

friedkeenan commented 5 years ago

The reason for this is that the sysmodules run out of memory. After the Switch's normal sysmodules are loaded, there's around 24 MiB left. sys-ftpd allocates 5.25 MiB for its heap (its stack is negligible), which, when combined with the memory needed for the sysmodules needed for CFW (fsmitm takes 16 MiB), does not leave much for any other sysmodules (nxsh uses 2.5 MiB). I think ReiNX might use less memory than atmosphere's sysmodules, so that might be why I was able to load nxsh alongside sys-ftpd.

While compatibility with sys-ftpd would be nice, I wouldn't say it's a big priority. I did try to fine-tune nxsh's heap, so I'm not sure how much else could be done.

fennectech commented 5 years ago

Perhaps integrating an FTP server into NXSH would work.

On Tue, Jan 22, 2019 at 6:49 PM friedkeenan notifications@github.com wrote:

The reason for this is that the sysmodules run out of memory. After the Switch's normal sysmodules are loaded, there's around 24 MiB left. sys-ftpd allocates 5.25 MiB for its heap (its stack is negligible), which, when combined with the memory needed for the sysmodules needed for CFW (fsmitm takes 16 MiB), does not leave much for any other sysmodules (nxsh uses 2.5 MiB). I think ReiNX might use less memory than atmosphere's sysmodules, so that might be why I was able to load nxsh alongside sys-ftpd.

While compatibility with sys-ftpd would be nice, I wouldn't say it's a big priority. I did try to fine-tune nxsh's heap, so I'm not sure how much else could be done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cesura/nxsh/issues/9#issuecomment-456623042, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZmAavdfG_ue7LYTQu_rCQZLqufj1_Fks5vF7GYgaJpZM4aME-M .

-- FennecTECH

friedkeenan commented 5 years ago

I think that would extend outside the scope of nxsh. You can always use the ftpd NRO or NX-Shell for FTP while also having the kip, or you could have sys-ftpd with the nxsh NRO; you wouldn't be able to do FTP+NXSH during a game, but I'm not sure why you would need that

friedkeenan commented 5 years ago

Now that both sys-ftpd and nxsh are in the PM-loading format, they seem to work just fine together, so I'm gonna close this

fennectech commented 5 years ago

Ive seen issues with them bolth. I get random hangs especially when opening the eshop. And when opening the eshop from a game. It hangs more often than not.

On Thu, May 2, 2019 at 10:25 AM friedkeenan notifications@github.com wrote:

Now that both sys-ftpd and nxsh are in the PM-loading format, they seem to work just fine together, so I'm gonna close this

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cesura/nxsh/issues/9#issuecomment-488717724, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3GMANPMT7SIFUA7O353FTPTMBX7ANCNFSM4GRQJ6GA .

-- FennecTECH