Messages in this thread | | | From | Hans Reiser <> | Date | Tue, 29 Jun 1999 23:49:49 +0000 (/etc/localtime) | Subject | Re: how many files per dir possible? |
| |
The program loic creates argv[1] (500,000) files in a directory. We expect to improve these numbers by an order of magnitude, and by revising the program loic we can improve it by more than a factor of two already, but here I use the unsophisticated version of the program.
[root@yoda /testfs]# cd bigdir time /root/benchmarks/loic 500000 6.32user 225.91system 9:28.89elapsed 40%CPU (0avgtext+0avgdata 0maxresident)k [root@yoda bigdir]# cd .. [root@yoda /testfs]# time rm -rf bigdir 2.70user 176.97system 10:57.14elapsed 27%CPU (0avgtext+0avgdata 0maxresident)k
Hans
Khimenko Victor writes: > In <3778BE25.66D34BEF@fl.priv.at> Friedrich Lobenstock (fl@fl.priv.at) wrote: > > Excuse me, but I couldn't find anything about how many files a > > directory can hold. I only found something about slowing down > > if there are a lot of files. > > Ok. I had run-away script and thus I had directory with 500000 files in it. > Just ls there will work few MINUTES ! And rm -rf worked few HOURS ! You do not > want thousands of files in one dir on current ext2fs, believe me ... > > P.S. What about reiserfs, BTW ? > > > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |