LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-10-2007, 12:28 PM   #16
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55

OK once again just for fun
"Stop thinking like windows"
There is not only ONE filesystem for linux. There is a common Filesystem mechanism called VFS but it doesn't do the real allocation, its just a pointer array.

So which filesystem?

Because there are definetly some linux filesystems that suffer from fragmentation, the most known being jffs which is used a lot in embeded environment.

Last edited by nx5000; 01-10-2007 at 12:29 PM.
 
Old 01-10-2007, 05:56 PM   #17
shorty943
Member
 
Registered: Dec 2006
Location: Tailem Bend. South Australia
Distribution: Mandriva 2006
Posts: 124

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by nx5000
OK once again just for fun
"Stop thinking like windows"
There is not only ONE filesystem for linux. There is a common Filesystem mechanism called VFS but it doesn't do the real allocation, its just a pointer array.

So which filesystem?

Because there are definetly some linux filesystems that suffer from fragmentation, the most known being jffs which is used a lot in embeded environment.

A very big thank you nx5000, for your support. Just for the fun of it. Not funny how some folk are difficult to inform.

There are now 2 people in this forum, who have found a new friend in the world at large.

Shorty943.
 
Old 01-10-2007, 07:06 PM   #18
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 32
HGeneAnthony, the problem is that you haven't clearly stated your question. I will attempt to clearify it, then answer it.

"Why does Linux not become badly fragmented like Microsoft systems?"
Because Linux places the files on the disk intelligently, instead of simply placing them in the next free spot. It leaves some 'padding' at the ends of many files, incase you write more to that file later. This allows the files remain in one piece.
 
Old 01-11-2007, 12:45 PM   #19
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Each filesystem type uses its own file-placement algorithm. FAT had a VERY simple algorithm: fill each hole in the partition as it went along. This, unfortunately, led to high fragmentation. NTFS does a little better, but still has fragmentation issues.

Linux filesystems reduce fragmentation. They begin by overallocating (when space is available) and reserving a few blocks past the end of a file for future expansion. They also don't usually allocate blocks on disk when a file is opened for writing, but rather when it is closed and the file's size is known. (Exceptions: if the disk is mounted with the 'sync' option or if the sync() system call is used to force flushing buffers to disk)

Some of the filesystems will reallocate fragmented files on their next use if space is available, but not all, and not always. Thus, if fragmentation has occured, it will sometimes remain behind.

If you don't run your disk at >90% full, I would not have any concern about fragmentation.
 
Old 01-11-2007, 06:48 PM   #20
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 32
After searching sourceforge.net and freshmeat.net, I found the 'shake' defragmenter. Of Linux defragmenters, it appears to be the only one that's maintained.
http://freshmeat.net/redir/shake/649...homepage/shake
 
Old 01-12-2007, 11:07 PM   #21
tomtechguy
LQ Newbie
 
Registered: Jan 2007
Distribution: Arch and Slackware
Posts: 10

Rep: Reputation: 0
A quick Googleing on ext3 and fragmentation.

http://www.itworld.com/Comp/3380/nls...929/index.html
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
any know a free or very cheap Point of Sales system for Linux? TravisOSF Linux - Software 3 08-25-2006 09:01 PM
Mandriva Linux 2006 Free BOOT FAILED, system hang after LILO menu (WinXP&Linux) js703 Mandriva 1 04-13-2006 12:46 PM
where can i find free tutorials for learning perl in linux for system adminstration syedabdul Programming 2 03-04-2006 04:23 AM
Fragmented Hd fredfmah Linux - Newbie 6 10-10-2003 03:00 PM
Three-boot system Win XP - Linux RH - Free BSD does not work tuanito *BSD 6 02-24-2003 04:16 AM

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

All times are GMT -5. The time now is 05:00 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