LinuxQuestions.org
Review your favorite Linux distribution.
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 09-28-2005, 11:37 PM   #1
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Non contiguous files


I was wondering...

Is there a "defrag"-like tool out there?

I recently did a "fsck" and it showed that /home was about 12% non-contiguous. I was reading a little, and it seems as though that is pretty high.

I am aware that supposedly, Linux ext2/3 doesn't need defrag, but the 12% kinda freaks me out.

I am using Fedora Core 4, i386. df returns:
Code:
df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1             20315812    743128  18524044   4% /
/dev/shm                387592         0    387592   0% /dev/shm
/dev/hdb3             19833520    640316  18169464   4% /home
/dev/hdb2             33519436   3909184  27880052  13% /usr
Is there a defrag tool? If there is, what are the implications of said tool?

Last edited by johndoe0028; 09-28-2005 at 11:39 PM.
 
Old 09-29-2005, 12:59 AM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Re: Non contiguous files

Quote:
Originally posted by johndoe0028
[B]I was wondering...

Is there a "defrag"-like tool out there?

I recently did a "fsck" and it showed that /home was about 12% non-contiguous. I was reading a little, and it seems as though that is pretty high.

I am aware that supposedly, Linux ext2/3 doesn't need defrag, but the 12% kinda freaks me out.
You're just using 4% of your /home partition. It's no big deal.
Anyway, double-check that 12% isn't 1.2%
 
Old 09-29-2005, 01:12 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Defragging is not recommended/necessary in Linux. Linux manages files much more intelligently than DOS, err, Windows, which Section 7.3 in this TLDP article describes in more detail.

You've got tons of space in /home and have nothing to worry about. -- J.W.
 
Old 09-29-2005, 04:02 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
There is a company that $sells$ a defrag program for Linux. That said, I'm with the other guys, don't worry about it. After you start putting some files on there it will sort them out. I have been running a long time and fragmenting is not a problem on Linux.

Well, I had to google for it but I found where it is. You owe me and google for this search. $$$$

http://www.oo-software.com/en/produc...nux/index.html

This is a link to the thread.

http://easylinuxguide.com/index.php?...53a6ac10e4a04f

Yowwww is the admin and if I remember correctly, he had a ton of systems.

That's my two cents worth which ain't much considering it is 4:00AM here.

Later

 
Old 09-29-2005, 04:30 AM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I just noticed something about that program. It is still in beta. It was in beta a long time ago. I guess they figured out they were not going to fool anybody into buying their program.

You may also want to read this:

https://www.redhat.com/archives/ext3.../msg00005.html

There appears to be a difference between fragmentation and non-contiguous. You may not be as bad off as you thought anyway. If that is a fairly fresh install, I can't see how it could be fragmented that much. Even windoze takes a while to trash it real good.

Later



Yes, it's 4:30 and I'm still messing with this thread. LOL LOL I'm going to bed.

One more link, then I'm going to bed, I hope.

http://www.redhat.com/advice/ask_shadowman_jul02.html

Last edited by dalek; 09-29-2005 at 04:38 AM.
 
Old 09-29-2005, 08:22 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
Adding my vote: Very little need to worry about defrag on Linux/Unix. Been working on them since 1991 and never saw a performance issue that seemed related to fragmentation.

Having said that though: For large databases there is some tiny value but usually not enough to worry about. If you really have to though one way to defrag would be to backup the filesystem, delete the filesystem, recreate the filesystem then restore the backup. For most defrag products you were always cautioned not to do it for databases anyway so even if you found a tool for Linux you shouldn't do it for databases. The only times I've done what I mentioned above is when I was moving to new storage - never to solve a problem.
 
  


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
non-contiguous level getting higher semi-rapidly PennyroyalFrog Linux - Newbie 1 08-01-2005 03:26 AM
does it matter that part of my file system is > 10% non-contiguous? jaybee Linux - Hardware 1 03-23-2004 07:47 PM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM
non-contiguous erhanaydinoglu Linux - Newbie 2 07-28-2003 05:57 AM
non-contiguous blocks and /home access pteren Linux - General 1 02-26-2003 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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