LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-09-2004, 03:19 PM   #1
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
Why does linux not need defragging?


Quote:
This is similar to how a Windows organizes its data on its hard drive. A computer will slot a new piece of data in an empty area of the hard drive as well. If the file is too big for the slot, it will break it up and put a piece in one slot and another elsewhere.

The next time you ask the computer to open that file it has to move the hard drive's heads twice to grab the two pieces of the file, which takes more time. Disk Defragmenter acts as an organized employee would. The employee would sort through all the books and organize them in categories on the shelves so that customers could find them more readily.
So what is different about linux filesystems (ie ext2, ext3, reiserfs) that makes it so it doesn't have to defragment?

Thanks
 
Old 10-09-2004, 03:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
basically because before it writes stuff to disk it finds somewhere suitable to put it, rather than finding the first space on the disc platter and moving on if it's in trouble. with lots of large files, a file system will always fragment, but that's just natural to a low degree.
 
Old 10-09-2004, 04:29 PM   #3
case1984
Member
 
Registered: Feb 2003
Location: Baton Rouge, LA
Distribution: ubuntu
Posts: 137

Rep: Reputation: 15
There was actually an article in PC magazine a while ago about how they tried to figure out the best defrag program for windows XP (they were using them on an office file server that got heavy use). They found not one program that improved performance at all! The programs were not flawed, the idea of defragmenting no longer makes sense with modern a OS. Drives are faster now also.
I couldn't find the magazine article, but here is another...

http://db.tidbits.com/getbits.acgi?tbart=07254

Michael
 
Old 10-11-2004, 06:59 PM   #4
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Original Poster
Rep: Reputation: 30
ah sweet, thanks for explaining it to me guys!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Defragging XFS RedShirt Linux - Software 2 12-31-2005 12:41 PM
a round about way of defragging Linux, and at the same time, creating a system backup mrfixit1951 Linux - General 3 11-08-2005 06:29 AM
defragging? pharmd Linux - Newbie 2 02-27-2005 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration