我正在使用带有Plesk 9(64位)的CentOS 5,我正在运行一个用户将上传图片的网站.使用64位操作系统,我可以存储多少个文件有限制吗?我所关心的只是性能,并提供文件.我不希望有四个分散文件的目录.但是,我希望,在某些时候我可以拥有200-300万张图像.
解决方法
如果你是
using ext3,我找到
this quote(警告:西班牙语网站)
“There is a limit of 32k (32768)
subdirectories in a single directory,
a limitation likely of only academic
interest,as many people don’t even
have that many files (though huge mail
servers may need to keep that in
mind). The ext2 inode specification
allows for over 100 trillion files to
reside in a single directory”
Further reading表明ext3没有32K的限制,可以凭经验证明
a=0; i=1; while [ $a == 0 ]; do touch $i; a=$?; let i++; done
a=0; i=1; while [ $a == 0 ]; do mkdir $i; a=$?; let i++; done
ReiserFS has no trouble at all with
hundreds of thousands of files in a
single directory. flabdablet – February 1,2007
来自姐妹网站stackoverflow.com的This question也可以提供帮助.
一般来说: