Re: Integration branch of btrfs-progs 2013-03-20

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, 20. März 2013 schrieb David Sterba:
> Hi,
> 
> finally removing the obsolete utilities, adding the fragmentation
> visualisation tool in exchange, setting of io priority for scrub, few
> more fixes and updates to the build system.

The fragmentation visuation tool works nicely. Tried it on about 200 GiB
/home, almost no fragmentation, some 3-4%, but mostly 0.something%,
and on about 20 GiB root, were some chunks were fragmented upto 30-40%.

What kind of fragmentation does the tool count? From what I understand
by looking at the source, extent fragmentation?

 82 static void
 83 print_bg(FILE *html, char *name, u64 start, u64 len, u64 used, u64 flags,
 84 »······· u64 areas)
 85 {
 86 »·······double frag = (double)areas / (len / 4096) * 2;
 87                                                                                                                                                
 88 »·······fprintf(html, "<p>%s chunk starts at %lld, size is %s, %.2f%% used, "
 89 »·······»·······      "%.2f%% fragmented</p>\n", chunk_type(flags), start,
 90 »·······»·······      pretty_sizes(len), 100.0 * used / len, 100.0 * frag);
 91 »·······fprintf(html, "<img src=\"%s\" border=\"1\" />\n", name);
 92 }

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux