Lines Matching defs:fragmentation

106  * Allow metaslabs to keep their active state as long as their fragmentation
168 * Enable/disable fragmentation weighting on metaslabs.
312 * Calculate the metaslab class's fragmentation metric. The metric
322 uint64_t fragmentation = 0;
340 * If a metaslab group does not contain a fragmentation
350 * to the overall pool fragmentation metric.
352 fragmentation += mg->mg_fragmentation *
355 fragmentation /= metaslab_class_get_space(mc);
357 ASSERT3U(fragmentation, <=, 100);
359 return (fragmentation);
445 * fragmentation into account if the metaslab group has a valid
446 * fragmentation metric (i.e. a value between 0 and 100).
711 * Calculate the fragmentation for a given metaslab group. We can use
715 * group have a fragmentation metric.
721 uint64_t fragmentation = 0;
731 fragmentation += msp->ms_fragmentation;
737 fragmentation /= valid_ms;
738 ASSERT3U(fragmentation, <=, 100);
739 return (fragmentation);
745 * zfs_mg_noalloc_threshold or its fragmentation metric is greater than
758 * considered allocatable -- free space and fragmentation. If
760 * the fragmentation is less than the fragmentation threshold then
1325 * This table defines a segment size based fragmentation metric that will
1326 * allow each metaslab to derive its own fragmentation value. This is done
1331 * us the fragmentation metric. This means that a high fragmentation metric
1334 * large segments. A 10% change in fragmentation equates to approximately
1340 * of the table. Since the fragmentation value is never stored on disk, it
1363 * Calclate the metaslab's fragmentation metric. A return value
1372 uint64_t fragmentation = 0;
1417 fragmentation += space * zfs_frag_table[idx];
1421 fragmentation /= total;
1422 ASSERT3U(fragmentation, <=, 100);
1423 return (fragmentation);
1428 * This is based on the amount of free space, the level of fragmentation,
1459 * Use the fragmentation information to inversely scale
1469 * this metaslab again. The fragmentation metric may have
1496 * we'll polish it off. If the fragmentation on this metaslab