Home | History | Annotate | Download | only in zfs

Lines Matching refs:fragmentation

111  * Allow metaslabs to keep their active state as long as their fragmentation
119 "Maximum percentage of metaslab fragmentation level to keep their active state");
205 * Enable/disable fragmentation weighting on metaslabs.
210 "Enable fragmentation weighting on metaslabs");
420 * Calculate the metaslab class's fragmentation metric. The metric
430 uint64_t fragmentation = 0;
448 * If a metaslab group does not contain a fragmentation
458 * to the overall pool fragmentation metric.
460 fragmentation += mg->mg_fragmentation *
463 fragmentation /= metaslab_class_get_space(mc);
465 ASSERT3U(fragmentation, <=, 100);
467 return (fragmentation);
582 * the zfs_mg_noalloc_threshold or has a fragmentation value that is
628 * fragmentation into account if the metaslab group has a valid
629 * fragmentation metric (i.e. a value between 0 and 100).
911 * Calculate the fragmentation for a given metaslab group. We can use
915 * group have a fragmentation metric.
921 uint64_t fragmentation = 0;
931 fragmentation += msp->ms_fragmentation;
937 fragmentation /= valid_ms;
938 ASSERT3U(fragmentation, <=, 100);
939 return (fragmentation);
945 * zfs_mg_noalloc_threshold or its fragmentation metric is greater than
1582 * This table defines a segment size based fragmentation metric that will
1583 * allow each metaslab to derive its own fragmentation value. This is done
1588 * us the fragmentation metric. This means that a high fragmentation metric
1591 * large segments. A 10% change in fragmentation equates to approximately
1597 * of the table. Since the fragmentation value is never stored on disk, it
1620 * Calclate the metaslab's fragmentation metric. A return value
1629 uint64_t fragmentation = 0;
1680 fragmentation += space * zfs_frag_table[idx];
1684 fragmentation /= total;
1685 ASSERT3U(fragmentation, <=, 100);
1687 msp->ms_fragmentation = fragmentation;
1692 * This is based on the amount of free space, the level of fragmentation,
1713 * Use the fragmentation information to inversely scale
1723 * this metaslab again. The fragmentation metric may have
1750 * we'll polish it off. If the fragmentation on this metaslab