]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r337190: 9486 reduce memory used by device removal on fragmented pools
authorAlexander Motin <mav@FreeBSD.org>
Thu, 2 Aug 2018 21:59:46 +0000 (21:59 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 2 Aug 2018 21:59:46 +0000 (21:59 +0000)
commit01c0f8bef3c2cab0ea8c0c7556ee7d2e799f1ba3
treee43f81f478008d8f7ef4588f2a5c331947424daf
parentdcbebe85decbb56f91c5137a2c98e3dadfad6737
parent9f2ee4de7e42acb4690d4d55846a801797348d87
MFV r337190: 9486 reduce memory used by device removal on fragmented pools

In the most fragmented real-world cases, this reduces memory used by the
mapping from ~1GB to ~50MB of RAM per 1TB of storage removed. Less
fragmented cases will typically also see around 50-100MB of RAM per 1TB
of storage.

illumos/illumos-gate@cfd63e1b1bcf7ba4bf72f55ddbd87ce008d2986d

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Tim Chase <tim@chase2k.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author:     Matthew Ahrens <mahrens@delphix.com>
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/range_tree.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/range_tree.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_removal.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_removal.c