Date: Sat, 22 May 2021 21:13:52 +0200 From: Michael Gmelin <freebsd@grem.de> To: tech-lists <tech-lists@zyxst.net> Cc: freebsd-current@freebsd.org Subject: Re: tuning a zfs-mounted /var Message-ID: <B961A8FE-CE78-4490-8E6D-1EBD771629D1@grem.de> In-Reply-To: <YKlNQG%2BAk0gsjebb@ceres.zyxst.net> References: <YKlNQG%2BAk0gsjebb@ceres.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 22. May 2021, at 20:32, tech-lists <tech-lists@zyxst.net> wrote: >=20 > =EF=BB=BFHi, >=20 > 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. >=20 Make sure your pool (or at least the /var file system) has compression=3Dlz4= and that atime is off, beyond that I wouldn=E2=80=99t bother to try to opti= mize manually there, unless you run a database like MySQL in /var/db/=E2=80=A6= , in which case setting a fixed record size might make sense. Best Michael > thanks, > --=20 > J.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B961A8FE-CE78-4490-8E6D-1EBD771629D1>