1

to reduce the I/O on my low end Raspberry Pi, I want to set my SSHFS/NFS to be mounted in RAM.

MiniDLNA then will stream it to my Network. As I can see in IOtop, Minidlna uses 99% of IO usage, and I think it is from the SSHFS/NFS mount.

How can I get Minidlna to work only from RAM? I couldn't find a 'real' Cache/Working Directory for Minidlna/Samba, only for indexed Files(DB) and so.

Easy to say, all the File get/stream should go in Memory and not on the internal drive (SD Card).

As all File Operations are at the remote Share, it should be possible? Just like a Live Stream..

0

I wrote a comment earlier about the following approach:

sudo mount -t tmpfs -o size=1g tmpfs /mnt/tmpfs
sudo mkdir /mnt/tmpfs/sshfs
sudo sshfs rowan@10.0.5.5:/home/rowan/sshfs /mnt/tmpfs/sshfs/.

This where my results:

tmpfs                             1.0G     0  1.0G   0% /mnt/tmpfs
rowan@10.0.5.5:/home/rowan/sshfs  683G  7.2G  641G   2% /mnt/tmpfs/sshfs

This won't work, since sshfs is making a new mountpoint itself. So the previous mountpoint doesn't even matter.

I think (could be wrong), that sshfs already buffers writes in RAM before it sends it over. Sorry I couldn't be more helpful.

  • 1
    Okay, yes thats also my thought that SSHFS already uses RAM. Then minidlna Service, which reads from the share must be my problem. I will edit the Question, need to solve to run services like SSHFS, to work only in RAM. – Deetze Jan 10 at 17:06
  • New Question: unix.stackexchange.com/questions/493768/… – Deetze Jan 10 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.