diff options
author | Etienne Dechamps <[email protected]> | 2015-05-10 16:37:22 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-06-22 14:19:31 -0700 |
commit | e8fe6684a5128427e6ad1e75eb548b9fd0c482aa (patch) | |
tree | bed57cfb0f5eb9eab16b06bc2149ec595fa6a84b /module/zfs/metaslab.c | |
parent | bb3250d07ec818587333d7c26116314b3dc8a684 (diff) |
Document metaslab_aliquot.
Signed-off-by: Etienne Dechamps <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/metaslab.c')
-rw-r--r-- | module/zfs/metaslab.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ /* |