Add l2arc_max_block_size tunable

Set a limit for the largest compressed block which can be written
to an L2ARC device.  By default this limit is set to 16M so there
is no change in behavior.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #4323
This commit is contained in:
Brian Behlendorf
2016-02-10 10:42:01 -08:00
parent 5428dc51fb
commit 8a09d5fd46
2 changed files with 47 additions and 1 deletions
+14
View File
@@ -79,6 +79,20 @@ Compressed l2arc_headroom multiplier
Default value: \fB200\fR.
.RE
.sp
.ne 2
.na
\fBl2arc_max_block_size\fR (ulong)
.ad
.RS 12n
The maximum block size which may be written to an L2ARC device, after
compression and other factors. This setting is used to prevent a small
number of large blocks from pushing a larger number of small blocks out
of the cache.
.sp
Default value: \fB16,777,216\fR.
.RE
.sp
.ne 2
.na