Why you don’t have to defrag Linux like Windows?

 

One of the question that come out every once a while from new GNU/Linux users is how to defrag Linux? Usually most would be satisfied with the short answer "Linux does not need filesystem defragmentation like Windows".

For curious users who prefer a rather complete explanation about why GNU/Linux filesystem doesn't need defragmentation like WIndows are, then this article might provide such answer to you : Why doesn't Linux need defragmenting?

Hope that answer your questions about Linux (or other Unix-like) filesystem for that matter.

Tags: , , , , , ,

Bookmark this article These icons link to social bookmarking sites where readers can share and discover new web pages.
  • digg
  • YahooMyWeb
  • NewsVine
  • Netvouz
  • Reddit
  • Spurl
  • Furl
  • del.icio.us
  • StumbleUpon
  • Technorati
  • TwitThis

Keep updated with this website! : Subscribe to your email

Recommended Reading

8 smashing comments for this post.

  1. earl-ku Said:

    haha, tell them that the filesystem it uses is diff and does not require any defrag la …

    only windows filesystem requires defrag or the way windows manages it fills which requires it to be defrag every non and then

  2. pinolobu Said:

    The article was made the more interesting with the guy MT.

  3. Bloglah.org: Malaysia bloggers community Said:

    [...] Why you don?t have to defrag Linux like Windows?  » ‎ mypapit [...]

  4. ubuntu+dapper+defrag - Google Search Said:

    [...] [...]

  5. Defragmenter - Ubuntu Forums Said:

    [...] Re: Defragmenter You can find explanation here. [...]

  6. linux defrag - Web - WebCrawler Said:

    [...] [...]

  7. Linux Is Subject to Fragmentation Said:

    Linux is subject to framentation, every real technical expert knows that for a fact.

    So claiming and spreading a myth is wrong, you need to do your research deeply and get the facts straight among the countless claims that “Linux does not need defragmentation”.

    The real explanation is that the ext3 filesystem as well as the OSX 10 filesystem are using journaling which is “more efficient” in putting everything related to a file together unlike FAT/NTFS filesystems (NTFS uses metadata).

    EXT3 and OSX10 also alot a few space after each file for future file size expansion, and if it is not available, it will use the “closest” free space to the file.

    You do not need to defragment an ext3 or osx10 filesystem because of its efficient placing of the files and use of the free space of the HDD.

    BUT, it is still fragmented. Two fragmentations to be exact.

    1: Free Space fragmentation - because these filesystems alot free space after each file, so you get a fragmented free space;
    2: Fragmented Files - these filesystems will use the “closest” free space to the related file to use, hence, the file is still fragmented.

    There are no filesystem in existence today that is truely “fragment-less”. EXT3 and OSX10 are just the two filesystems that “efficiently” places the files.

    In other words, “Linux does not need deframentation” is false, because sooner or later, you will want and/or need to defragment your EXT2/EXT3 and OSX10 (for Macs) file system.

  8. Anti-Myth Said:

    To a first approximation, this is a placebo effect. All the claims being made about ext3 today were also made about NTFS back in 1993. Actually, ext2 and NTFS both date from around 1993. They share the same design goals, but use different heuristics to avoid fragmentation. In the end, both will fragment, but because the anti-fragmentation heuristics ar edifferent, which one fragments faster depends largely on the pattern of disk accesses.

    The original version of Windows NT shipped without a defragmenter. One was developed by a third-party, which was then licensed into Windows: http://technet.microsoft.com/en-us/sysinternals/bb897427.aspx

    Because Windows has a defragmenter which reports fragmentation percentages, people walk away with the impression that NTFS fragments. Because the various Linuxes do not have good defragmentation tools, people believe the party line.

    This party line: “Linux doesn’t need defragmentation” line is just fanboy bullshit. You can defeat any heuristic by doing the exact opposite that the heuristic expects you to do. The real question is: Which filesystem’s heuristic works better for your application?

    Without being backed by hard numbers, it’s all a bunch of handwaving and “Linux r0xx3r! Open-source great! Micro$ux!”

Leave a Comment

Subscribe by email

Enter your Email