Package: awstats Version: 6.4-2 Severity: normal If I use the geoip or geoipfree plugin, awstats.pl is much slower during an update: one loses at least a factor 100, not 8 or 10% as advertised! But this takes no CPU time; I assume this is because the hosts need to be resolved. Here's a part of a strace -r:
[...] 0.000147 open("/etc/hosts", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000047 gettimeofday({1130338331, 48191}, NULL) = 0 0.000038 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7 0.000036 connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.81.1.25")}, 28) = 0 0.000043 fcntl64(7, F_GETFL) = 0x2 (flags O_RDWR) 0.000029 fcntl64(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0 0.000026 gettimeofday({1130338331, 48362}, NULL) = 0 0.000030 poll([{fd=7, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 0.000036 send(7, "f]\1\0\0\1\0\0\0\0\0\0\rh00095b3f4ae0\2ne\7cl"..., 52, 0) = 52 0.000047 poll([{fd=7, events=POLLIN}], 1, 5000) = 0 5.001788 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 8 0.000045 connect(8, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("152.81.1.128")}, 28) = 0 0.000048 fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR) 0.000031 fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0 0.000028 gettimeofday({1130338336, 50415}, NULL) = 0 0.000031 poll([{fd=8, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 0.000037 send(8, "f]\1\0\0\1\0\0\0\0\0\0\rh00095b3f4ae0\2ne\7cl"..., 52, 0) = 52 0.000050 poll([{fd=8, events=POLLIN}], 1, 5000) = 0 5.003865 gettimeofday({1130338341, 54401}, NULL) = 0 0.000034 poll([{fd=7, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 0.000038 send(7, "f]\1\0\0\1\0\0\0\0\0\0\rh00095b3f4ae0\2ne\7cl"..., 52, 0) = 52 0.000053 poll([{fd=7, events=POLLIN}], 1, 5000) = 0 5.004018 gettimeofday({1130338346, 58545}, NULL) = 0 0.000035 poll([{fd=8, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 0.000037 send(8, "f]\1\0\0\1\0\0\0\0\0\0\rh00095b3f4ae0\2ne\7cl"..., 52, 0) = 52 0.000051 poll([{fd=8, events=POLLIN}], 1, 5000) = 0 5.004004 close(7) = 0 0.000038 close(8) = 0 [...] I don't know if there is a bug in the script or if the documentation is wrong. In the latter case, this could probably be optimized (e.g. with parallel queries). -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.13.4-20051012 Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1) Versions of packages awstats depends on: ii perl [libstorable-perl] 5.8.7-7 Larry Wall's Practical Extraction Versions of packages awstats recommends: ii libnet-xwhois-perl 0.90-1 Whois Client Interface for Perl5 -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]