kernel 2.2 vs. 2.4 - large # of files
I have noticed that with kernel 2.2.x on a RH 6.2 OS, if a directory contains 20,000 files or more, a directory listing takes 1-2 minutes to complete, commands such as tar say too many files, and the system deals with the files in the directory slowly. My question is:
- Will upgrading the kernel to 2.4.x overcome this limitation and speed up commands and the handling of directories with 1000's of files? Or is this because of the ext2 filesystem that the directories bog down?
Just trying to figure out a way to improve performance without having to upgrade the entire OS. Thanks.