Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

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

  1. #11
    Join Date
    Oct 2004
    Beans
    87

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

    Of course it works

    Btw dir_index do not increase speed of continous reading, but reading many files in one directory (e.g. thousands of e-mails in my mail home directory).

  2. #12
    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?

  3. #13
    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.

  4. #14
    Join Date
    Oct 2004
    Beans
    104

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

    Be careful on non-x86 platforms, though. I have a ppc machine here that corrupts the index right away. I've yet to find the real problem, but it's damned annoying.

  5. #15
    Join Date
    Mar 2006
    Beans
    95

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

    i'm pretty sure this doesn't work.

    [02:16:33 AM wasabi ~]$ sudo hdparm -Tt /dev/sda1

    /dev/sda1:
    Timing cached reads: 1336 MB in 2.00 seconds = 668.05 MB/sec
    Timing buffered disk reads: 62 MB in 3.02 seconds = 20.54 MB/sec
    THIS IS AFTER
    [02:16:33 AM wasabi ~]$ sudo tune2fs -O dir_index /dev/sda1
    tune2fs 1.40-WIP (14-Nov-2006)
    [02:16:33 AM wasabi ~]$ sudo updatedb
    [02:16:33 AM wasabi ~]$ sudo hdparm -Tt /dev/sda1

    /dev/sda1:
    Timing cached reads: 1182 MB in 2.00 seconds = 591.41 MB/sec
    Timing buffered disk reads: 62 MB in 3.01 seconds = 20.60 MB/sec
    [02:16:33 AM wasabi ~]$ sudo hdparm -Tt /dev/sda1


  6. #16
    Join Date
    Aug 2008
    Beans
    1

    Exclamation HINT: 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?
    No, that isnt easy, because is it wrong.
    the Step "2a" has nothing to do with the filesystem updatedb is not for the filesystem it is for 'locate'

    The only way that work is 2b!!!
    but you should write e2fsck -fD /dev/hdXY
    you should check the changes in your filesystem...

    --

  7. #17
    Join Date
    Sep 2008
    Beans
    6
    Distro
    Ubuntu 8.04 Hardy Heron

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

    Quote Originally Posted by foureight84 View Post
    i'm pretty sure this doesn't work.



    THIS IS AFTER
    Before expecting some magic from dir_index, it is good to find out what this thing actually does. dir_index enabled decreases ONLY time spent to find a file with particular name in a directory. It DOES NOT speed up reading from a file in any way.

Page 2 of 2 FirstFirst 12

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
  •