]> granicus.if.org Git - zfs/commitdiff
Document metaslab_aliquot.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 10 May 2015 15:37:22 +0000 (16:37 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 Jun 2015 21:19:31 +0000 (14:19 -0700)
Signed-off-by: Etienne Dechamps <etienne@edechamps.fr>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/metaslab.c

index 86bf3c1970fe3d2cac75c63b4cb5dd1025d813ad..15859908f00710d14cfefc90f55e92f7dcea5067 100644 (file)
 #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 */
 
 /*