Talking about a huge (50GB, 500.000 entries) Apache disk_cache partition: Which Linux filesystem performs best for this task?
In my example, the partition has a lot (500.000) of very small files (< 1 KB) and a lot (500.000) of files with ~ 50 KB.
File hierarchy is as deep as /htcache/B/x/i_iGfmmHhxJRheg8NHcQ.header.vary/A/W/oGX3MAV3q0bWl30YmA_A.header
.
Typical actions are creating directories and files (by Apache), reading files (Apache) and removing files and directories (htcacheclean).
I'm currently using ext3 and I'm facing bad performance (i.e. slow ops with high IOwaits) when purging outdated files and emptied directories from the cache.
- the ext3 filesystem was created with "-t news" (i.e.
blocksize = 4096
,inode_size = 256
andinode_ratio = 4096
). - filesystem features: "
has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
" - the partition is mounted with "
noatime
"