Re: tuning a zfs-mounted /var

From: Michael Gmelin <freebsd_at_grem.de>
Date: Sat, 22 May 2021 19:13:52 UTC

> On 22. May 2021, at 20:32, tech-lists <tech-lists@zyxst.net> wrote:
> 
> Hi,
> 
> What options could one pass to zfs to speed it up to characteristics
> favourable to what's usually in /var ? Like lots of fast writes, lots of
> files smaller than what's on /usr, lots of file creation and deletion
> but also quite a few files that might become large, like what's in
> /var/log, things like that.
> 

Make sure your pool (or at least the /var file system) has compression=lz4 and that atime is off, beyond that I wouldn’t bother to try to optimize manually there, unless you run a database like MySQL in /var/db/…, in which case setting a fixed record size might make sense.

Best
Michael


> thanks,
> -- 
> J.