From 2cc6c8db12eaf8d1a1c17a13fbc6d25d8244486e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 22 Apr 2011 00:49:41 -0700 Subject: [PATCH] Illumos #175: zfs vdev cache consumes excessive memory Note that with the current ZFS code, it turns out that the vdev cache is not helpful, and in some cases actually harmful. It is better if we disable this. Once some time has passed, we should actually remove this to simplify the code. For now we just disable it by setting the zfs_vdev_cache_size to zero. Note that Solaris 11 has made these same changes. References to Illumos issue and patch: - https://www.illumos.org/issues/175 - https://github.com/illumos/illumos-gate/commit/b68a40a845 Reviewed by: George Wilson Reviewed by: Eric Schrock Approved by: Richard Lowe Signed-off-by: Brian Behlendorf Issue #340 --- module/zfs/vdev_cache.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/zfs/vdev_cache.c b/module/zfs/vdev_cache.c index 0d1fe7d2c3..e2f8040d13 100644 --- a/module/zfs/vdev_cache.c +++ b/module/zfs/vdev_cache.c @@ -71,9 +71,16 @@ * 1<