Directory with large number of files

2010-03-10 Thread Janos Dohanics
I have a directory with over 180,000 files in 4 subdirectories. Over 170,000 of the files are in one of the subdirectories. The files are image files, mostly 50K. The machine has 2 GB RAM. What would be a reasonable setting for vfs.ufs.dirhash_maxmem? Is there a disadvantage to setting

Re: Directory with large number of files

2010-03-10 Thread Nathan Vidican
In some passed projects of mine where large quantities of image files had to be referenced I used a hierarchical tree structure based on the filename. For example: instead of '/disk/images/0018391.jpg' I used '/disk/images/1/8/3/91.jpg' instead of '/disk/images/abcdsomename.jpg' I used