I have a web-site that I'm checking for performance issues and bugs, and i came across a caching code that caches thousands of files into one single directory.
I understand that this is not good and that I/O will degrade and i also heard about potential inode problem.
And i know how to fix the caching code, but the thing is that at this point fixing would be very expensive.
The question: What is the worst case scenario if i live it like it is right now? How will happen to the website? (right now this one single cache directory has 400K files)
I'm new to Ubuntu. And i understand that this is might be an off-topic. But i think this is a "system" question and it does not belong to the 'programming' part of the stackoverflow.
UPDATE: The file system is UFS