I run
Under a folder that contains 15600 small png files ( filesizes vary
from 1KB to 24KB), I run
find . -type f -name *.png -exec ls -l {} \; | awk '{print $5}' > L2.txt
and sum up all the size outputed to L2.txt, and I get
165 486 070
This is the actual size of the current directory in byte, is this right?
And du -sk . gives:
333 520 ( in kilobyte ).
and is x2 times bigger than the first size I've computed.
My question: How do I optimize the disk for storing this kind of data
( i.e, the number of file is large, while the file size is small ).
Is there anything to do with filesystem's block size?
What file system is the best choice for this kind of data, and has fast I/O?
--
Best Regards,
Nguyen Hung Vu
vuhung16plus{[email protected]
An inquisitive look at Harajuku
http://www.flickr.com/photos/vuhung/sets/72157600109218238/