Comment 2 for bug 726814

Revision history for this message
Leszek Lesner (leszek-lesner) wrote : Re: udisks-daemon uses a ton of CPU after inserting a SanDisk U3 Cruzer Micro usb stick

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)
KERNEL[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)
UDEV [1303421275.363611] 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[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)
...

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.