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

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

  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
    Jun 2005
    Beans
    314

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

    Hey, this still works great in Breezy

  9. #9
    Join Date
    Apr 2006
    Beans
    4

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

    did this in breazy and ended up unable to hibernate
    could somebody help me with this cuz I realy really need hibernate.
    But it did speed up my computer
    Last edited by bishwo; April 16th, 2006 at 04:18 PM.

  10. #10
    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.

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
  •