HAL

udisks-daemon constantly burning about 10% CPU

Bug #587044 reported by Igor
64
This bug affects 13 people
Affects Status Importance Assigned to Milestone
HAL
New
Undecided
Unassigned
udisks (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: udisks

Following processes constantly burn CPU: udisks-daemon, gvfs-gdu-volume-monitor, dbus-daemon, gdu-notification.
This stated since install of Ubuntu 10.4.

I have been runing top since boot, no disk in DVD unit. This is tipical result:

top - 23:26:12 up 52 min, 4 users, load average: 1.73, 1.75, 1.74
Tasks: 282 total, 3 running, 279 sleeping, 0 stopped, 0 zombie
Cpu(s): 12.0%us, 4.4%sy, 0.0%ni, 81.3%id, 0.0%wa, 2.2%hi, 0.0%si, 0.0%st
Mem: 3096356k total, 2304628k used, 791728k free, 223704k buffers
Swap: 4192924k total, 0k used, 4192924k free, 1535744k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 2478 root 20 0 15672 3084 2472 S 11 0.1 5:01.46 udisks-daemon
 2468 igor 20 0 8848 4356 2644 S 11 0.1 4:59.35 gvfs-gdu-volume
 1268 messageb 20 0 3376 1760 784 S 8 0.1 3:31.92 dbus-daemon
 3395 igor 20 0 19420 7800 5416 S 9 0.3 3:29.24 gdu-notificatio
 8067 igor 20 0 34548 10m 7956 S 7 0.4 3:24.52 update-notifier

I have tried to see what udisks-daemon is doing.
Command "udisks --monitor"
returns constant stram of following lines:
"changed: /org/freedesktop/UDisks/devices/sr0"

Command "udisks --monitor-detail" streams following:
"changed: /org/freedesktop/UDisks/devices/sr0
Showing information for /org/freedesktop/UDisks/devices/sr0
  native-path: /sys/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sr0
  device: 11:0
  device-file: /dev/sr0
    presentation: /dev/sr0
    by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-4:0:0:0
  detected at: Fri 28 May 2010 10:34:20 PM CEST
  system internal: 0
  removable: 1
  has media: 0
    detects change: 1
    detection by polling: 0
    detection inhibitable: 0
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 0
  block size: 0
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  drive:
    vendor: Optiarc
    model: DVD RW AD-7560S
    revision: SX01
    serial:
    WWN:
    detachable: 0
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 1
    adapter: /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2/host4
    similar devices:
    media:
      compat: optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_ram optical_dvd_rw optical_mrw optical_mrw_w
    interface: scsi
    if speed: (unknown)
    ATA SMART: not available"

There is no disc or anything in DVD unit. If I open tray, it's the same. If I put DVD disc in, then processes in question go to 0.
I can try to investigate more, if someone directs me how.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: udisks 1.0.1-1build1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri May 28 23:21:52 2010
ExecutablePath: /usr/lib/udisks/udisks-daemon
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MachineType: Micro-Star International GT627
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=999eb936-f6c4-4974-a9ce-5fcaee10acaf ro quiet splash
ProcEnviron:

SourcePackage: udisks
dmi.bios.date: 04/07/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A1651IMS.10V
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: MS-1651
dmi.board.vendor: MSI
dmi.board.version: Ver 1.000
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA1651IMS.10V:bd04/07/2009:svnMicro-StarInternational:pnGT627:pvrVer1.000:rvnMSI:rnMS-1651:rvrVer1.000:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: GT627
dmi.product.version: Ver 1.000
dmi.sys.vendor: Micro-Star International

Revision history for this message
Igor (ikriznar) wrote :
Revision history for this message
John (jm1) wrote :

This problem has been bugging me for a long time - excessive CPU usage with gvfs-gdu-volume, udisks-daemon and dbus-daemon

I found the solution in this thread:

http://ubuntuforums.org/showthread.php?p=9601314#post9601314

Revision history for this message
Igor (ikriznar) wrote :

Seems to help me as well. Thnx.
This is just sort of a workaround. Or pooling should e disabled by default or should be made in a way, that does not burn so much CPU.

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

With 3 USB disks attached, base load went up to 6 on my system.
Thus, no batch queue would run.
The workaround works well, but this should not occur.

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

For what it's worth:
The 3 USB disks reported turned out to be the 4 inputs of my USB card reader.
All of them took a long time to find out to be empty, upping system load to 6.
On the same USB bus, there is a hub with a WiFi network stick.

Bus 002 Device 005: ID 050d:945a Belkin Components
Bus 002 Device 004: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I am using Lucid LTS:
Linux 2.6.32-32-generic-pae #62-Ubuntu SMP Wed Apr 20 22:10:33 UTC 2011 i686 GNU/Linux

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

Another problem that I have had for a long time were disconnects from my Wifi network.
After some time, Network manager would not reconnect anymore, and messages would fill up every seconds with the logging below.

  sudo kill -s SIGSTOP `pidof udisks-daemon`

fixed this behavior.

As I nedded to access an USB stick, I had issued a
  sudo kill -s SIGCONT `pidof udisks-daemon`
And alas, after some time my Wifi disconnected again, and the log file filled again with messsages.
So now, I disabled the deamon again.
  sudo kill -s SIGSTOP `pidof udisks-daemon`

Jun 20 20:50:56 his10 kernel: [852407.568068] Linking with his04,channel:1, qos:1, myHT:0, networkHT:0, mode:6
Jun 20 20:50:56 his10 kernel: [852407.568079] ===>ieee80211_associate_procedure_wq(), chan:1
Jun 20 20:50:56 his10 kernel: [852407.783933] =================>ieee80211_authentication_req():auth->algorithm is 0
Jun 20 20:50:56 his10 kernel: [852407.783940] softmac_mgmt_xmit():insert to waitqueue!
Jun 20 20:50:59 his10 kernel: [852410.280061] Linking with his04,channel:1, qos:1, myHT:0, networkHT:0, mode:6
Jun 20 20:50:59 his10 kernel: [852410.280072] ===>ieee80211_associate_procedure_wq(), chan:1
Jun 20 20:50:59 his10 kernel: [852410.495898] =================>ieee80211_authentication_req():auth->algorithm is 0
Jun 20 20:50:59 his10 kernel: [852410.495905] softmac_mgmt_xmit():insert to waitqueue!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks (Ubuntu):
status: New → Confirmed
Changed in udisks (Ubuntu):
status: Confirmed → Invalid
status: Invalid → Incomplete
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.