LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2011, 06:55 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Question File fragmentation Under ext filesystem


I heard that the ext file system does not causes file fragmentation. Could some one explain how this is achieved. And how come a file does not divides in to fragments as compared to Windows based Filesystems.
 
Old 08-11-2011, 07:04 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Every fs suffers fragmentation to a greater or lesser degree. Some of them do have better allocation policies, and that's not only a thing of the fs you pick, but about how the concrete implementation works in any given OS. Linux is very fs-oriented so it's no wonder that fs-drivers get more love and attention than in other OSes. In any case, that's just part of the issue.

What really makes a difference -from my point of view- are the i/o schedulers. I/O schedulers group and reorder all the operations so the heads don't have to go dancing around forward and backwards over the disk surface. So, the file might be utterly fragmented, but the i/o operations are done always sequentially, regardless. This is why a good i/o scheduler makes fragmentation pointless, unless there's any specific filesystem issue (i.e. reiserfs 3.x suffers greatly from fragmentation) or the fs is completely full in which case fragmentation can get really high.

ext4 is even better than ext3 at handling this (via extents) and is planned to include an on-line defragmenter at some point in the future. I have no idea what the current status of this is though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Commit interval ext filesystem vs dirty_expire_centisecs SvenVD Linux - Kernel 1 03-11-2011 05:25 PM
How to see ext 3 filesystem on WinXP? M$ISBS Linux - Software 15 02-24-2011 07:20 AM
ext filesystem limits? BeacoN Linux - Newbie 6 07-01-2009 09:44 AM
EXT-fs error (device hda3) in start_transaction: Readonly filesystem kiwibird Linux - Hardware 2 10-21-2005 11:15 AM
ext2 filesystem fragmentation, whats the deal? bobthebat Linux - General 3 08-20-2001 03:35 PM


All times are GMT -5. The time now is 11:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration