diff options
author | Matthew Ahrens <mahrens@delphix.com> | 2016-09-02 21:28:52 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2016-09-06 20:16:38 -0700 |
commit | e596171059bf3f76f6ec9c99e500538c022e0ba5 (patch) | |
tree | 17610bc2a427069b09bcb6dbd110d45d3c03ad8c | |
parent | 6430daec31473902a374dd7a244e1f67ce33191d (diff) | |
download | illumos-joyent-e596171059bf3f76f6ec9c99e500538c022e0ba5.tar.gz |
7278 tuning zfs_arc_max does not impact arc_c_min
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r-- | usr/src/uts/common/fs/zfs/arc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/zfs/arc.c b/usr/src/uts/common/fs/zfs/arc.c index a7b4d05f77..0dd1d480cd 100644 --- a/usr/src/uts/common/fs/zfs/arc.c +++ b/usr/src/uts/common/fs/zfs/arc.c @@ -5606,8 +5606,10 @@ arc_init(void) * Allow the tunables to override our calculations if they are * reasonable (ie. over 64MB) */ - if (zfs_arc_max > 64 << 20 && zfs_arc_max < allmem) + if (zfs_arc_max > 64 << 20 && zfs_arc_max < allmem) { arc_c_max = zfs_arc_max; + arc_c_min = MIN(arc_c_min, arc_c_max); + } if (zfs_arc_min > 64 << 20 && zfs_arc_min <= arc_c_max) arc_c_min = zfs_arc_min; |