udisks-daemon use lots of CPU and need 3 secondes to mount my Kingston USB drive

Bug #1093758 reported by Id2ndR
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

- Hardware: 08ec:0015 M-Systems Flash Disk Pioneers Kingston DataTraveler ELITE
- The trouble doesn't exist with other USB drive I have.
- The trouble is reproducible on every single computer: it isn't related to my hardware confirguration

udisk --monitor output lots of "changed: /org/freedesktop/UDisks/devices/sdc" before "added: /org/freedesktop/UDisks/devices/sdc1".

I tried to change sdc1 partition type from 6 (fat16) to b (fat32) because I'm not sure of the filesystem but that doesn't change anything about udisks-daemon CPU usage and delay before be able to mount the partition.

I'm using Ubuntu 12.04 but the bug has existed in previous version too.
This bug may be related to #726814.

lsusb -vvv:

Bus 001 Device 008: ID 08ec:0015 M-Systems Flash Disk Pioneers Kingston DataTraveler ELITE
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x08ec M-Systems Flash Disk Pioneers
  idProduct 0x0015 Kingston DataTraveler ELITE
  bcdDevice 2.00
  iManufacturer 1
  iProduct 2
  iSerial 3
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 140mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0

dmesg:
[ 2113.393288] usb 1-4: new high-speed USB device number 8 using ehci_hcd
[ 2113.524941] usb 1-4: New USB device found, idVendor=08ec, idProduct=0015
[ 2113.524950] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2113.524956] usb 1-4: Product: DT Elite HS 2.0
[ 2113.524961] usb 1-4: Manufacturer: Kingston
[ 2113.524966] usb 1-4: SerialNumber: 08202A40D093A9CC
[ 2113.525590] scsi12 : usb-storage 1-4:1.0
[ 2114.524855] scsi 12:0:0:0: Direct-Access Kingston DT Elite HS 2.0 5.02 PQ: 0 ANSI: 0 CCS
[ 2114.526520] sd 12:0:0:0: Attached scsi generic sg4 type 0
[ 2114.534321] sd 12:0:0:0: [sdc] Attached SCSI removable disk
[ 2117.691684] sd 12:0:0:0: [sdc] 1019391 512-byte logical blocks: (521 MB/497 MiB)
[ 2117.693678] sd 12:0:0:0: [sdc] No Caching mode page present
[ 2117.693683] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[ 2117.696318] sd 12:0:0:0: [sdc] No Caching mode page present
[ 2117.696322] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[ 2117.698010] sdc: sdc1
---
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
DistroRelease: Ubuntu 12.10
InstallationDate: Installed on 2012-11-11 (45 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
Tags: quantal running-unity
Uname: Linux 3.4.17-030417-generic i686
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip gammu libvirtd lpadmin plugdev sambashare sudo vboxusers
---
ApportVersion: 2.11-0ubuntu1
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: fabien 1758 F.... pulseaudio
DistroRelease: Ubuntu 13.10
HibernationDevice: RESUME=UUID=a1df37cb-148a-4c4e-a771-819d95a9fdd8
InstallationDate: Installed on 2013-07-01 (36 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130701)
MachineType: Hewlett-Packard HP Compaq nc6400 (RR980UC#ABF)
MarkForUpload: True
Package: linux (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.10.0-6-generic root=UUID=3bfe8334-5846-4a2b-8c57-9e073b93cc1a ro rootflags=subvol=@ quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.10.0-6.17-generic 3.10.3
RelatedPackageVersions:
 linux-restricted-modules-3.10.0-6-generic N/A
 linux-backports-modules-3.10.0-6-generic N/A
 linux-firmware 1.112
Tags: saucy
Uname: Linux 3.10.0-6-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/18/2006
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68YCD Ver. F.08
dmi.board.name: 30AC
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 56.34
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68YCDVer.F.08:bd12/18/2006:svnHewlett-Packard:pnHPCompaqnc6400(RR980UC#ABF):pvrF.08:rvnHewlett-Packard:rn30AC:rvrKBCVersion56.34:cvnHewlett-Packard:ct10:cvr:
dmi.product.name: HP Compaq nc6400 (RR980UC#ABF)
dmi.product.version: F.08
dmi.sys.vendor: Hewlett-Packard

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 1093758

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
Id2ndR (id2ndr)
tags: added: apport-collected quantal running-unity
description: updated
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.8 kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

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'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-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/v3.8-rc1-raring/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Id2ndR (id2ndr)
tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Id2ndR, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc4

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: needs-kernel-logs needs-upstream-testing regression-potential
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Id2ndR (id2ndr) wrote : AlsaInfo.txt

apport information

tags: added: saucy
description: updated
Revision history for this message
Id2ndR (id2ndr) wrote : BootDmesg.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : CRDA.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : IwConfig.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : Lspci.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : Lsusb.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : ProcEnviron.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : ProcModules.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : PulseList.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : RfKill.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : UdevDb.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : UdevLog.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote : WifiSyslog.txt

apport information

Revision history for this message
Id2ndR (id2ndr) wrote :

The bug still exist on saucy with kernel 3.10.0.6.15
However the processes are different, and the time to open is worse than previous version. Here is the 3 first line of top output when I plug the usb drive:
 4497 root 20 0 11788 1776 852 S 9,6 0,1 0:01.34 systemd-udevd
 4503 root 20 0 0 0 0 S 7,3 0,0 0:00.99 usb-storage
 2064 root 20 0 51900 4624 3356 S 3,0 0,2 0:01.64 udisksd

Sorry but I won't waste my time to test the latest kernel even if it is a deb package in kernel PPA (I'm pretty sure that the but still exist with this hardware that is nearly ten years old).

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
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.