Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED? upgrade world => dbus-daemon --system @ 99% cpu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 249

PostPosted: Wed Dec 23, 2009 5:40 pm    Post subject: SOLVED? upgrade world => dbus-daemon --system @ 99% cpu Reply with quote

Powermac G4, kernel 2.6.32-gentoo

After a recent emerge world -uDnv I noticed hal refuses to start at boot time. Did some searching in the forums and tried at the console:

Code:
# hald --verbose=yes --daemon=no --retain-privileges
11:21:31.700 [I] hald.c:673: hal 0.5.14
11:21:31.701 [I] hald.c:674: using child timeout 250s
11:21:31.701 [I] hald.c:739: Will not daemonize
11:21:31.702 [I] hald_dbus.c:5444: local server is listening at unix:abstract=/var/run/hald/dbus-wWdJzxzLA9,guid=28ea3f8c5bdaca4ba9477ed94b32519b


Note hald seems to hang and never communicates with the dbus session. So I look at dbus, which seems to start without error:

Code:
# /etc/init.d/dbus status
* status: started

# ps ax | grep dbus
 2708 ?        Rs     2:56 /usr/bin/dbus-daemon --system
 2781 ttyp1    S+     0:00 grep --colour=auto dbus


So wait, where *is* the dbus session process? I admit I know enough about dbus to be dangerous, but I am pretty sure there should be a dbus child process in addition to the the system process, right?

Here are my versions:

Code:
# emerge dbus hal -vp

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

Calculating dependencies... done!
[ebuild   R   ] sys-apps/dbus-1.3.0-r1  USE="X -debug -doc (-selinux) -test" 0 kB
[ebuild   R   ] sys-apps/hal-0.5.14  USE="X crypt (-acpi) -apm -consolekit -debug (-dell) -disk-partition -doc -laptop -policykit (-selinux)" 0 kB


And the ever-popular:

Code:
# emerge --info
Portage 2.1.7.13 (default/linux/powerpc/ppc32/10.0, gcc-4.4.2, glibc-2.10.1-r1, 2.6.32-gentoo ppc)
=================================================================
System uname: Linux-2.6.32-gentoo-ppc-7400,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Fri, 11 Dec 2009 21:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.4.6, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA IBM-J1.6"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/homea/portage_tmpdir"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage_local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl altivec berkdb browserplugin bzip2 cli cracklib crypt cups cxx dbus dri encode firefox fortran gdbm gpm iconv ipv6 java kde live mng modules mozilla mpeg mudflap ncurses nls nptl nptlonly nsplugin opengl openmp oss pam pcre perl png ppc pppd python qt3support quicktime readline reflection session sheep sox spell spl sql ssl sysfs tcltk tcpd unicode v4l v4l2 vorbis xorg xprint xscreensaver xvid yv12 zlib" ALSA_CARDS="powermac" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 directory" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="r128"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Oh and I bet this is important too (just noticed) :) It appears dbus-daemon is consuming 99% cpu too:

