Illumos #175: zfs vdev cache consumes excessive memory
authorGarrett D'Amore <garrett@nexenta.com>
Fri, 22 Apr 2011 07:49:41 +0000 (00:49 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 1 Aug 2011 19:09:11 +0000 (12:09 -0700)
commit2cc6c8db12eaf8d1a1c17a13fbc6d25d8244486e
tree6d5219dac8f1b82e4ccfd05a0f15d1d473838a07
parentef3c1dea7024b07b4ace6115de9f22a99c1394d8
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 <george.wilson@delphix.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #340
module/zfs/vdev_cache.c