September 24, 20241 yr Generally speaking it seems 1/2 of available ram is used for creation of a rootfs with the other half being allocated for a tmpfs mounted to /dev/shm. Right now a suggested approach is to use /dev/shm for tmp tasks (media transcoding) as fully populating /dev/shm will not crash the system like populating /tmp will. However this isn't really a correct usage of /dev/shm which is designed as shared memory and not the temporary storage of files. I'd like to propose a more dynamic approach in that a default amount (say 2GB) plus zfs arc allocation, plus a slight overhead is used for the rootfs. The same value is also used for the creation of a tmpfs at /dev/shm. The balance is then allocated as a tmpfs mounted to /tmp or another dir marked for temporary file usage, maybe /mnt/volatile ?. Example breakdown of a system with 128GB ram with default arc allocation and 20% buffer. rootfs 21.6G / tmpfs 128M /run overlay 21.6G /lib overlay 21.6G /usr devtmpfs 8.0M /dev tmpfs 21.6G /dev/shm tmpfs 106.4G /tmp tmpfs 128M /var/lo Edited September 24, 20241 yr by DiscoverIt
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.