Re: tuning a zfs-mounted /var

From: John-Mark Gurney <>
Date: Sun, 23 May 2021 18:59:16 UTC
Michael Gmelin wrote this message on Sat, May 22, 2021 at 21:13 +0200:
> > On 22. May 2021, at 20:32, tech-lists <> 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.

And if you're running a db in /var, you should just create a new dataset
for the database instead of reuse /var's dataset, that way the fixed
record size does not cause problems for the rest of /var...

  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."