udisksd high CPU usage

Bug #1589418 reported by Bones
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

Using: libudisks2-0:amd64 2.1.6-2ubuntu1

Ubuntu 4.2.0-36.42-generic 4.2.8-ckt8
Description: Ubuntu 15.10
Release: 15.10

When I add USB drives to my system I end-up with udisksd using 100% of a core shortly after. After some time this goes up to 200% (in one step), so using 2 cores. Thread view shows CPU time of CMD 'pool':

# ps -T -p <pid-of-udisksd>
  PID SPID TTY TIME CMD
26229 26229 ? 00:00:00 udisksd
26229 26230 ? 00:00:00 gmain
26229 26232 ? 00:00:00 gdbus
26229 26233 ? 00:00:00 probing-thread
26229 26234 ? 00:00:00 cleanup
26229 3325 ? 00:33:16 pool
26229 5027 ? 00:03:00 pool

My solution is to kill it and let it restart.

Strace needs to follow threads to show activity, it's then flooding with:

# strace -p <udisksd-pid> -f
[pid 3325] poll([{fd=12, events=POLLIN}, {fd=17, events=POLLOUT}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN}], 4, 0) = 2 ([{fd=12, revents=POLLIN}, {fd=17, revents=POLLOUT}])
[pid 3325] read(12, "\2\0\0\0\0\0\0\0", 16) = 8
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] write(2, "\n(udisksd:26229): GLib-WARNING *"..., 87) = 87
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] poll([{fd=12, events=POLLIN}, {fd=17, events=POLLOUT}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN}], 4, 0) = 2 ([{fd=12, revents=POLLIN}, {fd=17, revents=POLLOUT}])
[pid 3325] read(12, "\2\0\0\0\0\0\0\0", 16) = 8
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] write(2, "\n(udisksd:26229): GLib-WARNING *"..., 87) = 87
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] poll([{fd=12, events=POLLIN}, {fd=17, events=POLLOUT}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN}], 4, 0) = 2 ([{fd=12, revents=POLLIN}, {fd=17, revents=POLLOUT}])
[pid 3325] read(12, "\2\0\0\0\0\0\0\0", 16) = 8
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] write(2, "\n(udisksd:26229): GLib-WARNING *"..., 87) = 87
[pid 3325] write(12, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3325] poll([{fd=12, events=POLLIN}, {fd=17, events=POLLOUT}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN}], 4, 0) = 2^CProcess 26229 detached

THANKS!
---
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: bones 1880 F.... panel-8-mixer
                      bones 1944 F.... pulseaudio
 /dev/snd/controlC1: bones 1880 F.... panel-8-mixer
                      bones 1944 F.... pulseaudio
