Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th August 2012, 11:30 AM
ACiD GRiM Offline
Registered User
 
Join Date: Sep 2008
Posts: 204
linuxfirefox
Polkitd, NM, and dbus-daemon are ravaging my cpu and battery

http://i.imgur.com/htMcH.png

Above is a link to a screen cap of the consistantly top offenders of my system. Even after all updates have been applied, and a complete reboot, these three services are almost immediately taking 36% polkitd, 36% dbus-daemon, and 12% NetworkManager with vary little fluxuation from the screen cap. Not only is this keeping my poor CPU pegged, but it's likely the cause for the abysmal battery life I have even after upgrading to an SSD.

Sometimes Polkitd will consume over 1GB of RAM! After the computer has been left on for a few days. This is confirmed on two computers of different ages of F17.

Is this a bug I need to report/add to? Does anyone have a suggestion for investigating why these three apps are almost locked in CPU usage.

I have done systemctl restart NetworkManager.service and when the service reloads, it's back up to 12% immediately. I think it's realy strange that these three services are consistantly at the same usage level. 4x CPU system

Some system info:

tmpfs /tmp
cpu throttling set to concervative
tuned set to laptop-battery-powersave
brightness turned all down

The curious thing is that in a test user, I don't have the same problem, so I can at least confirm that its tied to something I'm doing in my user profile. The only problem is I'm not sure where to start looking since these services explode on log-in.

Found the problem, it's a script I run that is supposed to remount my gvfs share when the system reconnects to my local network. Looks like my quick hack caused un intended consequences. any ideas how I can optimize this to only make remount requests when network state and folder detection state changes?

.
Code:
i=0

while [ $i -eq 0 ]; do
        CONSTATE=`nmcli -t -f STATE nm status`
        FOLDERSTATE=`gvfs-info /run/user/ben/gvfs/mount/ 2>&1|grep "type: directory"`

        if [[ $CONSTATE = "connected" ]]; then
                if [[ $FOLDERSTATE != "type: directory" ]]; then
                        gvfs-mount "smb://NEXUSNEBULA.NET;ben@file.nexusnebula.net/ben"
                fi
        fi
done

Last edited by ACiD GRiM; 18th August 2012 at 11:44 AM.
Reply With Quote
Reply

Tags
battery, cpu, dbusdaemon, networkmanager, polkitd, ravaging

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restart the DBus daemon? theresonant EOL (End Of Life) Versions 1 11th February 2012 07:44 AM
warning: `dbus-daemon' uses 32-bit capabilities fedora987 Using Fedora 1 9th August 2008 01:21 AM
Dbus-daemon and Ldap problem on startup manulesurfeur Using Fedora 2 30th May 2006 09:50 AM
battery daemon o-ren Using Fedora 0 18th August 2005 05:21 PM
dbus-daemon-1: Failed to start message bus: Failed to bind socket HaydnH Using Fedora 2 30th June 2005 05:31 PM


Current GMT-time: 01:20 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat