Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: HOW-TO: Increase performance on ext3 with dir_index

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Århus, Denmark
    Beans
    70
    Distro
    Dapper Drake Testing/

    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?

  2. #2
    Join Date
    May 2005
    Location
    Potsdam, NY
    Beans
    1,310
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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

  3. #3
    Join Date
    Apr 2005
    Location
    Sintra, Portugal
    Beans
    835

    Re: HOW-TO: Increase performance on ext3 with dir_index

    Is there a way to measure the perfomance gain?

    Thanks a lot, though.

  4. #4
    Join Date
    Nov 2004
    Beans
    68
    Distro
    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

  5. #5
    Join Date
    Oct 2004
    Location
    Århus, Denmark
    Beans
    70
    Distro
    Dapper Drake Testing/

    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.

  6. #6
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW-TO: Increase performance on ext3 with dir_index

    I get a segmentation fault when doing sudo tune2fs -O dir_index /dev/hdXY...

  7. #7
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW-TO: Increase performance on ext3 with dir_index

    ow! and yes I changed the X and Y to the right values
    lol

  8. #8
    Join Date
    Dec 2004
    Location
    Waterloo Ontario (Canada)
    Beans
    159
    Distro
    Kubuntu 5.10

    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.

  9. #9
    Join Date
    Apr 2007
    Beans
    22
    Distro
    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?

  10. #10
    Join Date
    Apr 2007
    Beans
    22
    Distro
    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 16th, 2007 at 02:02 AM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •