LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Defragmenting

[ILUG] Defragmenting

Jeroen Massar jeroen at unfix.org
Sat Jun 9 17:17:58 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeroen Massar wrote:
> Lisa Muir wrote:
>> Just done a quick google to see if I can find a tool for defragmenting
>> a disk under linux, but all hits quickly refer to windows.
> 
>> Can anyone recommend such a tool?
> 
> Recommend no as Ext2/3 _should_ automatically defrag itself, so I
> actually never bothered doing one :)

Replying to self :) [who invented google, lets shoot them!]

I found:
http://www2.lut.fi/~ilonen/ext3_fragmentation.html
and:
http://www.informatik.uni-frankfurt.de/~loizides/reiserfs/fibmap.html

These tools can tell you how much fragmentation is happening on your disk.

Short test:
8<----------------------------------------------------------------
... see below ...
Non-contiguous:
  Files 63 (34631.0MB, avg. 562891.60kB per file), blocks 171345,
average block 206.96kB
Contiguous:
  Files 12 (0.1MB, avg. 8.73kB per file)
- ---------------------------------------------------------------->8

So that kind of empirically proves that ext3 *DOES* fragment.

# apt-get install defrag

defrag here I come, unfortunately it means you have to turn the disk
offline... (umounted)

Greets,
 Jeroen

- --
 64826 3832.6MB    60.54kB a
 34137 2766.2MB    82.98kB b
 17071  831.3MB    49.86kB c
 12442  686.5MB    56.50kB d
  8706  779.3MB    91.66kB e
  7299 4280.4MB   600.51kB f
  5238  699.5MB   136.74kB g
  3247 4480.8MB  1413.09kB h
  3110 4403.9MB  1450.03kB i
  2071  490.4MB   242.47kB j
  1691  626.5MB   379.40kB k
  1533  736.1MB   491.70kB l
  1396  616.3MB   452.05kB m
  1395  698.7MB   512.85kB o

eek 60k pieces... not good!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Jeroen Massar / http://unfix.org/~jeroen/

iHUEARECADUFAkZq0rYuFIAAAAAAFQAQcGthLWFkZHJlc3NAZ251cGcub3JnamVy
b2VuQHVuZml4Lm9yZwAKCRApqihSMz58I53kAKCgMu8PloaUnbR7y6D1slIgQbb8
AgCcDnClQQ/1Lo4zBJy4dCkwTmubNJw=
=MIUm
-----END PGP SIGNATURE-----



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell