Package: darkstat
Version: 3.0.713-2
Severity: minor
This pattern repeats infinitly:
select(9, [8], [], NULL, {0, 500000}) = 0 (Timeout)
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, SIOCGIFADDR, {ifr_name="eth1", ifr_addr={AF_INET,
inet_addr("10.6.6.200")}}) = 0
close(4) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0 (Timeout)
open("/proc/net/dev", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
getsockopt(3, SOL_PACKET, PACKET_STATISTICS, {packets=12, drops=0}, [8]) = 0
read(7, 0xbfcfa0d4, 72) = -1 EAGAIN (Resource temporarily
unavailable)
time(NULL) = 1275858715
Two questsions:
1. Why it tries to open /proc/net/dev constantly? It should mark that it
doesn't work and use only SOL_PACKET interface.
2. Why it is using both select and poll? And why for select it is using so
small timeout as 500ms ? It constantly wakes up my CPU.
Regards.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.35-rc2-sredniczarny (PREEMPT)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages darkstat depends on:
ii debconf [debconf-2.0] 1.5.32 Debian configuration management sy
ii libc6 2.11.1-2 Embedded GNU C Library: Shared lib
ii libpcap0.8 1.1.1-2 system interface for user-level pa
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
darkstat recommends no packages.
darkstat suggests no packages.
-- Configuration Files:
/etc/darkstat/init.cfg changed:
START_DARKSTAT=yes
INTERFACE="-i eth1"
-- debconf information:
darkstat/upgrade-question/db_purge-2.5-1: true
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]