From e8fe6684a5128427e6ad1e75eb548b9fd0c482aa Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 10 May 2015 16:37:22 +0100 Subject: Document metaslab_aliquot. Signed-off-by: Etienne Dechamps Signed-off-by: Brian Behlendorf --- module/zfs/metaslab.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'module') diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c index 86bf3c197..15859908f 100644 --- a/module/zfs/metaslab.c +++ b/module/zfs/metaslab.c @@ -53,7 +53,14 @@ #define METASLAB_ACTIVE_MASK \ (METASLAB_WEIGHT_PRIMARY | METASLAB_WEIGHT_SECONDARY) +/* + * Metaslab granularity, in bytes. This is roughly similar to what would be + * referred to as the "stripe size" in traditional RAID arrays. In normal + * operation, we will try to write this amount of data to a top-level vdev + * before moving on to the next one. + */ uint64_t metaslab_aliquot = 512ULL << 10; + uint64_t metaslab_gang_bang = SPA_MAXBLOCKSIZE + 1; /* force gang blocks */ /* -- cgit v1.2.3