For big folders (>1000 messages) RoundCube takes 5-6 seconds to display. During request the CPU goes to 100%. A quick strace of apache process have many times this:
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
getcwd("/home/www/roundcube", 4096) = 20
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www/roundcube", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www/roundcube/program", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www/roundcube/program/lib", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www/roundcube/program/lib/encoding", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/www/roundcube/program/lib/encoding/ISO-8859-1.map", {st_mode=S_IFREG|0644, st_size=10592, ...}) = 0
open("/home/www/roundcube/program/lib/encoding/ISO-8859-1.map", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=10592, ...}) = 0
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=10592, ...}) = 0
mmap2(NULL, 10592, PROT_READ, MAP_SHARED, 6, 0) = 0xb6cf7000
munmap(0xb6cf7000, 10592) = 0
close(6) = 0
I don't know why apache checks the parent folders (I do have Options FolloSymlinks and AllowOverride None) but I don't know why RoundCube open and closes the file hundreds of time for a single request.
Any ideas ?
Yes.. i am on the same problem to.
Any idea?