Htree indexes in ext3

HI
Htree indexes are available in ext3 when the dir_index feature is enabled.how to enable / disable this feature ie. dir_index in OEL 5.4?
Regards
Edited by: you on Jan 5, 2010 12:13 PM

I am not an expert on this issue, but tune2fs makes changes at FS level, so I think it will re-scan and re-organize the ENTIRE directories structure ...It makes sense to me that only one kind of algorithm to be used per filesystem...
Basically, Htree is just a "classical" btree ( http://en.wikipedia.org/wiki/B-tree ) which was optimized for filesystems (using hash to group references to multiple leafs and limiting the tree depth to only a couple of levels, according to http://ext2.sourceforge.net/2005-ols/paper-html/node3.html). Now, I couldn't find any thorough explanation of the algorithm, but if you really want more in-depth info, I suggest looking at the source files. I never done this and I guess I never will, cause from the pov of an admin it's kinda useless....

Similar Messages

  • Best methods to speed up and increase performance of Linux?

    I would like this thread to be dedicated to various speed up techniques and performance tweaks for Linux and especially arch.
    K.Mandla offers quite a bit of interesting tweaks in the guide "Howto: Set up Hardy for speed", most of it applies to all linux distros.
    http://kmandla.wordpress.com/2008/05/04 … for-speed/
    If you have come across any interesting information relating to getting faster and better performance from Linux please do not hesitate to post. Thanks.

    PrimoTurbo wrote:
    I would like this thread to be dedicated to various speed up techniques and performance tweaks for Linux and especially arch.
    K.Mandla offers quite a bit of interesting tweaks in the guide "Howto: Set up Hardy for speed", most of it applies to all linux distros.
    http://kmandla.wordpress.com/2008/05/04 … for-speed/
    If you have come across any interesting information relating to getting faster and better performance from Linux please do not hesitate to post. Thanks.
    You will most likely end up wasting a lot of time for very little gain.
    There are no miracle solutions, you either use faster apps or buy faster hardware.
    The tweaks which are truly interesting without major drawbacks usually make their way on a default system, one way or another.
    For example, for directory index on ext3 :
    http://wiki.archlinux.org/index.php/Ext … ystem_Tips : "Note: Directory indexing is activated by default in Archlinux via /etc/mke2fs.conf"
    So if you want an advice, there are areas more interesting to explore, like programming for instance. You might end up having the capability to really improve apps performance, or write your own lighter alternatives.

  • [CLOSED + MOVED]Activate lvm2 on ext3 root partition

    Hello guys,
    I want to move to lvm2 on my arch installation, I haven't used any lvm before. So here's what I did so far:
    1. shrink root partition using gparted to 7 gigabytes
    2. created an lvm partition with size 8 gigabytes
    3. migrated all files from the root partition to the lvm partition (in single user mode: # rsync -axSX / /newpartition)
    4. added lvm2 hook before the filesystems hook in /etc/mkinitcpio.conf according to http://wiki.archlinux.org/index.php/Con … #Using_lvm
    5. regenerated the initramfs image using # sudo mkinitcpio -g /boot/kernel26.img
    5a. added a grub entry with root=/dev/vg/root (I have no idea what the difference is between that and /dev/mapper/vg-root)
    5b. edited /etc/fstab to use /dev/vg/root (again, no idea if /dev/mapper/vg-root would have been more appropriate) as root mountpoint "/"
    6. Rebooted
    7. Unfortunately, I cannot copy-paste the output, but upon reboot, the initramfs loads fine, it seems to recognize to lvm2 volume, but then says "trying to open console - not found" or something like that and then kernel panics on me.
    Any ideas?
    thanks!
    CLOSED+MOVED:Moving this question elsewhere, as this topic seems too advanced for this subgroup.
    Last edited by awayand (2010-01-13 12:44:11)

    I used reiserfs for many years, many partitions, many distros and had no problems. Every now and then I'd use ext3 but there were a few issues. I got a new laptop in January and decided to take the plunge: shrunk vista, small ext2 /boot and the rest set up as an encrypted partition with LVM2, all logical volumes set up as ext4 (except swap!). I've been very impressed with ext4 stability.
    Oh, and step (5) edit fstab to reflect the new file systems, make sure /etc/mtab doesn't exist.

  • Ext3 options?

    are there any good recommended options for ext3 in fstab or do most people just use defaults?

    There's also this:
    http://wiki.archlinux.org/index.php/Ext … ystem_Tips

  • Mounting ext3 root FS as ext4

    Hi,
    I'd like to move from ext3 to ext4 on my HD, but I'm not yet completely sure about that , so I'd like first to try out the "no conversion" upgrade by mounting my existing ext3 filesystem as ext4.
    So I changed "ext3" in my fstab to "ext4", but the system still mounts my ext3 device as ext3. I think the problem resides in klibc and initramfs .
    I tried setting the rootfstype= parameter at boot but I get Kernel Panic.
    The system is upgraded to lastest version.
    Can you help me in getting my ext3 root be mounted as ext4 at boot time?
    Thanks
    Marcello

    Look at the wiki page:
    http://wiki.archlinux.org/index.php/Ext … Converting
    You did not convert the fs, so it is still mounted as ext3, but used in a ext4-compatible mode. You'll need to convert the fs as described below on the same wiki page to take advantage of the ext4 features and improvements.
    Be aware though that there may be some data loss related to some software bugs (such as KDE): http://www.h-online.com/open/Possible-d … ews/112821

  • HAL automount external EXT3 hard rewriteable

    Hi-
    I have a EXT3 USB external HD, and everytime it automounts it is read-only. How do i get it so it mounts rewriteable everytime. Thanks
    dt

    Make sure you have the correct policies. Check out: http://wiki.archlinux.org/index.php/HAL
    Last edited by haxit (2008-08-26 17:54:21)

  • Which to use - Sy-index or sy-tabix ??

    This is what i found out about SY-INDEX and SY-TABIX but which one to use when i want to delete a line of data from an internal table ? I tried both sy-index and sy-tabix and both works fine and returning the expected output for me but which one is better of to use ?
    SY-TABIX :- For Internal Table, Current Line Index
    SY-INDEX :- For Loops, Current Loop Pass
    The below code is where i uses the Delete ..
    LOOP AT dmg.
            CONCATENATE
                   dmg-dmg00
                   dmg-dmg01
                   dmg-dmg02
                   dmg-dmg03
                   dmg-dmg04
                   dmg-dmg07
                   dmg-dmg08
                   dmg-dmg09 INTO tli_down1 SEPARATED BY '*'.
            APPEND tli_down1. CLEAR tli_down1.
            DELETE dmg INDEX sy-index.
            EXIT.
          ENDLOOP.

    Right. Just like what they said upstairs, sy-babix is the best choice.
    One more thing is, if you want to concatenate fields of table dmg and append to tli_down1 on by one. You should not use EXIT after delete dmg.
    In that case ,only one line can be appended into tli_down1 table.
    > The below code is where i uses the Delete ..
    >
    > LOOP AT dmg.
    >         CONCATENATE
    >        dmg-dmg00
    >         dmg-dmg01
    >        dmg-dmg02
    >         dmg-dmg03
    >        dmg-dmg04
    >         dmg-dmg07
    >        dmg-dmg08
    >         dmg-dmg09 INTO tli_down1 SEPARATED BY '*'.
    >   APPEND tli_down1. CLEAR tli_down1.
    >       DELETE dmg INDEX sy-index.
    >   EXIT.
    >     ENDLOOP.

  • Index's on cubes or Aggregates on infoobjects

    Hello,
    Please tell me if it is possible to put index's on cubes; are they automatically added or is this something I put on them?
    I do not understand index's are they like aggregates?
    Need to find info that explains this.
    Thanks for the hlep.
    Newbie

    Indexes are quite different from aggregates.
    An Aggregate is a slice of a cube which helps the data retrival on a faster note when a query is executed on a cube. Basically it is kind of a snapshot of KPI's and Business Indicators (Chars) which will be displayed as the initial query run result.
    Index is a process which is inturn will reduce the query response time. While an object gets activated, the system automatically create primary indexes. Optionaly, you can create additional index called secondary indexes.Before loading data, it is advisable to delete the indexes and insert them back after the loading.
    Indexes act like pointers for quickly geting the Data.When u delete it will delete indexes and when u create it will create the indexes.
    When loading we delete Bcs during loading it has to look for existing Indexes and try to update so it will effect the Data load performence so we delete and create it will take less time when compared to updating the existing ones.
    There is one more issue we have to take care if u r having more than 50 million records this is not a good practice insteah we can delete and create during week end when they r no users.

  • LIKE, LIKEC and Index usage

    I've table that contains about 20 million rows, and I've created index for varchar2(100) column. It works well if I do
    SELECT * FROM MY_TABLE WHERE MY_COL LIKE 'FOO%';
    But if I change query to use LIKEC (to make unicode escaped strings work):
    SELECT * FROM MY_TABLE WHERE MY_COL LIKEC 'FOO%';
    I always get full table scan in explain plan.
    I tried to use NVARCHAR, or index created by TO_NCHAR but I always end up hitting full table scan.
    Should I create index some special way or do something else before I get index working?

    Just a gut feeling : is the database using character semantics or byte semantics?
    My gut feeling, after looking up the documentation, is it should be character semantics.
    BTW: Not posting version info decreases the chance you get an adequate reply.
    Sybrand Bakker
    Senior Oracle DBA

  • Index with "or" clause (BUG still exists?)

    The change log for 2.3.10 mentions "Fixed a bug that caused incorrect query plans to be generated for predicates that used the "or" operator in conjunction with indexes [#15328]."
    But looks like the Bug still exists.
    I am listing the steps to-repro. Let me know if i have missed something (or if the bug needs to be fixed)
    DATA
    dbxml> openContainer test.dbxml
    dbxml> getDocuments
    2 documents found
    dbxml> print
    <node><value>a</value></node>
    <node><value>b</value></node>
    INDEX (just one string equality index on node "value")
    dbxml> listIndexes
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:value
    2 indexes found.
    QUERY
    setVerbose 2 2
    preload test.dbxml
    query 'let $temp := fn:compare("test", "test") = 0
    let $results := for $i in collection("test.dbxml")
    where ($temp or $i/node[value = ("a")])
    return $i
    return <out>{$temp}{$results}</out>'
    When $temp is true i expected the result set to contain both the records, but that was not the case with the index. It works well when there is no index!
    Result WITH INDEX
    dbxml> print
    <out>true<node><value>a</value></node></out>
    Result WITHOUT INDEX
    dbxml> print
    <out>true<node><value>a</value></node><node><value>b</value></node></out>

    Hi Vijay,
    This is a completely different bug, relating to predicate expressions that do not examine nodes. Please try the following patch, to see if it fixes this bug for you:
    --- dbxml-2.3.10-original/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-04-18 10:05:24.000000000 +0100
    +++ dbxml-2.3.10/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-08-08 11:32:10.000000000 +0100
    @@ -1566,11 +1572,12 @@
         else if(name == Or::name) {
              UnionQP *unionOp = new (&memMgr_) UnionQP(&memMgr_);
    +          result.operation = unionOp;
              for(VectorOfASTNodes::iterator i = args.begin(); i != args.end(); ++i) {
                   PathResult ret = generate(*i, ids);
                   unionOp->addArg(ret.operation);
    +               if(ret.operation == 0) result.operation = 0;
    -          result.operation = unionOp;
         // These operators use the presence of the node arguments, not their valueJohn

  • INDEX vs TABIX

    Hi,
    Can some body explain the CLEAR difference between Sy-index and Sy-tabix. And one or two small examples. I am little bit confused.
    Thanx.

    Hi,
    SY-INDEX
    In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
    SY-TABIX
    Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.
    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
    LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
    READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
    SEARCH <itab> FOR sets SY-TABIX to the index of the table line in which the search string is found.
    regards,
    madhu

  • What is" LINE-COL2 = SY-INDEX ** 2."

    can u explain what is '' ** "
    FIELD-SYMBOLS <FS> LIKE LINE OF ITAB.
    DO 4 TIMES.
      LINE-COL1 = SY-INDEX.
      LINE-COL2 = SY-INDEX ** 2.  "what this will do
      APPEND LINE TO ITAB.
    ENDDO.

    Hi sunil,
    1 **   means "To the power of"
    2. eg. 5 ** 2  =  25
       (5 To the power of 2 = 25)
    regards,
    amit m.

  • Regarding sy-index

    Hi all,
    I am trying to get loop count by using sy-index.
    But I am not able get exact expected out put.
    I am gettig all zeros instead of loop number.
    I am sending my code here.
    DATA: lv_diff(10) TYPE c,
            lv_erdat1 LIKE sy-datum,
            lv_erdat2 LIKE sy-datum,
            i(15) TYPE c VALUE '1'.
      SORT t_ordno BY aufnr.
      LOOP AT t_ordno  INTO st_ordno.
        READ TABLE t_ordno INTO st_ordno INDEX i.
        lv_erdat1 =  st_ordno-erdat.
        i = i + 1.
        READ TABLE t_ordno INTO st_ordno INDEX i.
        lv_erdat2 = st_ordno-erdat.
        i = i + 1.
        CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
             EXPORTING
                  i_datum_bis = lv_erdat2
                  i_datum_von = lv_erdat1
             IMPORTING
                  e_tage      = lv_diff.
        WRITE:/ lv_diff,
              50 <u><b>sy-index.</b></u>
        CLEAR: lv_erdat1,lv_erdat2,lv_diff.

    use this code
    DATA: lv_diff(10) TYPE c      ,
          lv_erdat1 LIKE sy-datum ,
          lv_erdat2 LIKE sy-datum ,
          i(15) TYPE c VALUE '1'  ,
          l_tabix type syst-tabix .
    SORT t_ordno BY aufnr.
    LOOP AT t_ordno INTO st_ordno.
      l_tabix = sy-tabix .
      READ TABLE t_ordno INTO st_ordno INDEX i.
      lv_erdat1 = st_ordno-erdat.
      i = i + 1.
      READ TABLE t_ordno INTO st_ordno INDEX i.
      lv_erdat2 = st_ordno-erdat.
      i = i + 1.
      CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
           EXPORTING
                i_datum_bis = lv_erdat2
                i_datum_von = lv_erdat1
           IMPORTING
                e_tage      = lv_diff.
      WRITE:/ lv_diff,
           50 l_tabix.
      CLEAR: lv_erdat1,lv_erdat2,lv_diff.

  • ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS

    Dear Guru's,
                     I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.
    LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.
    Hope to get reply soon.
    Regards,
    Himanshu Rangappa

    Hi,
    There is no system Fields for it.
    But your requirement can be done with 'AT NEW' and 'AT END' statement.
    Refer this sample example,
    loop at otab.
        at new module.
          move otab-module to otab2-module.
        ENDAT.
          at END OF effort.
          sum.               "Do your calculations here
          move otab-count to otab2-count.
          append otab2.
        endat.
      endloop.

  • What is the diffrence betweensy-tabix and sy-index

    hi
    can any one suggest me
    what is the diffrence betweensy-tabix and sy-index
    Thanks & Regards
    kalyan.

    Hi Kalyan,
    This question has been answered many times on SCN. Please make a search before posting a thread.
    Read the Rules of Engagement.
    Happy Posting.
    Regards,
    Chandra Sekhar

Maybe you are looking for

  • IPhone not recognized in iTunes 3GS

    Hello, I have followed the suggested fixes on the apple support site (Remove and Reinstall) 2 times and my iPhone still does not show up in iTunes. I did connect it to my wifes computer and it show up on her iTunes. Does anyone have the fix for this?

  • Added music to an Ipod Shuffle

    Has anyone else noticed that when you drag a bunch of songs to an Ipod, that the Ipod will reflect it as many times as it was copied... Although it doesn't appear to effect the total disk space. Is there an option to suppress or prevent duplicates? T

  • Using a DLL or .so in a JNLP-launched applet

    I have a 3rd-party JAR which includes code that requires a DLL (or .so on Linux) to work and I need to use it in a JNLP-launched applet. What's required with Java 6 Update 16? 1. I believe I need to get the DLL inside its own JAR and mark it as a nat

  • Admin Server service doesnt start

    Hi,I have installed weblogic 8.1.3.When I try to start admin server service it is giving "Error 1067 : The process terminated unexpectedly" Please reply

  • Acct assignment po's to cost center

    Hello friends i need to know if a PO that is acct assigned to costcenter and there is no material master on the po it is only text item. will i be able to do three way compariosn for invoice verification. also please tell me if we can do gr for the t