[ardour-dev] filefrag tool
Doug McLain
nostar at comcast.net
Sun Jan 23 19:50:40 PST 2005
In #ardour today we did alot of discussing and testing of file
fragmentation, and determined that the performance problem described in
mantis #864 is caused in a large part by the interleaving of a sessions
wav files and peak files. The tool 'filefrag' has been a great tool
(using the -v switch) in conducting these experiments. The only thing
it lacks is the output of first and last blocks. Below is the mod that
adds that info to the output. Here is a link to the package that
filefrag belongs to:
http://e2fsprogs.sourceforge.net/
Even though its part of an extX tools package, it seems to be fs
independant. I tried it on resierfs too, seems to work well.
Doug
-- e2fsprogs-1.35/misc/filefrag.c 2004-02-27 02:02:04.000000000 +0000
+++ filefrag.c 2005-01-24 03:43:01.000000000 +0000
@@ -112,6 +112,8 @@
if (verbose)
printf("File size of %s is %lld (%ld blocks)\n", filename,
(long long) fileinfo.st_size, numblocks);
+ if (verbose)
+ printf("First block: %ld\nLast block: %ld\n",
get_bmap(fd, 0), get_bmap(fd, numblocks - 1));
for (i=0; i < numblocks; i++) {
if (is_ext2) {
if (((i-EXT2_DIRECT) % bpib) == 0)
--
http://nostar.net/
More information about the Ardour-Dev
mailing list