S + J for /tmp and /var and /?

RW rwmaillists at googlemail.com
Mon Sep 15 14:41:01 UTC 2014


On Sat, 13 Sep 2014 08:19:05 +0200
O. Hartmann wrote:

> The problem is that clients like xpdf open by default all PDFs
> in /tmp and not /var/tmp (which is still mapped to disk in all my
> configurations) and with lots PDFs open, the box starts swapping
> pretty quickly with only 4GB RAM and ZFS. Even with 8 GB RAM its a
> kind of problematic, when we deal with larger temporary files taken
> from simulations, opened by vi or other editors and stored
> temporarily in /tmp. 

I've been using tmpfs since I had 1.5 GB of RAM, and I never noticed a
slowdown with swapping due to tmpfs, except a little bit while the
page daemon did the writing. I've used it with more than 2xRAM swapped
out.  Maybe ZFS isn't leaving it enough memory. 




More information about the freebsd-questions mailing list