Lines Matching defs:fragmentation

121  * fragmentation metric (measured as a percentage) is less than or
133 * B getting its fragmentation below the threshold).
136 * good enough that fragmentation increases uniformly across all vdevs
144 * Allow metaslabs to keep their active state as long as their fragmentation
230 * Enable/disable fragmentation weighting on metaslabs.
553 * Calculate the metaslab class's fragmentation metric. The metric
563 uint64_t fragmentation = 0;
581 * If a metaslab group does not contain a fragmentation
591 * to the overall pool fragmentation metric.
593 fragmentation += mg->mg_fragmentation *
596 fragmentation /= metaslab_class_get_space(mc);
598 ASSERT3U(fragmentation, <=, 100);
600 return (fragmentation);
732 * the zfs_mg_noalloc_threshold or has a fragmentation value that is
780 * fragmentation into account if the metaslab group has a valid
781 * fragmentation metric (i.e. a value between 0 and 100).
1178 * Calculate the fragmentation for a given metaslab group. We can use
1182 * group have a fragmentation metric.
1188 uint64_t fragmentation = 0;
1200 fragmentation += msp->ms_fragmentation;
1206 fragmentation /= valid_ms;
1207 ASSERT3U(fragmentation, <=, 100);
1208 return (fragmentation);
1214 * zfs_mg_noalloc_threshold or its fragmentation metric is greater than
2117 * Ensure that the metaslab's weight and fragmentation are consistent
2143 * fragmentation and ms_max_size as is - there is nothing for
2895 * This table defines a segment size based fragmentation metric that will
2896 * allow each metaslab to derive its own fragmentation value. This is done
2898 * multiplying that by the fragmentation metric in this table. Doing
2901 * us the fragmentation metric. This means that a high fragmentation metric
2904 * large segments. A 10% change in fragmentation equates to approximately
2910 * of the table. Since the fragmentation value is never stored on disk, it
2933 * Calculate the metaslab's fragmentation metric and set ms_fragmentation.
2942 uint64_t fragmentation = 0;
3004 fragmentation += space * zfs_frag_table[idx];
3008 fragmentation /= total;
3009 ASSERT3U(fragmentation, <=, 100);
3011 msp->ms_fragmentation = fragmentation;
3016 * This is based on the amount of free space, the level of fragmentation,
3036 * Use the fragmentation information to inversely scale
3046 * this metaslab again. The fragmentation metric may have
3073 * we'll polish it off. If the fragmentation on this metaslab
6240 "Use the fragmentation metric to prefer less fragmented metaslabs");