diff options
author | Alexander Motin <[email protected]> | 2020-08-25 17:33:36 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-08-27 16:06:28 -0700 |
commit | 3ca31bd0c65a48b2fc402efc1dd914cfe7c52781 (patch) | |
tree | 34a2df3249f126e6e62ed363f1e9cffab74c933f /man | |
parent | 47a3f3fc01def2695c6e0652dad063c50a0950be (diff) |
Introduce limit on size of L2ARC headers
Since L2ARC buffers are not evicted on memory pressure, too large
amount of headers on system with irrationally large L2ARC can render
it slow or even unusable. This change limits L2ARC writes and
rebuild if unevictable L2ARC-only headers reach dangerous level.
While there, call arc_adapt() on L2ARC rebuild, so that it could
properly grow arc_c, reflecting potentially significant ARC size
increase and avoiding slow growth with hopeless eviction attempts
later when "overflow" is detected.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reported-by: Richard Elling <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Closes #10765
Diffstat (limited to 'man')
-rw-r--r-- | man/man5/zfs-module-parameters.5 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index 444e74748..893bbf652 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -201,6 +201,20 @@ Default value: \fB200\fR%. .sp .ne 2 .na +\fBl2arc_meta_percent\fR (int) +.ad +.RS 12n +Percent of ARC size allowed for L2ARC-only headers. +Since L2ARC buffers are not evicted on memory pressure, too large amount of +headers on system with irrationaly large L2ARC can render it slow or unusable. +This parameter limits L2ARC writes and rebuild to achieve it. +.sp +Default value: \fB33\fR%. +.RE + +.sp +.ne 2 +.na \fBl2arc_trim_ahead\fR (ulong) .ad .RS 12n |