Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2019 14:48:41 +0000
From:      krad <kraduk@gmail.com>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: ZFS and a spare SSD: ZIL or L2ARC?
Message-ID:  <CALfReydr8srcZYdntQv-xxp=UONrx2tPbAS6a5wr0cxioGM2cQ@mail.gmail.com>
In-Reply-To: <20190213171142.33b7c430c5ec256b1cbafa42@sohara.org>
References:  <c296b7b3-8418-3966-66ed-502d25a848dd@netfence.it> <20190213171142.33b7c430c5ec256b1cbafa42@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
You need to be careful with L2ARC as under certain conditions it can
actually degrade performance. This is down to you needing a data structure
in ram to manage the l2arc. This comes at the expense of ARC. However this
is more of an edge case when you are adding huge amounts of L2ARC compared
to system ram, but important in the enterprise world.

>From your described workload ZiL might be better suited as databases and
virtualisation often cause lots of sync writes. This is where Zil can help.
However the picture is never simple. If you are going to have a zil you
really want it mirrored, as like others  have said its critical if it
fails. Your SSD also needs to have good write endurance. You can achieve
this by either spending loads and getting a high quality drive or over
capacitying something cheaper. (as bigger drives have a higher lifetime
writes). However you do this you are relying on the wear levelling working
correctly.

Another thing to consider is again a separate ZiL can hurt performance,
depending on workloads and the configuration of the main pool vs the
ssd/nve used. A large zpool can have a higher write throughput than a
single puny ssd so unless you are heavily io contended you would hurt
performance in this scenario.

Sorry to paint a complicated picture but like most things there is no right
or wrong, just choices and balancing of risks.


On Wed, 13 Feb 2019 at 17:15, Steve O'Hara-Smith <steve@sohara.org> wrote:

> On Wed, 13 Feb 2019 18:02:51 +0100
> Andrea Venturoli <ml@netfence.it> wrote:
>
> > Now I've just got hold of a spare SSD and, although the box performance
> > is adequate, I'd like to see if it can boost it.
> > Should I configure it as L2ARC? ZIL? Both?
>
>         In my experience L2ARC tends to run full and ZIL uses almost none
> of the space allocated. But then my workload is read heavy - for a write
> heavy workload ZIL is probably more beneficial.
>
> --
> Steve O'Hara-Smith <steve@sohara.org>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReydr8srcZYdntQv-xxp=UONrx2tPbAS6a5wr0cxioGM2cQ>