Shake for defrag - pointless or useful ?

Discussion in 'all things UNIX' started by Ocky, Dec 31, 2009.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    Program is in the repos. .. just wondering whether there is any point in using it as not much fragmentation is associated with Linux. Also is it safe/reliable ?

    http://linux.die.net/man/8/shake

    http://vleu.net/shake/

    "Before any use, check that your partition is mounted with user_xattr. If it is not, edit your fstab to add this option then call mount -o remount MY_PARTITION. Shake can works without them, but will be less efficient (it use xattr to store information helping incremental use."
    ??
     
  2. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    No, file fragmentation is not a problem on *most* Linux file systems. Although the file system does fragment, it does not slow performance. Why? Well, the answer is technical, but there are some good articles on the Internet that try to explain it for laymen. (NOTE: this only applies to the "ext" family of files systems). If using XFS, you might find you increase performance by running its built in defragmenting tool from time to time.

    Or you can google "why doesn't linux need defragmenting." There is a lot of info out there. But, basically, unless your disk is almost full, there will never be any noticeable slowdown due to file fragmentation on ext file systems.
     
    Last edited: Dec 31, 2009
  3. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    Thank you chronomatic - will have a look.
    Have a great 2010 !
     
  4. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    Just came across this from Ubuntu forums in connection with a sticky on ureadahead.

    http://ubuntuforums.org/showpost.php?p=8998483&postcount=1

     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.