Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 28th, 2005   #1
Lovechild
Day Old Decaf
 
Lovechild's Avatar
 
Join Date: Oct 2004
Location: Århus, Denmark
Beans: 69
Dapper Drake Testing/
Send a message via ICQ to Lovechild Send a message via AIM to Lovechild Send a message via MSN to Lovechild Send a message via Skype™ to Lovechild
HOW-TO: Increase performance on ext3 with dir_index

dir_index is a hashed b-tree implementation for ext3, it's riskfree (Fedora has shipped several releases defaulting to it without incident), and adds a bit of performance to your filesystem.

to update an existing partitions:
0) open a terminal or enter cli
1) sudo tune2fs -O dir_index /dev/hdXY (where X indicates device, normally a and Y indicates partition, normally 1)
2a) sudo updatedb
alternatively, unmount and do
2b) sudo e2fsck -D /dev/hdXY

Wasn't that easy?
Lovechild is offline   Reply With Quote
Old May 28th, 2005   #2
Kyral
May the Ubuntu Be With You!
 
Kyral's Avatar
 
Join Date: May 2005
Location: Potsdam, NY
Beans: 1,646
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to Kyral
Re: HOW-TO: Increase performance on ext3 with dir_index

Cool. I don't knwo if it WORKED, but it hasn't broken my system yet (Then again, I don't know how to tell if it worked )
__________________
ArchLinux 0.8.0
Associate Member of the Free Software Foundation
Kyral is offline   Reply With Quote
Old May 28th, 2005   #3
henriquemaia
Fresh Brewed Ubuntu
 
henriquemaia's Avatar
 
Join Date: Apr 2005
Location: Berlin, Germany
Beans: 1,213
Send a message via ICQ to henriquemaia Send a message via AIM to henriquemaia Send a message via Skype™ to henriquemaia
Re: HOW-TO: Increase performance on ext3 with dir_index

Is there a way to measure the perfomance gain?

Thanks a lot, though.
henriquemaia is offline   Reply With Quote
Old May 28th, 2005   #4
Moobert
Just Give Me the Beans!
 
Join Date: Nov 2004
Beans: 69
Ubuntu 7.04 Feisty Fawn
Re: HOW-TO: Increase performance on ext3 with dir_index

Quote:
Originally Posted by henriquemaia
Is there a way to measure the perfomance gain?

Thanks a lot, though.
sudo hdparm -Tt /dev/hdX

may do the trick
Moobert is offline   Reply With Quote
Old May 28th, 2005   #5
Lovechild
Day Old Decaf
 
Lovechild's Avatar
 
Join Date: Oct 2004
Location: Århus, Denmark
Beans: 69
Dapper Drake Testing/
Send a message via ICQ to Lovechild Send a message via AIM to Lovechild Send a message via MSN to Lovechild Send a message via Skype™ to Lovechild
Re: HOW-TO: Increase performance on ext3 with dir_index

First, I'm sorry I forgot to mention

sudo tune2fs -l /dev/hdXY | grep dir_index

will show if the given partition has dir_index enabled.

Secondly, to benchmark I would use bonnie++

-edit-

I filed a bug with Ubuntu to have dir_index considered as the new default for Breezy, let's see what they have to say - bug 11284 for those interested.
Lovechild is offline   Reply With Quote
Old May 29th, 2005   #6
dresnu
Gee! These Aren't Roasted!
 
dresnu's Avatar
 
Join Date: Apr 2005
My beans are hidden!
Kubuntu 9.04 Jaunty Jackalope
Re: HOW-TO: Increase performance on ext3 with dir_index

I get a segmentation fault when doing sudo tune2fs -O dir_index /dev/hdXY...
dresnu is offline   Reply With Quote
Old May 29th, 2005   #7
dresnu
Gee! These Aren't Roasted!
 
dresnu's Avatar
 
Join Date: Apr 2005
My beans are hidden!
Kubuntu 9.04 Jaunty Jackalope
Re: HOW-TO: Increase performance on ext3 with dir_index

ow! and yes I changed the X and Y to the right values
lol
dresnu is offline   Reply With Quote
Old June 2nd, 2006   #8
Hikaru79
Gee! These Aren't Roasted!
 
Hikaru79's Avatar
 
Join Date: Dec 2004
Location: Waterloo Ontario (Canada)
Beans: 171
Kubuntu 5.10
Send a message via AIM to Hikaru79 Send a message via MSN to Hikaru79 Send a message via Yahoo to Hikaru79
Re: HOW-TO: Increase performance on ext3 with dir_index

Is the tune2fs part supposed to take only a fraction of a second to complete? I was expecting something more drawn-out
__________________
I seem to have discovered a truly remarkable proof for Fermat's Last Theorem, which this siggie is too small to contain.
Hikaru79 is offline   Reply With Quote
Old April 23rd, 2007   #9
Schuttwegraeumer
5 Cups of Ubuntu
 
Join Date: Apr 2007
Beans: 22
Ubuntu 7.04 Feisty Fawn
Re: HOW-TO: Increase performance on ext3 with dir_index

Quote:
Originally Posted by Lovechild View Post
dir_index is a hashed b-tree implementation for ext3, it's riskfree (Fedora has shipped several releases defaulting to it without incident), and adds a bit of performance to your filesystem.

to update an existing partitions:
0) open a terminal or enter cli
1) sudo tune2fs -O dir_index /dev/hdXY (where X indicates device, normally a and Y indicates partition, normally 1)
2a) sudo updatedb
alternatively, unmount and do
2b) sudo e2fsck -D /dev/hdXY

Wasn't that easy?
How can I acitivate B*trees on a ext3 on a LVM Set?
This index is not setable in the aditional settings for the FS in the alternate install programm.

Can I do point 1 and 2a without unmounting?
2b is a alternative for what? Only the ubdatedb or point 1 and 2b?
Schuttwegraeumer is offline   Reply With Quote
Old May 13th, 2007   #10
Schuttwegraeumer
5 Cups of Ubuntu
 
Join Date: Apr 2007
Beans: 22
Ubuntu 7.04 Feisty Fawn
Re: HOW-TO: Increase performance on ext3 with dir_index

The -D option in the e2fsck command is in the man page of Ubuntu, but not in the man page of my Knoppix from 2007-01-04.
Since which version is the optimisation includet?

Last edited by Schuttwegraeumer; May 15th, 2007 at 09:02 PM..
Schuttwegraeumer is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 11:13 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry