Bug#645671: stund eating lots of CPU
Martin Mares
mj at ucw.cz
Mon Oct 17 18:12:37 UTC 2011
Package: stun
Version: 0.96.dfsg-5
Severity: normal
When stund runs, it consumes a lot of CPU time, even though it receives
no packets.
A brief look at the source (stun.cxx, stunServerProcess) reveals that
select() is called with a timeout of 1ms. Since the only purpose of the
timeout is checking whether an entry in the relay table has expired,
the timeout can be increased to 1s with no harm.
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages stun depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.5-8 GCC support library
ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3
stun recommends no packages.
stun suggests no packages.
-- Configuration Files:
/etc/default/stun changed:
START_DAEMON=true
DAEMON_OPTS=""
PRIMARY_IP="46.255.230.98"
SECONDARY_IP="46.255.230.99"
PRIMARY_PORT=3478
SECONDARY_PORT=3479
DAEMON_USER=nobody
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list