0781:5406 udisks-daemon uses a ton of CPU after inserting a SanDisk U3 Cruzer Micro usb stick
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Fedora) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux-2.6 (Debian) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: udisks
Immediately after inserting this device I end up seeing this in top:
1521 bdmurray 20 0 153m 4848 3248 R 48 0.3 3:22.45 gvfs-gdu-volume
1523 root 20 0 133m 4756 3200 S 38 0.3 2:42.85 udisks-daemon
1599 bdmurray 20 0 225m 10m 7884 S 22 0.6 1:33.28 gdu-notificatio
1742 bdmurray 20 0 361m 16m 11m R 22 0.9 1:31.53 update-notifier
463 root 18 -2 21664 1132 392 S 18 0.1 1:16.45 udevd
I wonder if it is related to the fake cd-rom on the stick:
[ 3925.041043] scsi 6:0:0:1: CD-ROM SanDisk U3 Cruzer Micro 6.51 PQ: 0 ANSI: 0
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: udisks 1.0.2-3+ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-5-generic x86_64
Architecture: amd64
Date: Mon Feb 28 13:47:38 2011
EcryptfsInUse: Yes
HotplugNewDevices: /dev/sdb /dev/sdb1
HotplugNewMounts: /dev/sdb1 /media/6F51-B12A vfat rw,nosuid,
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: LENOVO 0831CTO
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: udisks
Symptom: storage
UpgradeStatus: Upgraded to natty on 2011-02-24 (3 days ago)
dmi.bios.date: 09/15/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET53WW (1.23 )
dmi.board.name: 0831CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 0831CTO
dmi.product.
dmi.sys.vendor: LENOVO
affects: | udisks (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
affects: | udisks (Debian) → linux-2.6 (Debian) |
summary: |
- udisks-daemon uses a ton of CPU after inserting a SanDisk U3 Cruzer - Micro usb stick + 0781:5406 udisks-daemon uses a ton of CPU after inserting a SanDisk U3 + Cruzer Micro usb stick |
tags: | added: needs-upstream-testing |
I am seeing the exact same on my debian system with the 2.6.38-2-686 kernel.
Aswell as in Fedora 15 Beta that uses also a 2.6.38 kernel.
So my guess its a kernel bug.
Ah and btw. the reason for the high cpu rate in udisks and maybe udev is caused by a redetection of the stick every few seconds. So a /sbin/udevadm monitor (executed in a terminal of course) will give you a list of constantly detected new or changed devices like this :
KERNEL[ 1303421275. 345520] change /devices/ pci0000: 00/0000: 00:1d.7/ usb2/2- 5/2-5:1. 0/host7/ target7: 0:0/7:0: 0:1/block/ sr1 (block) 1303421275. 360795] change /devices/ pci0000: 00/0000: 00:1d.7/ usb2/2- 5/2-5:1. 0/host7/ target7: 0:0/7:0: 0:1/block/ sr1 (block) pci0000: 00/0000: 00:1d.7/ usb2/2- 5/2-5:1. 0/host7/ target7: 0:0/7:0: 0:1/block/ sr1 (block) 1303421275. 377142] change /devices/ pci0000: 00/0000: 00:1d.7/ usb2/2- 5/2-5:1. 0/host7/ target7: 0:0/7:0: 0:1/block/ sr1 (block)
KERNEL[
UDEV [1303421275.363611] change /devices/
KERNEL[
...
Restarting udev after unplugging the stick again should stop the high cpu usage.
So executing /etc/init.d/udev restart and the cpu usage is normal again.