diff options
author | beren12 <[email protected]> | 2018-04-12 13:47:32 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-12 10:47:32 -0700 |
commit | 7403d0743e2b75b7f5412a14007ba159efb67a7d (patch) | |
tree | e71e781eb3a89d382fd9682b3bf0a6dad6757c73 /module/zfs/arc.c | |
parent | d22f3a8244bf17aefdd47988b3ea5c4a5a6a9b7d (diff) |
Fix zfs_arc_max minimum tuning
When setting `zfs_arc_max` its minimum value is allowed
to be 64 MiB. There was an off-by-1 error which can matter
on tiny systems.
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chris Zubrzycki <[email protected]>
Closes #7417
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 40a93107d..d73d6ffcc 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -7282,7 +7282,7 @@ arc_tuning_update(void) /* Valid range: 64M - <all physical memory> */ if ((zfs_arc_max) && (zfs_arc_max != arc_c_max) && - (zfs_arc_max > 64 << 20) && (zfs_arc_max < allmem) && + (zfs_arc_max >= 64 << 20) && (zfs_arc_max < allmem) && (zfs_arc_max > arc_c_min)) { arc_c_max = zfs_arc_max; arc_c = arc_c_max; |