DistroRelease: Ubuntu 15.10
HibernationDevice: RESUME=UUID=34ae084e-472d-4798-bacb-fd0f010fe477
InstallationDate: Installed on 2016-01-06 (154 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: LENOVO 20BXCTO1WW
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.2.0-36-generic.efi.signed root=/dev/mapper/kubuntu--vg-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-36.42-generic 4.2.8-ckt8
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-36-generic N/A
 linux-backports-modules-4.2.0-36-generic N/A
 linux-firmware 1.149.3
Tags: wily
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 4.2.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 11/06/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: JBET54WW (1.19 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BXCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40709 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrJBET54WW(1.19):bd11/06/2015:svnLENOVO:pn20BXCTO1WW:pvrThinkPadT450s:rvnLENOVO:rn20BXCTO1WW:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20BXCTO1WW
dmi.product.version: ThinkPad T450s
dmi.sys.vendor: LENOVO

Revision history for this message
Bones (boesemar) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1589418

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Bones (boesemar) wrote :
Download full text (22.5 KiB)

APPORT

ProblemType: Hang
Architecture: amd64
Date: Tue Jun 7 08:14:43 2016
Dependencies:
 adduser 3.113+nmu3ubuntu4 [origin: unknown]
 apt 1.0.10.2ubuntu3 [origin: unknown]
 apt-utils 1.0.10.2ubuntu3 [origin: unknown]
 coreutils 8.23-4ubuntu2 [origin: unknown]
 dbus 1.10.0-1ubuntu1 [origin: unknown]
 debconf 1.5.57ubuntu1 [origin: unknown]
 debconf-i18n 1.5.57ubuntu1 [origin: unknown]
 debianutils 4.5.1 [origin: unknown]
 dmsetup 2:1.02.99-1ubuntu1 [origin: unknown]
 dosfstools 3.0.28-1ubuntu0.1 [origin: unknown]
 dpkg 1.18.2ubuntu5.1 [origin: unknown]
 e2fslibs 1.42.12-1ubuntu2 [origin: unknown]
 e2fsprogs 1.42.12-1ubuntu2 [origin: unknown]
 eject 2.1.5+deb1+cvs20081104-13.1 [origin: unknown]
 fuse 2.9.4-1ubuntu1 [origin: unknown]
 gcc-5-base 5.2.1-22ubuntu2 [origin: unknown]
 gdisk 1.0.0-3 [origin: unknown]
 gnupg 1.4.18-7ubuntu1 [modified: usr/lib/gnupg/gpgkeys_curl usr/lib/gnupg/gpgkeys_hkp] [origin: unknown]
 gpgv 1.4.18-7ubuntu1 [origin: unknown]
 groff-base 1.22.3-1 [origin: unknown]
 init-system-helpers 1.23ubuntu4 [origin: unknown]
 initscripts 2.88dsf-59.2ubuntu2.1 [origin: unknown]
 insserv 1.14.0-5ubuntu3 [origin: unknown]
 libacl1 2.2.52-2 [origin: unknown]
 libapparmor1 2.10-0ubuntu6 [origin: unknown]
 libapt-inst1.7 1.0.10.2ubuntu3 [origin: unknown]
 libapt-pkg4.16 1.0.10.2ubuntu3 [origin: unknown]
 libatasmart4 0.19-3 [origin: unknown]
 libattr1 1:2.4.47-2 [origin: unknown]
 libaudit-common 1:2.4.2-1ubuntu1 [origin: unknown]
 libaudit1 1:2.4.2-1ubuntu1 [origin: unknown]
 libblkid1 2.26.2-6ubuntu3 [origin: unknown]
 libbz2-1.0 1.0.6-8 [origin: unknown]
 libc6 2.21-0ubuntu4.3 [origin: unknown]
 libcap-ng0 0.7.6-1 [origin: unknown]
 libcap2 1:2.24-9 [origin: unknown]
 libcap2-bin 1:2.24-9 [origin: unknown]
 libcomerr2 1.42.12-1ubuntu2 [origin: unknown]
 libcryptsetup4 2:1.6.6-5ubuntu2 [origin: unknown]
 libdb5.3 5.3.28-11 [origin: unknown]
 libdbus-1-3 1.10.0-1ubuntu1 [origin: unknown]
 libdevmapper1.02.1 2:1.02.99-1ubuntu1 [origin: unknown]
 libexpat1 2.1.0-7ubuntu0.15.10.1 [origin: unknown]
 libfdisk1 2.26.2-6ubuntu3 [origin: unknown]
 libffi6 3.2.1-3 [origin: unknown]
 libfuse2 2.9.4-1ubuntu1 [origin: unknown]
 libgcc1 1:5.2.1-22ubuntu2 [origin: unknown]
 libgcrypt20 1.6.3-2ubuntu1.1 [origin: unknown]
 libglib2.0-0 2.46.2-1ubuntu2 [origin: unknown]
 libglib2.0-data 2.46.2-1ubuntu2 [origin: unknown]
 libgmp10 2:6.0.0+dfsg-7 [origin: unknown]
 libgnutls-deb0-28 3.3.15-5ubuntu2 [origin: unknown]
 libgpg-error0 1.19-2 [origin: unknown]
 libgpm2 1.20.4-6.1 [origin: unknown]
 libgudev-1.0-0 1:230-2 [origin: unknown]
 libhogweed4 3.1.1-4ubuntu0.1 [origin: unknown]
 libicu55 55.1-4ubuntu1 [origin: unknown]
 libkmod2 21-1ubuntu1 [origin: unknown]
 liblocale-gettext-perl 1.05-9 [origin: unknown]
 liblzma5 5.1.1alpha+20120614-2ubuntu2 [origin: unknown]
 libmount1 2.26.2-6ubuntu3 [origin: unknown]
 libncurses5 5.9+20150516-2ubuntu1 [origin: unknown]
 libncursesw5 5.9+20150516-2ubuntu1 [origin: unknown]
 libnettle6 3.1.1-4ubuntu0.1 [origin: unknown]
 libp11-kit0 0.23.1-3 [origin: unknown]
 libpam-modules 1.1.8-3.1ubuntu3.2 [origin: unknown]
 libpam-modules-bin 1.1.8-3.1ubuntu3.2 [origin: unknown]
 libpam-runtime 1.1.8-3.1ubuntu3.2 [origi...

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7-rc1 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc1-yakkety/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: needs-apport-collect
Revision history for this message
Bones (boesemar) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected wily
description: updated
Revision history for this message
Bones (boesemar) wrote : CRDA.txt

apport information

Revision history for this message
Bones (boesemar) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Bones (boesemar) wrote : IwConfig.txt

apport information

Revision history for this message
Bones (boesemar) wrote : JournalErrors.txt

apport information

Revision history for this message
Bones (boesemar) wrote : Lspci.txt

apport information

Revision history for this message
Bones (boesemar) wrote : Lsusb.txt

apport information

Revision history for this message
Bones (boesemar) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Bones (boesemar) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Bones (boesemar) wrote : ProcModules.txt

apport information

Revision history for this message
Bones (boesemar) wrote : RfKill.txt

apport information

Revision history for this message
Bones (boesemar) wrote : UdevDb.txt

apport information

Revision history for this message
Bones (boesemar) wrote : WifiSyslog.txt

apport information

Revision history for this message
Bones (boesemar) wrote :

Thanks for trying to help...

I installed linux 4.7rc2 but it gaves me trouble with X freezing, wifi not working and I had to roll-back before I could test the issue. I'll test when having more time. Back on 4.2 now.

managed to run apport-collect now..

Thanks.

penalvch (penalvch)
tags: added: bios-outdated-1.22
Revision history for this message
penalvch (penalvch) wrote :

Bones, to see if this is already resolved, could you please test for this via http://cdimage.ubuntu.com/daily-live/current/ and advise to the results?

tags: removed: needs-apport-collect
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
fugounashi (fugounashi+launchpad) wrote :

present in 16.04

Changed in linux (Ubuntu):
status: Expired → New
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

fugounashi, it is most helpful if you use the computer the problem is reproducible with, and provide necessary debugging logs by filing a new report with Ubuntu via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
penalvch (penalvch)
Changed in linux (Ubuntu):
importance: Medium → Low
Revision history for this message
eris23 (jdkatz23) wrote :

It's back in 5.3.0-13-lowlatency on Eoan.

Revision history for this message
penalvch (penalvch) wrote :

eris23 (jdkatz23), it will help immensely if you use Ubuntu with the computer the problem is reproducible with and file a new report via a terminal to provide necessary debugging logs:
ubuntu-bug linux

Please feel free to subscribe me to it.

tags: added: bios-outdated-1.37
removed: bios-outdated-1.22
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.