Andrei Borzenkov wrote:
18.10.2015 13:43, Per Jessen пишет:
Andrei Borzenkov wrote:
18.10.2015 12:20, Brandon Vincent пишет:
On Sun, Oct 18, 2015 at 2:16 AM, Per Jessen <per@computer.org> wrote:
No, that's true, that's not an issue here either - I was out looking for reason why directory access seems to have slowed down over time, and just happened on this apparent anomaly.
The biggest issue that will slow down directory access is having a lot of files in a directory. If the directory is empty, the extra allocated blocks/size won't really impact performance.
Never say never. Full directory scan may quite likely result in reading of full directory size to check every directory entry.
The situation I have is as follows:
I have a 600Gb filesystem mounted on /var - key directories under /var are:
/var/spool/postfix-in/{incoming,active} with 2 levels of hashing. On a busy day or after delays, each subdir might easily reach 10.000 files. 99% small files of less than 100Kb. (emails).
/var/spool/elsewhere/dir{0,1,2,3...1000}/maildirs - each such maildir might have 100.000 files.
I am in the process of migrating some of the <elsewhere> directories to other systems using rsync. This typically causes a major slowdown, which results in large postfix queues building, ending up in processing delays of up to 24hours, sometimes more.
Slow down with new directory after migration or slow down during migration?
During migration/rsync. The new directory is on a different machine. -- Per Jessen, Zürich (7.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org