Eric Yellin schrieb:
I think Clamd is not configures via dspam but rather via amavis. I think
it runs separate from dspam. I don't see any connection between the two.
An strace of the dspam call would be nice, too.
I'm attaching 2 files: strace-root.txt and strace-zimbra.txt. Root is
very fast and zimbra is very very slow.
Can you include the timestamps in strace-root.txt, too? These are very helpful
to see where it hangs/how much time some operations need. And please don't send
these files by mail - no need to distribute them to several hundred/thousand
subscribers. Please put them on a webserver or email them to me privately. If
you like, I can put them online so you may get help by others, too.
Several things seem strange to me:
15:38:52
open("/opt/zimbra/dspam-3.6.2/var/dspam/data/z/i/zimbra/zimbra.blocklist",
O_RDONLY) = -1 ENOENT (No such file or directory)
15:38:52 time(NULL) = 1171287532
15:38:52 brk(0x81a0000) = 0x81a0000
15:55:17 open("/opt/zimbra/log/dspam.debug", O_WRONLY|O_CREAT|O_APPEND, 0666) =
8
15:55:17 fstat64(8, {st_mode=S_IFREG|0664, st_size=173108, ...}) = 0
15:55:17 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f0c000
...
15:55:17 time(NULL) = 1171288517
15:55:17 write(8, "1383: [02/12/2007 15:55:17] Resu"..., 52) = 52
15:55:17 close(8) = 0
15:55:17 munmap(0xb7f0c000, 4096) = 0
15:59:28 time(NULL) = 1171288768
15:59:28
stat64("/opt/zimbra/dspam-3.6.2/var/dspam/data/z/i/zimbra/zimbra.sig/45d072c013831859018504.sig",
0xbff07b70) = -1 ENOENT (No such file or directory)
15:59:29 open("/opt/zimbra/log/dspam.debug", O_WRONLY|O_CREAT|O_APPEND, 0666) =
8
15:59:29 fstat64(8, {st_mode=S_IFREG|0664, st_size=176833, ...}) = 0
This seems to indicate that the message processing takes 16:25 + 4:11 = 20: 36
minutes which are just spent waiting. How much RAM is in your server? Does it
swap heavily? Can you look at the load numbers?
fs