Code:
# top
top - 11:28:17 up  2:38,  5 users,  load average: 1.11, 0.81, 0.62
Tasks:  55 total,   2 running,  53 sleeping,   0 stopped,   0 zombie
Cpu(s): 50.3%us, 49.7%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1032672k total,   901844k used,   130828k free,   432648k buffers
Swap:   511992k total,        0k used,   511992k free,   119616k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                   
 2708 messageb  40   0  3176  580  392 R 99.3  0.1   6:37.66 dbus-daemon                                                                                 
 2806 root      40   0  3080 1268 1028 R  0.7  0.1   0:00.03 top                                                                                         
    1 root      40   0  1888  700  624 S  0.0  0.1   0:00.52 init                                                                                       
    2 root      40   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd                                                                                   
    3 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                                                                 
    4 root      20   0     0    0    0 S  0.0  0.0   0:00.37 events/0                                                                                   
    5 root      20   0     0    0    0 S  0.0  0.0   0:00.08 khelper                                                                                     
    8 root      20   0     0    0    0 S  0.0  0.0   0:00.00 async/mgr                                                                                   
   94 root      20   0     0    0    0 S  0.0  0.0   0:00.00 sync_supers                                                                                 
   96 root      20   0     0    0    0 S  0.0  0.0   0:00.00 bdi-default                                                                                 
   98 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kblockd/0                                                                                   
  108 root      20   0     0    0    0 S  0.0  0.0   0:00.16 khubd                                                                                       
  111 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kseriod                                                                                     
  134 root      20   0     0    0    0 S  0.0  0.0   0:03.85 kswapd0                                                                                     
  135 root      20   0     0    0    0 S  0.0  0.0   0:00.00 aio/0                                                                                       
  136 root      20   0     0    0    0 S  0.0  0.0   0:00.00 crypto/0                                                                                   
  822 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kpsmoused                                                                                   
  857 root      20   0     0    0    0 S  0.0  0.0   0:00.00 usbhid_resumer                                                                             
  867 root      20   0     0    0    0 S  0.0  0.0   0:00.24 kjournald                                                                                   
 1132 root      20   0     0    0    0 S  0.0  0.0   0:00.00 khpsbpkt                                                                                   
 1186 root      20   0     0    0    0 S  0.0  0.0   0:00.00 knodemgrd_0                                                                                 
 1197 root      18  -2  2556  748  444 S  0.0  0.1   0:00.11 udevd                                                                                       
 1482 root      20   0  2424  476  340 S  0.0  0.0   0:00.04 dhclient                                                                                   
 1534 root      20   0     0    0    0 S  0.0  0.0   0:00.00 reiserfs/0                                                                                 
 1540 root      20   0     0    0    0 S  0.0  0.0   0:00.20 kjournald                                                                                   
 1551 root      20   0     0    0    0 S  0.0  0.0   0:00.00 flush-3:0                                                                                   
 2130 root      16  -4  2560  812  504 S  0.0  0.1   0:00.42 udevd                                                                                       
 2304 root      40   0  2008  700  584 S  0.0  0.1   0:00.07 syslogd                                                                                     
 2310 root      40   0  2348 1088  480 S  0.0  0.1   0:00.47 klogd                                                                                       
 2575 squid     40   0  4444 1196 1032 S  0.0  0.1   0:00.00 unlinkd                                                                                     
 2625 root      40   0  2584  812  668 S  0.0  0.1   0:00.00 cron                                                                                       
 2638 root      40   0  4432 1504 1152 S  0.0  0.1   0:00.08 login                                                                                       
 2639 root      40   0  2000  788  700 S  0.0  0.1   0:00.00 agetty                                                                                     
 2640 root      40   0  2000  784  700 S  0.0  0.1   0:00.00 agetty                                                                                     
 2641 root      40   0  2000  788  700 S  0.0  0.1   0:00.00 agetty                                                                                     
 2642 root      40   0  2000  788  700 S  0.0  0.1   0:00.00 agetty                                                                                     
 2643 root      40   0  2000  788  700 S  0.0  0.1   0:00.00 agetty                                                                                     
 2644 root      40   0  3780 1860 1528 S  0.0  0.2   0:00.09 bash                                                                                       
 3714 root      18  -2  2556  744  440 S  0.0  0.1   0:00.03 udevd                                                                                       
 3885 root      40   0  5592 1144  820 S  0.0  0.1   0:00.00 sshd                                                                                       
 3913 root      40   0 10240 3008 2432 S  0.0  0.3   0:00.11 sshd                                                                                       
 3919 rob       40   0 10240 1848 1240 S  0.0  0.2   0:00.41 sshd                                                                                       
 3926 rob       40   0  3780 1836 1504 S  0.0  0.2   0:00.07 bash                                                                                       
 3947 root      40   0  3980 1400 1100 S  0.0  0.1   0:00.02 su                                                                                         
 3951 root      40   0  3780 1824 1508 S  0.0  0.2   0:00.04 bash                                                                                       
 3956 root      40   0  3616 1084  892 S  0.0  0.1   0:00.01 screen


So clearly dbus is unhappy about something. But...

Code:
# tail -10000 /var/log/messages | grep -i dbus


... shows nothing. I have noticed an uptick in dbus related posts in the forums lately, but while some other complaints seem similar, none seem to exactly match mine.

Where shall I look now?


Last edited by rburcham on Wed Dec 23, 2009 10:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 249

PostPosted: Wed Dec 23, 2009 9:55 pm    Post subject: Reply with quote

Hmmm... rolled back to dbus-1.2.12 and now she starts... at least:

Code:
# /etc/init.d/dbus start
* Starting D-BUS system messagebus...                                                                                                              [ ok ]
crumb portage # dbus-monitor --system
signal sender=org.freedesktop.DBus -> dest=:1.0 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.0"


... which is not something I was able to do with dbus-1.3.0-r1

So I guess 1.3 is a no-go on PPC for now. FWIW both 1.2.12 and 1.3.0-r1 are ~ppc as of this post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum