Mark Kerzner wrote:
But it would seem then that making a balanced directory tree would not help
either - because there would be another binary search, correct? I assume,
either way it would be as fast as can be :)
But the cost of memory copies would be much less with a tree (when you
add and delete files).
Raghu.
On Fri, Jan 23, 2009 at 5:08 PM, Raghu Angadi <[email protected]> wrote:
If you are adding and deleting files in the directory, you might notice CPU
penalty (for many loads, higher CPU on NN is not an issue). This is mainly
because HDFS does a binary search on files in a directory each time it
inserts a new file.
If the directory is relatively idle, then there is no penalty.
Raghu.
Mark Kerzner wrote:
Hi,
there is a performance penalty in Windows (pardon the expression) if you
put
too many files in the same directory. The OS becomes very slow, stops
seeing
them, and lies about their status to my Java requests. I do not know if
this
is also a problem in Linux, but in HDFS - do I need to balance a directory
tree if I want to store millions of files, or can I put them all in the
same
directory?
Thank you,
Mark