Hi list.... I'm the newest in this list (I think), and I have a big problem, I'm usin linux 2.2.2-15 with samba 2.0.7, everything is right but there is one thing there I cannot resolve. Look: I have a directory called A, shared as A, and in A there is 210000 (yes two hundred and ten thousand) files, with 115K each one, there is biggers and smallers, but.... And when I try see one of these files I wait 8 minutes. Considerations: No I cannot divide then into subdirectories. Yes it's too much files to ext2fs suport quickly... TKS in advance!!!!
On Thu, Jun 01, 2000 at 01:18:34AM +1000, Igor Morgado wrote:> smallers, but.... And when I try see one of these files I wait 8 minutes.You could try putting all the files on a FAT partition. One advantage of FAT in this case is that it's so simple and should therefore be quick. Permissions shouldn't be a problem because it's just one directory. Set them using the uid and gid options in fstab. -- ------------------ Sarel Botha sjbotha@email.com ------------------ 99 little bugs in the code, 99 bugs in the code, fix one bug, compile it again... 101 little bugs in the code....
You wrote: | I have a directory called A, shared as A, and in A there is 210000 (yes | two hundred and ten thousand) files Oops... Unix directories doesn't scale reasonable to such sizes. If a program is looking for something like frogbnitz.19jan99.fred.32.dat you might consider using LD_PRELOAD to load a library which does allow you to split this into subdirs by transforming the open system call to an open call for frogbnitz/1999/19jan/fred/32.dat. --dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb@canada.sun.com
[Igor Morgado <igor@gvi.com.br>]> I have a directory called A, shared as A, and in A there is 210000 > (yes two hundred and ten thousand) files, with 115K each one, there > is biggers and smallers, but.... And when I try see one of these > files I wait 8 minutes.This is one of the main reasons reiserfs was written. Directories this large are horribly inefficient in most filesystems, ext2fs included. ftp://ftp.suse.com/pub/suse/i386/update/6.3/reiserfs/ Peter