What's new

[R7800] can I increase the size of /dev/shm ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

R. Gerrits

Senior Member
Hi all,

I'm hoping someone here can quickly answer this: Can I increase the size of the /dev/shm filesystem on a R7800 running Voxel's firmware?

Normally, one could do this in /etc/fstab, but that file doesn't exist.

I did find that /etc/preinit has these lines:
Code:
mount -t tmpfs tmpfs /dev -o mode=0755,size=512K
[ -d /dev/shm ] || mkdir -p /dev/shm

I did try increasing the size there. But preinit is executed before the overlay (with my changes) is mounted so that has no effect.


Reason why I want it bigger: I'm trying to get Pihole (v5.0 beta) to run directly on my R7800 via Entware.
I've got almost everything working, except for the issue that after a few hours, /dev/shm is full and then pihole-FTL crashes.
 
nevermind, I think I've found a solution.
As shm is just a folder on the tmpfs /dev, I'll just mount a new and bigger tmpfs on /dev/shm via :
Code:
mount -t tmpfs tmpfs /dev/shm -o mode=0755,size=32M
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top