From: "Dan Sheffner" Subject: reiserfs max file test Date: Mon, 10 Apr 2006 13:34:45 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10149_1408206.1144694085828" Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com List-Id: To: reiserfs-list@namesys.com ------=_Part_10149_1408206.1144694085828 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello All, I'm trying to find out the number of files that reiserfs can support in a single folder. I know that you web site says about 1.2 million files without collision, but I have written a small program to create files in order and so far I have been able to create about 10 million files in one directory. Can you explain collision more? Here is the program I used belo= w to test my theory. I echo out hello 10 times to each file to give some size. My linux distro is GENTOO 2006.0 version and I'm running kernel 2.16.15 #!/bin/bash LIMIT=3D10000000 # Upper limit of 10 million files echo echo "creating $LIMIT files for test" a=3D0 while [ $a -le "$LIMIT" ] do echo $a a=3D$(($a+1)) touch /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt echo "HELLO" >> /home/thesheff17/installServer/file/file$a.txt done Below is the find command that tells me how many files are in the directory. production / # find /home/thesheff17/installServer/file/ \! -type d | wc -l 10000001 production / # ------=_Part_10149_1408206.1144694085828 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello All,
 
I'm trying to find out the number of files that reiserfs can support in a single folder.  I know that you web site says about 1.2 million files without collision, but I have written a small program to create files in order and so far I have been able to create about 10 million files in one directory.  Can you explain collision more? = Here is the program I used below to test my theory.  I echo out hello 10 times to each file to give some size. My linux distro is GENTOO 2006.0 version and I'm running kernel 2.16.15
 
 
#!/bin/bash

LIMIT=3D10000000 # Upper limit of 10 million files=  
echo
echo "creating $LIMIT files for test"
a=3D= 0

while [ $a -le "$LIMIT" ]
do
echo $a
a=3D$(= ($a+1))=20
touch /home/thesheff17/installServer/file/file$a.txt
echo "HEL= LO" >> /home/thesheff17/installServer/file/file$a.txt
echo &= quot;HELLO" >> /home/thesheff17/installServer/file/file$a.txt=20
echo "HELLO" >> /home/thesheff17/installServer/file/fil= e$a.txt
echo "HELLO" >> /home/thesheff17/installServer/= file/file$a.txt
echo "HELLO" >> /home/thesheff17/instal= lServer/file/file$a.txt=20
echo "HELLO" >> /home/thesheff17/installServer/file/fil= e$a.txt
echo "HELLO" >> /home/thesheff17/installServer/= file/file$a.txt
echo "HELLO" >> /home/thesheff17/instal= lServer/file/file$a.txt=20
echo "HELLO" >> /home/thesheff17/installServer/file/fil= e$a.txt
echo "HELLO" >> /home/thesheff17/installServer/= file/file$a.txt
echo "HELLO" >> /home/thesheff17/instal= lServer/file/file$a.txt=20
done
 
 
Below is the find command that tells me how many files are in the dire= ctory. 
 
production / # find /home/thesheff17/installServer
/file/ \! -type d | = wc -l
10000001
production / #
------=_Part_10149_1408206.1144694085828--