Ext3 indexed directory extension (doesn't go).

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

 



-----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-----





[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux