Page 5 of 5 FirstFirst ... 345
Results 41 to 43 of 43

Thread: Does linux Need Defrag?

  1. #41
    Join Date
    Sep 2009
    Location
    Jo'burg SA
    Beans
    13
    Distro
    Ubuntu Studio 8.04 Hardy Heron

    Re: Does linux Need Defrag?

    Quote Originally Posted by calc View Post
    I don't think this has been mentioned yet but using Tranmission (bittorrent) to download files can cause severe filesystem fragmentation at least on ext3. Severe to the point you can't burn a cd iso on a drive that can do 120MB/s sequential without first defragmenting the file. ext4 is supposed to be a bit better about fragmentation problems due to having prealloc. However even it is not perfect and tytso is working on an ext4 defrag utility.

    filefrag (filename) will tell you how many extents are in your file and thus to what extent a particular file is fragmented. I don't know if there is a tool that will tell you this for the whole filesystem, but I think fsck might tell you at the end of a run.
    That's very similar to the problems with databases. It's a large file which gets added to over time. Thus a contiguous space is allocated to it, but once it grows larger a new fragment is created.

    Not using torrents, I'm not sure if there's one which would work the following way. Most of the download managers first create a file of the size they're downloading. The content is garble at first, which simply gets filled in as more data is downloaded. This way fragmentation is kept to a minimum in this case. Maybe there's a torrent client which does the same?

  2. #42
    Join Date
    Sep 2009
    Location
    Jo'burg SA
    Beans
    13
    Distro
    Ubuntu Studio 8.04 Hardy Heron

    Re: Does linux Need Defrag?

    Quote Originally Posted by seenthelite View Post
    A very interesting thread, some different points of view, so what is the answer should people reinstall their OS,s from time to time.
    Only if you want to. It should be sufficient to remove old files (which you don't need anymore) - of course after backup / archive

    Only in the "strange" cases would fragmentation become a problem. Unfortunately you do find some programs which use database like files, and then they don't follow the previously mentioned database pre-allocated file method. One I found cause enormous amounts of fragmentation on Windows is Revit. These files tend to grow (over time) from 50k to 200MB+. I've not tried them on Ubuntu yet, as it doesn't work under Wine.

  3. #43
    Join Date
    Apr 2005
    Location
    McKinney, TX, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Does linux Need Defrag?

    Here is a new comment by Theodore Ts'o about the status of e2defrag.

    https://bugs.launchpad.net/ubuntu/+b...28/comments/22

Page 5 of 5 FirstFirst ... 345

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •