-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Thursday 2008-01-03 at 17:48 -0500, Greg Freemyer wrote:

On Jan 3, 2008 2:04 PM, Carlos E. R. <> wrote:

Reiserfs will be very happy with millions of files in a single directory.
You can try it yourself, creating and deleting such files with a script
and timing the operation: I did so myself to verify.

Like:

   $DONDE=/Somewhere
   time for X in `seq 1 1000`;
     do
       for Y in `seq 1 1000`;
       do
         dd if=/dev/zero   of=$DONDE/Zero_$X"_"$Y bs=1k count=1 2> /dev/null
       done
       echo $X thousands
     done

    (You can add timings in there)

Testing now on a native reiser.  I'll play with samba tomorrow.

FYI: I guess that extra $ was to make sure I knew what I was doing.  I
copied the above a little to literally the first time and created a
few hundred /Zero* files.  Easy enough to delete.  Glad you gave them
a nice easy to identify name.

:-)

I should have written some comments, I guess O:-)

$DONDE is a variable; the first line defined it to be "/Somewhere". The idea was to change it there to an appropriate path for your system. I also deleted my timing commands, which I thought might be confusing.


Another detail: in linux, the system keeps tracks of access time (atime), which means something has to written each time the directory or file is accessed, slowing the throughput. I always disable atime in the mount command, I have no use for it and the disk is faster; for instance:

LABEL=160_xtr   /xtr  reiserfs  acl,user_xattr,noatime,nodiratime  1 2


- -- Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHfZdstTMYHG2NR9URAn3cAJ9XB+Cwzb+EuyCE1+Q1+QXQ5mtrgwCgiwS9
Y+sEq721YVwLEguMJUVtMoc=
=EFUN
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to