udisksd high CPU usage
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/
/dev/snd/
DistroRelease: Ubuntu 15.10
HibernationDevice: RESUME=
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=
ProcVersionSign
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.
RelatedPackageV
linux-
linux-
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.
dmi.board.name: 20BXCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40709 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 20BXCTO1WW
dmi.product.
dmi.sys.vendor: LENOVO
tags: | added: needs-apport-collect |
tags: | added: bios-outdated-1.22 |
Changed in linux (Ubuntu): | |
importance: | Medium → Low |
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.