diff options
author | George Wilson <[email protected]> | 2019-08-13 08:11:57 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-08-13 08:11:57 -0600 |
commit | c8242a96ba8495013cc2f2e12ea6202e61796462 (patch) | |
tree | 89367092fe6fde1942c7cf6d05721ce40807e3fc /man/man5 | |
parent | a43570c5f3ca11957c23b4e073a520963cd9cfb2 (diff) |
spa_load_verify() may consume too much memory
When a pool is imported it will scan the pool to verify the integrity
of the data and metadata. The amount it scans will depend on the
import flags provided. On systems with small amounts of memory or
when importing a pool from the crash kernel, it's possible for
spa_load_verify to issue too many I/Os that it consumes all the memory
of the system resulting in an OOM message or a hang.
To prevent this, we limit the amount of memory that the initial pool
scan can consume. This change will, by default, use 1/16th of the ARC
for scan I/Os to prevent running the system out of memory during import.
Reviewed-by: Matt Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Serapheim Dimitropoulos <[email protected]>
Signed-off-by: George Wilson [email protected]
External-issue: DLPX-65237
External-issue: DLPX-65238
Closes #9146
Diffstat (limited to 'man/man5')
-rw-r--r-- | man/man5/zfs-module-parameters.5 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index 6c15f11b7..c25f2f046 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -543,13 +543,13 @@ Default value: \fB1\fR. .sp .ne 2 .na -\fBspa_load_verify_maxinflight\fR (int) +\fBspa_load_verify_shift\fR (int) .ad .RS 12n -Maximum concurrent I/Os during the traversal performed during an "extreme -rewind" (\fB-X\fR) pool import. +Sets the maximum number of bytes to consume during pool import to the log2 +fraction of the target arc size. .sp -Default value: \fB10000\fR. +Default value: \fB4\fR. .RE .sp |