Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-01-2009, 12:55 AM   #31
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115

Can definitely give this a shot, it should put the files sequentially on the drive in that partition. Though, I'm still wondering if there is a process for Linux that will watch the file system access and optimize it based on that?
I am not aware of any such thing in Linux.
Old 10-01-2009, 09:19 AM   #32
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Originally Posted by jiml8 View Post
I also wonder what would happen if you were to copy the entire contents of one partition to another drive (not an image...use the cp command...), then wipe and reformat the original partition, then copy all the files back into place. This specifically would permit the file system to reorganize the drive according to whatever scheme it considers optimum.

I have done this in the past, usually when enlarging a system partition or changing drives, and I have not noticed any particular performance improvement from doing it. However, as I say, I also have not noticed any deterioration over time, until the drive or partition is nearly full anyway.
Actually, this is one way of crudely "defragmenting" or rather "reorganizing" things on a filesystem that doesn't support such functions.

For example on jfs you can do this:

umount /dev/hdc1
dd bs=4k if=/dev/hdc1 of=/dev/hdj1
jfs_fsck /dev/hdj1
mount -o ro /dev/hdj1 /fs/hdj1
jfs_mkfs /dev/hdc1
mount -o rw /dev/hdc1 /fs/hdc1
(cd /fs/hdj1 && tar -cS -b8 --one -f - .) | (cd /fs/hdc1 && tar -xS -b8 -p -f -)
umount /dev/hdj1
But, if you replace the jfs specific commands, this should work for any filesystem.

The only thing that comes close to what the OP might want is what I mentioned earlier, "xfs_fsr" which works only with xfs filesystem.

If you really want something like the proprietary, closely guarded secret I-FAAST, e-mail them and tell them to port it to Linux (I doubt they will answer). Or, if you know exactly how it works, get a team together and try to implement it ... but in the US you may get sued for software patent infringement if they have one (which I'm sure they do).


file, linux, optimization

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
LXer: Post-Link Optimization for Linux on POWER LXer Syndicated Linux News 0 09-12-2008 07:10 AM
LXer: Linux Performance Optimization LXer Syndicated Linux News 0 07-07-2007 12:01 PM
Linux Game Optimization RpgActioN Linux - Games 8 06-22-2007 07:33 AM
imagemagick + file optimization dajomu Linux - Software 1 07-15-2006 02:49 AM
linux or unix kernel optimization guide, anyone? grupoapunte Linux - General 1 06-21-2005 10:35 PM

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

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