[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Ext3 indexed directory extension (doesn't go).



You should able to compare the hash version vs non hash version by
using the "-o index" flag mounting a new ext3 file system.

First mount ext3 without "-o index", create a lot of file, delete it,
record the time.

Then mount ext3 with "-o index", do the same thing. You should able
to see the different.

Well. I use debugfs to see a directory is hash or not.
Using the dump command to dump the directory file to a normal file.
If a directory is hashed, you can see some binary block without
filename in it.



On Fri, 23 Aug 2002, Carles Xavier Munyoz Baldó wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> I have applied the patch you indicated me to my kernel. Compiled it with 
> support for the ext3 htree indexed directory and boot the computer with the 
> new kernel.
> 
> I have build a very simple script to test the speed differences between a non 
> indexed ext3 directory and an indexed one. At the end of this email is the 
> script source code.
> 
> How you told to me, when I create a new directory it will be by default 
> indexed if superates the block size.
> I have run the script to create 10000 files over a newly created directory 
> (indexed directory) and over an existing directory (no indexed directory).
> 
> Indexed directory results:
> Fri Aug 23 13:27:23 CEST 2002
> real    1m17.092s
> user    0m23.260s
> sys     0m52.250s
> Fri Aug 23 13:28:40 CEST 2002
> 
> No indexed directory results
> Fri Aug 23 13:29:24 CEST 2002
> real    1m18.658s
> user    0m23.370s
> sys     0m48.200s
> Fri Aug 23 13:30:43 CEST 2002
> 
> But this is not the expected result. The indexed directory must be more quick.
> The output of the lsattr command over the newly created directory is:
> - --------------- ./test
> No flag indicating that this is an indexed directory.
> 
> I believe that I'm doing something bad.
> How may I know if the kernel I have build really has htree support ?
> What am I doing bad ?
> 
> 
> mk_file_test.sh
> ##########################################
> if [ -z "$1" ]; then
>   echo "USAGE $0 last_directory_number"
>   exit 0
> fi
> 
> N=0
> date
> time while [ 1 ]; do
>   > $N
>   if [ "$N" = "$1" ]; then
>     break
>   fi
>   N=`expr $N + 1`
> done
> echo
> date
> ##########################################
> 
> Greetings.
> - ---
> Carles Xavier Munyoz Baldó
> carles descom es
> Descom Consulting
> Telf: +34 965861024
> Fax: +34 965861024
> http://www.descom.es/
> - ---
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8
> 
> iQA/AwUBPWYf5jvYAf7VZNaaEQL+EwCg6el6Ljy0WYbL0YU0T5nrzqmTVYcAmwVE
> cND3oRZ18nUP3QrRK1yh5nNW
> =vDIm
> -----END PGP SIGNATURE-----
> 
> 
> 
> _______________________________________________
> Ext3-users mailing list
> Ext3-users redhat com
> https://listman.redhat.com/mailman/listinfo/ext3-users
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]