Here are some tools for Linux fragmentation I put on the AUR:

davtools: http://aur.archlinux.org/packages.php?do_Details=1&ID=4315

This comes with a command line and GTK2 (or 1) client which analyzes
partitions and visualizes the amount of fragmentation on the
filesystem. Use this to test your partitions.

Screenshot: http://davtools.sourceforge.net/dav2.png

1. Check the partition list. (output text data to stdout)

  # cdavl

2. Check the fragmentation of /dev/hda1. (output text data to stdout)

  # cdavl /dev/hda1

3. Check and view the fragmentation of /dev/hda1.

  # gdavl /dev/hda1
  (GUI window open)

4. Check and view the fragmentation of lost+found directory on /dev/hda1.

  # gdavl /dev/hda1 /lost+found
  (GUI window open)

5. Check the fragmentation of /dev/hda1 and save for checking later by gdavl.

  # cdavl -Tv /dev/hda1 > filename_which_you_like

6. Read the cdavl output file, and display the fragmentation by GUI window.

  # gdavl filename_which_you_saved

NOTE: davtools only works on ext2/ext3 filesystems.

NOTE 2: There is a path_list file which looks for kernel-specific
paths when building, however it doesn't seem to install anything to
them. They are changed to the $startdir/pkg/... anyways. Maybe those
paths are compiled into the program? PKGBUILD may need modifying, but
it appears to work as-is and doesn't install other stuff as far as I
can tell...

defrag: http://aur.archlinux.org/packages.php?do_Details=1&ID=4316

This script works best run from the top directory of each partition.

It is braindead simple and filesystem agnostic. You need to run it on a
mounted partition. It seems safe in my testing but comes with all the usual
warnings!

The maximum benefit seems to occur with two runs, and it seems to be
effective only if the initial fragmentation is > 2.5%.

Read more here: http://ck.kolivas.org/apps/defrag/README

It basically rewrites files to disk in order of directory depth
(large->small), directory size (large->small), and finally file size
(large->small). I haven't tried it yet.

-Slash

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to