PDA

View Full Version : سوال: ظرفیت یک شاخه یا همان فولدر



future2010
جمعه 22 بهمن 1389, 15:42 عصر
سلام دوستان
سوالی داشتم؛ میخوام بدونم که در یک شاخه یا فولدر بر روی سرور لینوکس چه تعداد فایل رو میشه ذخیره کرد
من برای طراحی یه گالری عکس در یک سایت تصمیم دارم همه عکسها رو در یک شاخه ذخیره کنم
میخوام بدونم یا یه شاخه محدودیتی از نظر تعداد فایل داره؟ و آیا این کار من بعدا مشکل ساز میشه یا نه؟
قبلا از راهنمایی و مشاورتون ممنونم

Program3r
جمعه 22 بهمن 1389, 16:49 عصر
Depends on which file system you're using. Reiserfs (my favorite) can handle up to 2^31 files per dir (that's 2 billion), with a max of 2^32 (4 billion) files on the filesys total. It can handle up to 64000 subdirs in a dir (rough numbers, for exact numbers see the faq at www.namesys.com (http://www.namesys.com)).
Ext2 (and hence also ext3) has a limit of 32000 subdirs per dir. The max number of files per dir is theoretically unlimited (actually around 130 trillion), but performance becomes terrible with above 10-15 thousand files. The max number of total files on the filesys is limited by the number of inodes you have. With a 1 gig filesystem and a 4k block/inode ratio (the default), you have around 260000 inodes, and that's also the max number of files you can have.