Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179418 - sys-power/apcupsd-3.14.0 cpu hog
Summary: sys-power/apcupsd-3.14.0 cpu hog
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 12:49 UTC by Georg Weiss
Modified: 2009-01-15 15:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Weiss 2007-05-22 12:49:59 UTC
as currently tested with:
sys-power/apcupsd-3.12.4
sys-power/apcupsd-3.14.0

when starting apcupsd it takes up all cpu time...

strace of the apcupsd process in this state:
--8<--
...
14:44:57.730269 time(NULL)              = 1179837897
14:44:57.730495 time([1179837897])      = 1179837897
...
--8<--

it may have to do something with snmp because other apcupsd processes using usb are running fine.

Reproducible: Always

Steps to Reproduce:
1. emerge apcupsd (with snmp useflag enabled)
2. /etc/init.d/apcupsd
3. monitor apcupsd process




fry ~ # emerge -pv apcupsd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-power/apcupsd-3.14.0  USE="ncurses nls snmp -cgi -doc -gnome -threads -usb -vhosts" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
fry ~ # emerge --info
Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened i686)
=================================================================
System uname: 2.6.18-hardened i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 21 May 2007 12:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/local/portage/distfiles"
FEATURES="distlocks maketest metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="xxx"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/local/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/local/portage/build"
PORTDIR="/local/portage/tree"
PORTDIR_OVERLAY="/local/portage/overlay"
SYNC="rsync://gentoo.xxx/gentoo-portage"
USE="acl bash-completion bzip2 caps crypt hardened ldap logrotate nls nptl nptlonly pam pic pie readline samba sse sse2 ssl unicode utf8 x86 zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2007-11-26 07:32:24 UTC
Looks like an upstream bug to me. Could you test 3.14.2?
Comment 2 Georg Weiss 2007-11-28 10:01:51 UTC
i tried it with the following packages, but still no improvement:

[ebuild   R   ] net-analyzer/net-snmp-5.4.1-r1  USE="ssl -X -diskio -doc -elf -ipv6 -lm_sensors -mfd-rewrites -minimal -perl -python -rpm (-selinux) -sendmail -smux -tcpd"
[ebuild   R   ] sys-power/apcupsd-3.14.2  USE="ncurses nls snmp usb -cgi -doc -gnome -vhosts

# root      2449 95.2  0.0   4316   952 ?        Rs   10:56   1:31 /sbin/apcupsd -f /etc/apcupsd/apcupsd.conf -P /var/run/apcupsd.pid
# strace -p 2449
--8<--
[...]
time(NULL)                              = 1196243851
time(NULL)                              = 1196243851
time(NULL)                              = 1196243852
time(NULL)                              = 1196243852
stat64("/var/log/apcupsd.events", {st_mode=S_IFREG|0666, st_size=1301, ...}) = 0
[...]
--8<--

Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-15 15:23:22 UTC
Taking over. Michael you let this package rot so much, since I need it, I'm going to take it over and take care.

Please don't say I didn't give you enough notice, last year I already asked you this much and now I'm simply tired.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-15 15:49:52 UTC
Please reopen if still a problem with 3.14.5 (and update the summary if it's the case to help me identify the bug).

Although it's probably upstream, you might want to check the backtrace, look at http://www.gentoo.org/proj/en/qa/backtraces.xml for some information on how to do that.