]> git.proxmox.com Git - mirror_zfs.git/commit
Increase L2ARC write rate and headroom
authorshodanshok <g.danti@assyoma.it>
Thu, 9 Nov 2023 00:30:47 +0000 (01:30 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2023 00:30:47 +0000 (16:30 -0800)
commit887a3c533b94a4b70075e310f15c45b9dee19410
treeb43cca34814686703aa8e76b6b6349c436c4f474
parent1c1be60fa21e73abfc351956b661678dd4c9ab74
Increase L2ARC write rate and headroom

Current L2ARC write rate and headroom parameters are very conservative:
l2arc_write_max=8M and l2arc_headroom=2 (ie: a full L2ARC writes at
8 MB/s, scanning 16/32 MB of ARC tail each time; a warming L2ARC runs
at 2x these rates).

These values were selected 15+ years ago based on then-current SSDs
size, performance and endurance. Today we have multi-TB, fast and
cheap SSDs which can sustain much higher read/write rates.

For this reason, this patch increases l2arc_write_max to 32M and
l2arc_headroom to 8 (4x increase for both).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
Closes #15457
man/man4/zfs.4
module/zfs/arc.c