On 2023-02-12, Why 42? The lists account. <li...@y42.org> wrote: > > You're exactly right. With this entry in fstab: >> swap /tmp mfs rw,nodev,nosuid,-s=4194304 0 0 > > I now have this /tmp space: >> mjoelnir:~ 12.02 13:15:07 % df -h >> Filesystem Size Used Avail Capacity Mounted on >> /dev/sd1a 1005M 537M 418M 57% / >> mfs:67535 1.9G 29.0K 1.8G 1% /tmp >> ... > > That's right after a reboot. I'll start Chrome now and it can really chow > down on some /tmp space :-)
It maybe worth checking whether mfs is actually helping - it's easy to assume that because it's in RAM it must be fast, but I've had machines where mfs was slower than SSD (https://marc.info/?l=openbsd-misc&m=164942119618029&w=2), also it's taking memory that could otherwise be used by buffer cache. The main benefit to me from mfs is for things which I explicitly don't want to hit permanent storage.