On 04/07/2018 10:55 PM, David C. Rankin wrote:
I went ahead and added a reduced swappiness setting in /etc/sysctl.d/99-sysctl.conf, e.g.
vm.swappiness=1
There doesn't see to be any reason for changing the default cache_pressure from 100, as the link indicated, e.g.
vm.vfs_cache_pressure=50
Reducing the rate the kernel will reclaim dentries and inodes due to memory pressure doesn't make a whole lot of sense. See:
I also put tmpfs on /tmp (many distros now do this by default, and I believe openSuSE is moving this way) systemd has a default tmp.mount file for this, it is in /usr/share/systemd/. All you need to do to put tmpfs on /tmp is symlink the file to /etc/systemd/system, e.g. # ln -s /usr/share/systemd/tmp.mount /etc/systemd/system Works fine: $ findmnt --target /tmp TARGET SOURCE FSTYPE OPTIONS /tmp tmpfs tmpfs rw,nosuid,nodev You can read the Fedora discussion here: https://fedoraproject.org/wiki/Features/tmp-on-tmpfs -- David C. Rankin, J.D.,P.E.