Re: [PATCH 01/11 RESEND] libe2p: Add new function get_fragment_score()

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

 



2011/06/17 12:18, Ted Ts'o wrote:
It perhaps might be useful to also articulate what are the goals of
this metric.  Is just just to decide which files should be
defragmented, and which should be left alone?  Or do you want to be
able to compare which file is "worse off"?

I decided to implement a fragmentation score for the two purposes:
one is for filefrag that outputs the score to decide which files should be
defragmented, and the other is for e4defrag that compares two files'
fragmentation to prevent the worse fragmentation.

I can imagine two files that have a score of 100%, but one is much
worse off than the other.  Does that matter?  It may or might not,
depending how you plan to use the fragmentation score, both now and in
the future.  So it might be good to explicitly declare what are the
goals for this metrics, and its planned use cases.

Certainly, the same fragmentation score doesn't always mean the same
fragmentation. Just as Andreas said, "fragments per MB" is a good idea. It's
easy to understand, and other filesystem also would be able to use it without
change. Moreover, there is no worry about what threshold we use to
the application.

What do you think about this idea?

Regards,
Kazuya Mio
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux