All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 13783] New: udev causes high cpu usage
@ 2009-07-16  7:36 bugzilla-daemon
  2009-07-16  7:36 ` [Bug 13783] " bugzilla-daemon
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:36 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783

           Summary: udev causes high cpu usage
           Product: IO/Storage
           Version: 2.5
    Kernel Version: 2.6.31-rc3
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: SCSI
        AssignedTo: linux-scsi@vger.kernel.org
        ReportedBy: AndreasFackler@web.de
        Regression: No


Created an attachment (id=22372)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22372)
Output of "udevadm monitor --environment" with udev-141-1.2 and kernel 2.6.30

Before I upgraded the udev version of Ubuntu 9.04 from 141-1 to 141-1.1 (and
141-1.2), top reported about 2% total cpu usage when idle. After the update, it
rarely drops below 35%. Though top lists udevd among the more cpu hungry
processes, it is only listed with about 3%, while system (in line 3) almost
never drops below 20%.

"udevadm monitor --environment" after the upgrade reports many additional
events with "SUBSYSTEM=scsi" and "ACTION=change".

I am using the amd64 version of Xubuntu 9.04 on a Acer Extensa 5230 laptop with
a 2 GHz Intel Celeron processor. The problem occurs with all the kernel
versions I tried: The Ubuntu kernel 2.6.28 and the mainline kernels 2.6.30 and
2.6.31-rc3.

See also the Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/379780

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
@ 2009-07-16  7:36 ` bugzilla-daemon
  2009-07-16  7:37 ` bugzilla-daemon
                   ` (28 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:36 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #1 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 07:36:56 ---
Created an attachment (id=22373)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22373)
Output of "udevadm monitor --environment" with udev-141-1 and kernel 2.6.30

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
  2009-07-16  7:36 ` [Bug 13783] " bugzilla-daemon
@ 2009-07-16  7:37 ` bugzilla-daemon
  2009-07-16  7:38 ` bugzilla-daemon
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:37 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #2 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 07:37:42 ---
Created an attachment (id=22374)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22374)
Output of top with new udev

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
  2009-07-16  7:36 ` [Bug 13783] " bugzilla-daemon
  2009-07-16  7:37 ` bugzilla-daemon
@ 2009-07-16  7:38 ` bugzilla-daemon
  2009-07-16  7:38 ` bugzilla-daemon
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:38 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #3 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 07:38:01 ---
Created an attachment (id=22375)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22375)
Output of top with old udev

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (2 preceding siblings ...)
  2009-07-16  7:38 ` bugzilla-daemon
@ 2009-07-16  7:38 ` bugzilla-daemon
  2009-07-16  7:56 ` bugzilla-daemon
                   ` (25 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:38 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #4 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 07:38:22 ---
Created an attachment (id=22376)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22376)
Output of lspci

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (3 preceding siblings ...)
  2009-07-16  7:38 ` bugzilla-daemon
@ 2009-07-16  7:56 ` bugzilla-daemon
  2009-07-16 17:26 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16  7:56 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Kay Sievers <kay.sievers@vrfy.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kay.sievers@vrfy.org




--- Comment #5 from Kay Sievers <kay.sievers@vrfy.org>  2009-07-16 07:56:47 ---
Something keeps generating media change events in a loop for the optical drive.

If you keep "udevadm monitor" running, but kill udevd, do all events stop?

The event for "sr" open()s the device. I guess, this causes a new change event
for the SCSI LUN (which it shouldn't), and that causes a loop.

Is there anything like HAL or DeviceKit-disks running which polls the optical
drive?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (4 preceding siblings ...)
  2009-07-16  7:56 ` bugzilla-daemon
@ 2009-07-16 17:26 ` bugzilla-daemon
  2009-07-17 11:43 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-16 17:26 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #6 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 17:26:37 ---
Yes, if I stop either udevd or hald-addon-storage, no more events are generated
and cpu usage goes back to normal.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (5 preceding siblings ...)
  2009-07-16 17:26 ` bugzilla-daemon
@ 2009-07-17 11:43 ` bugzilla-daemon
  2009-07-17 15:36 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-17 11:43 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #7 from Kay Sievers <kay.sievers@vrfy.org>  2009-07-17 11:43:24 ---
On Thu, Jul 16, 2009 at 19:26, <bugzilla-daemon@bugzilla.kernel.org> wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=13783

> --- Comment #6 from Andreas Fackler <AndreasFackler@web.de>  2009-07-16 17:26:37 ---
> Yes, if I stop either udevd or hald-addon-storage, no more events are generated
> and cpu usage goes back to normal.

Just to double check:

Killing the hal addon alone makes the event loop stop?

There is a binary: "hal-disable-polling", which can be used to
permanently disable the polling of the device. If you use that and
reboot the box, the issue goes away?

Thanks!

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (6 preceding siblings ...)
  2009-07-17 11:43 ` bugzilla-daemon
@ 2009-07-17 15:36 ` bugzilla-daemon
  2009-07-17 15:58 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-17 15:36 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #8 from Andreas Fackler <AndreasFackler@web.de>  2009-07-17 15:36:25 ---
Thank you for your suggestion! It worked, more or less:

After I entered "hal-disable-polling --device /dev/scd0", the events
immediately stopped (or maybe I didn't wait long enough), but they reappeared
after a reboot, although the file
"/etc/hal/fdi/information/media-check-disable-storage_model_DVD_RW_AD_7560S.fdi"
had been created. So I entered the exact same command "hal-disable-polling
--device /dev/scd0" again, which created the additional file
"/etc/hal/fdi/information/media-check-disable-storage_model_Optiarc_DVD_RW_AD_7560S.fdi"
and in fact ended the events permanently, even after a reboot.

Except if I open the DVD drive: Then events are fired wildly (not just one or
two) and the cpu usage rises to about 30% for a few seconds, until it stops
again. The same thing happens when I close the drive. I don't know whether this
is normal?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (7 preceding siblings ...)
  2009-07-17 15:36 ` bugzilla-daemon
@ 2009-07-17 15:58 ` bugzilla-daemon
  2009-07-23  0:22 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-17 15:58 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #9 from Kay Sievers <kay.sievers@vrfy.org>  2009-07-17 15:58:14 ---
On Fri, Jul 17, 2009 at 17:36, <bugzilla-daemon@bugzilla.kernel.org> wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=13783
>
> So I entered the exact same command "hal-disable-polling
> --device /dev/scd0" again, which created the additional file
> "/etc/hal/fdi/information/media-check-disable-storage_model_Optiarc_DVD_RW_AD_7560S.fdi"
> and in fact ended the events permanently, even after a reboot.

Ah good.

> Except if I open the DVD drive: Then events are fired wildly (not just one or
> two) and the cpu usage rises to about 30% for a few seconds, until it stops
> again. The same thing happens when I close the drive. I don't know whether this
> is normal?

I guess something goes crazy with the media-changed detection.
Sometimes not-tested-in-such-setup/broken firmware for optical drives
does not like us.

We have seen similar behavior on some drives with HAL checking for the
"eject button pressed" events.

In some rare cases there are updates for the drive firmware available.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (8 preceding siblings ...)
  2009-07-17 15:58 ` bugzilla-daemon
@ 2009-07-23  0:22 ` bugzilla-daemon
  2009-07-23  7:58 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-23  0:22 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Andrew Morton <akpm@linux-foundation.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akpm@linux-foundation.org




--- Comment #10 from Andrew Morton <akpm@linux-foundation.org>  2009-07-23 00:22:52 ---
(In reply to comment #9)
> I guess something goes crazy with the media-changed detection.
> Sometimes not-tested-in-such-setup/broken firmware for optical drives
> does not like us.

Seems a reasonable guess.

Do we know which device driver is being used for that drive?

In the ubuntu report at least three people are seeing the same problem.  Is
there a common point where we can address this?  Maybe a blacklist?  Or are we
dealing with three separate low-level drivers?

Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (9 preceding siblings ...)
  2009-07-23  0:22 ` bugzilla-daemon
@ 2009-07-23  7:58 ` bugzilla-daemon
  2009-07-25  3:33 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-23  7:58 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #11 from Andreas Fackler <AndreasFackler@web.de>  2009-07-23 07:58:16 ---
lspci -v and lshw say the SATA controller uses the ahci driver. They don't list
any drivers or modules belonging to the optical drive, and it seems to be the
same in the files Christian Mallwitz posted.
My blacklist files are just the Ubuntu defaults.
Here is what dmesg says:

[    1.500033] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.513385] ata2.00: ATAPI: Optiarc DVD RW AD-7560S, SX07, max UDMA/100,
ATAPI AN
[    1.527733] ata2.00: configured for UDMA/100
[    1.545118] scsi 1:0:0:0: CD-ROM            Optiarc  DVD RW AD-7560S  SX07
PQ: 0 ANSI: 5
[    1.550572] sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda
tray
[    1.550575] Uniform CD-ROM driver Revision: 3.20
[    1.550642] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    1.550691] sr 1:0:0:0: Attached scsi generic sg1 type 5

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (10 preceding siblings ...)
  2009-07-23  7:58 ` bugzilla-daemon
@ 2009-07-25  3:33 ` bugzilla-daemon
  2009-07-31 15:33 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-25  3:33 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Tejun Heo <tj@kernel.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tj@kernel.org




--- Comment #12 from Tejun Heo <tj@kernel.org>  2009-07-25 03:33:49 ---
Hmmm... interesting.  Can someone please strace the polling process and see
what's going on?  Attaching strace to the hal-addon-storage should do the
trick, Kay, right?  It could be that TUR result is alternating.  The problem
probably is that windows doesn't use TUR while polling for media presence while
we do.  There are drives which completely check out after being polled for a
while and this bug report looks like another strain of the same problem.  I'll
try to implement media presence polling inside kernel and use only
GET_EVENT_STATUS_NOTIFICATION as windows does.  Please cc anyone with
reproducible problem cases here.

Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (11 preceding siblings ...)
  2009-07-25  3:33 ` bugzilla-daemon
@ 2009-07-31 15:33 ` bugzilla-daemon
  2009-07-31 15:37 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-31 15:33 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #13 from Andreas Fackler <AndreasFackler@web.de>  2009-07-31 15:33:19 ---
Created an attachment (id=22553)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22553)
strace -f hald

I dont't know how to strace only hald-addon-storage, because it is a child
process of hald and not an executable, so I did "strace -f hald". Within a few
seconds, this generated more than 5 MB of output. I attached the first megabyte
of it.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (12 preceding siblings ...)
  2009-07-31 15:33 ` bugzilla-daemon
@ 2009-07-31 15:37 ` bugzilla-daemon
  2009-07-31 15:44 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-31 15:37 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #14 from Kay Sievers <kay.sievers@vrfy.org>  2009-07-31 15:37:43 ---
On Fri, Jul 31, 2009 at 11:33, <bugzilla-daemon@bugzilla.kernel.org> wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=13783

> I don't know how to strace only hald-addon-storage, because it is a child
> process of hald and not an executable,

You should be able to just attach strace to the running process with "-p
<pid>".

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (13 preceding siblings ...)
  2009-07-31 15:37 ` bugzilla-daemon
@ 2009-07-31 15:44 ` bugzilla-daemon
  2009-10-17  4:01 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-07-31 15:44 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Andreas Fackler <AndreasFackler@web.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22553|0                           |1
        is obsolete|                            |




--- Comment #15 from Andreas Fackler <AndreasFackler@web.de>  2009-07-31 15:44:46 ---
Created an attachment (id=22554)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=22554)
strace -p 10678

Ah, right, I'm sorry! Here's a few seconds of "strace -p 10678", where 10678
was the pid of hald-addon-storage.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (14 preceding siblings ...)
  2009-07-31 15:44 ` bugzilla-daemon
@ 2009-10-17  4:01 ` bugzilla-daemon
  2009-10-17  4:06 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-17  4:01 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Wendall Cada <wendallc@83864.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wendallc@83864.com




--- Comment #16 from Wendall Cada <wendallc@83864.com>  2009-10-17 04:01:15 ---
I have the same issue. I have the exact results as detailed in Comment #8
(Here is the data on my hardware. (Please let me know if any additional
debugging information is required.)

Fedora Core 11

Linux version 2.6.30.8-64.fc11.i686.PAE (mockbuild@x86-6.fedora.phx.redhat.com)
(gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) ) #1 SMP

Output from hal-disable-polling --device /dev/sr0
Polling for drive /dev/sr0 have been disabled. The fdi file written was
 
/etc/hal/fdi/information/media-check-disable-storage_model_DVD_RW_AD_7560S.fdi

Partial output from devkit -m
action=change @ 19:46:30.318587
device:          
/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
  subsystem:      block
  device file:    /dev/sr0
    symlink:      /dev/block/11:0
    symlink:      /dev/scd0
    symlink:      /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0
    symlink:      /dev/cdrom
    symlink:      /dev/cdrw
    symlink:      /dev/dvd
    symlink:      /dev/dvdrw
  properties:
    ID_VENDOR_ENC=Optiarc\x20
    UDEV_LOG=3
    ID_CDROM_MRW=1
    ACL_CDROM=1
    ID_MODEL=DVD_RW_AD-7560S
    ID_TYPE=cd
    ID_CDROM=1
    ID_CDROM_DVD_RAM=1
    ID_PATH=pci-0000:00:1f.2-scsi-1:0:0:0
    DEVTYPE=disk
    ID_VENDOR=Optiarc
    SEQNUM=89215
    DEVNAME=/dev/sr0
    ACTION=change
    ID_CDROM_DVD=1
   
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
    ID_CDROM_CD_R=1
    ID_BUS=scsi
    ID_CDROM_DVD_R=1
    MAJOR=11
    SUBSYSTEM=block
    ID_MODEL_ENC=DVD\x20RW\x20AD-7560S\x20
    ID_CDROM_MRW_W=1
    ID_CDROM_CD_RW=1
    GENERATED=1
    DEVLINKS=/dev/block/11:0 /dev/scd0
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0 /dev/cdrom /dev/cdrw /dev/dvd
/dev/dvdrw
    MINOR=0
    ID_REVISION=S805

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (15 preceding siblings ...)
  2009-10-17  4:01 ` bugzilla-daemon
@ 2009-10-17  4:06 ` bugzilla-daemon
  2009-10-18  3:06 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-17  4:06 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #17 from Wendall Cada <wendallc@83864.com>  2009-10-17 04:06:01 ---
I apologise. I forgot to add this bug was found in udev-141-7.fc11 i586

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (16 preceding siblings ...)
  2009-10-17  4:06 ` bugzilla-daemon
@ 2009-10-18  3:06 ` bugzilla-daemon
  2009-10-19  3:46 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-18  3:06 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #18 from Tejun Heo <tj@kernel.org>  2009-10-18 03:06:34 ---
The strace output doesn't indicate anything suspicious.  It's just polling for
event w/ 2 sec timeout.  I don't see how that could cause high cpu usage. 
Wendall, can you please strace the process which is consuming cpu?  Also, is
the wasted cpu time system or user?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (17 preceding siblings ...)
  2009-10-18  3:06 ` bugzilla-daemon
@ 2009-10-19  3:46 ` bugzilla-daemon
  2009-10-22  7:00 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-19  3:46 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #19 from Wendall Cada <wendallc@83864.com>  2009-10-19 03:46:23 ---
What's interesting is that the cpu usage is spread across several processes:
devkit-disks-daemon 3%-8% (user)
gvfs-gdu-volume-monitor 3%-8% (system)
dbus-daemon 3%-8% (system)
gdu-notification-daemon 3%-8% (user)
udevd 1%-2% (system)

The cpu spikes to about 35%-40% usage for 30 seconds, then drops down to about
15%-20% for around a second and repeats the cycle.

I'm not sure which process I should provide an strace for. Or even if this is a
udev bug at this point. Suggestions?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (18 preceding siblings ...)
  2009-10-19  3:46 ` bugzilla-daemon
@ 2009-10-22  7:00 ` bugzilla-daemon
  2009-10-26 15:08 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-22  7:00 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


jt512@jt512.dyndns.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jt512@jt512.dyndns.org




--- Comment #20 from jt512@jt512.dyndns.org  2009-10-22 07:00:28 ---
Has this problem been fixed in version 147?  I had this problem in versions 145
and 146 in Arch64, but I just installed udev-147~-6, which someone has ported
from ubuntu to Arch, and the problem is gone.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (19 preceding siblings ...)
  2009-10-22  7:00 ` bugzilla-daemon
@ 2009-10-26 15:08 ` bugzilla-daemon
  2009-11-20  8:15 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-10-26 15:08 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #21 from Tejun Heo <tj@kernel.org>  2009-10-26 15:08:24 ---
Wendall, can you also please test udev version 147?  Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (20 preceding siblings ...)
  2009-10-26 15:08 ` bugzilla-daemon
@ 2009-11-20  8:15 ` bugzilla-daemon
  2009-11-27  9:52 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-11-20  8:15 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Petr Stehlik <pstehlik@sophics.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pstehlik@sophics.cz




--- Comment #22 from Petr Stehlik <pstehlik@sophics.cz>  2009-11-20 08:15:09 ---
With up-to-date Ubuntu Karmic Koala and its udev-147~-6.1 the problem is still
there (Acer Extensa 5630EZ with Optiarc DVD RW AD-7560S)

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (21 preceding siblings ...)
  2009-11-20  8:15 ` bugzilla-daemon
@ 2009-11-27  9:52 ` bugzilla-daemon
  2010-01-03  1:42 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2009-11-27  9:52 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #23 from Petr Stehlik <pstehlik@sophics.cz>  2009-11-27 09:51:53 ---
I have tried some PPA build of udev-147~-6.2 but it didn't help either. What
can I do to get this fixed? 55% CPU load is not fun. Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (22 preceding siblings ...)
  2009-11-27  9:52 ` bugzilla-daemon
@ 2010-01-03  1:42 ` bugzilla-daemon
  2010-01-17 21:15 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-01-03  1:42 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #24 from jt512@jt512.dyndns.org  2010-01-03 01:42:32 ---
Is anybody working on this bug?  It is being reported by numerous people in the
Archlinux forums.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (23 preceding siblings ...)
  2010-01-03  1:42 ` bugzilla-daemon
@ 2010-01-17 21:15 ` bugzilla-daemon
  2010-02-01 23:35 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-01-17 21:15 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Bruno Yporti <bruno@yporti.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bruno@yporti.com




--- Comment #25 from Bruno Yporti <bruno@yporti.com>  2010-01-17 21:15:26 ---
I have the same problem here in my Lenovo 3000 G530 with
Optiarc_DVD_RW_AD_7580S.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (24 preceding siblings ...)
  2010-01-17 21:15 ` bugzilla-daemon
@ 2010-02-01 23:35 ` bugzilla-daemon
  2010-02-08 19:45 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-02-01 23:35 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #26 from jt512@jt512.dyndns.org  2010-02-01 23:35:39 ---
This but persists in version 151.

I also have the Optiarc_DVD_RW_AD_7580S.

It's been nearly six months since this bug was reported.  What's up?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (25 preceding siblings ...)
  2010-02-01 23:35 ` bugzilla-daemon
@ 2010-02-08 19:45 ` bugzilla-daemon
  2010-02-09  3:37 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-02-08 19:45 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Chase Douglas <chasedouglas@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chasedouglas@gmail.com




--- Comment #27 from Chase Douglas <chasedouglas@gmail.com>  2010-02-08 19:45:43 ---
Every report so far has been of the Optiarc_DVD_RW_AD_7580S drive. Is there
anyone who has seen this issue on any other drive?

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (26 preceding siblings ...)
  2010-02-08 19:45 ` bugzilla-daemon
@ 2010-02-09  3:37 ` bugzilla-daemon
  2010-02-10 10:27 ` bugzilla-daemon
  2010-02-15 16:42 ` bugzilla-daemon
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-02-09  3:37 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783





--- Comment #28 from Tejun Heo <tj@kernel.org>  2010-02-09 03:37:00 ---
Sorry about lack or response.  If the problem is limited to a single drive, is
anyone interested in sending me the device?  I'll pay for the replacement unit
and shipping via paypal.

Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (27 preceding siblings ...)
  2010-02-09  3:37 ` bugzilla-daemon
@ 2010-02-10 10:27 ` bugzilla-daemon
  2010-02-15 16:42 ` bugzilla-daemon
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-02-10 10:27 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Martin Pitt <martin.pitt@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.pitt@ubuntu.com




--- Comment #29 from Martin Pitt <martin.pitt@ubuntu.com>  2010-02-10 10:26:40 ---
> Every report so far has been of the Optiarc_DVD_RW_AD_7580S drive. Is there
> anyone who has seen this issue on any other drive?

The downstream bug report also reported this to happen on a slightly different
model:

UDEV  [1243584928.060421] change  
/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0 (block)
[...]
ID_VENDOR=Optiarc
ID_VENDOR_ENC=Optiarc\x20
ID_MODEL=DVD_RW_AD-7640S
ID_MODEL_ENC=DVD\x20RW\x20AD-7640S\x20
ID_REVISION=HJ01
ID_TYPE=cd

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [Bug 13783] udev causes high cpu usage
  2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
                   ` (28 preceding siblings ...)
  2010-02-10 10:27 ` bugzilla-daemon
@ 2010-02-15 16:42 ` bugzilla-daemon
  29 siblings, 0 replies; 31+ messages in thread
From: bugzilla-daemon @ 2010-02-15 16:42 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13783


Ian Goodacre <Ian.Goodacre@xtra.co.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ian.Goodacre@xtra.co.nz




--- Comment #30 from Ian Goodacre <Ian.Goodacre@xtra.co.nz>  2010-02-15 16:42:10 ---
(In reply to comment #8)
> After I entered "hal-disable-polling --device /dev/scd0"...

I had to run "hal-disable-polling --device /dev/sr0" three times before the
stream of events stopped. I now have three files in /etc/hal/fdi/information:

media-check-disable-storage_model_DVD_RW_AD_7580S.fdi
media-check-disable-storage_model_Optiarc_DVD_RW_AD_7580S_0.fdi
media-check-disable-storage_model_Optiarc_DVD_RW_AD_7580S.fdi

They were produced in the order listed.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2010-02-15 16:42 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-16  7:36 [Bug 13783] New: udev causes high cpu usage bugzilla-daemon
2009-07-16  7:36 ` [Bug 13783] " bugzilla-daemon
2009-07-16  7:37 ` bugzilla-daemon
2009-07-16  7:38 ` bugzilla-daemon
2009-07-16  7:38 ` bugzilla-daemon
2009-07-16  7:56 ` bugzilla-daemon
2009-07-16 17:26 ` bugzilla-daemon
2009-07-17 11:43 ` bugzilla-daemon
2009-07-17 15:36 ` bugzilla-daemon
2009-07-17 15:58 ` bugzilla-daemon
2009-07-23  0:22 ` bugzilla-daemon
2009-07-23  7:58 ` bugzilla-daemon
2009-07-25  3:33 ` bugzilla-daemon
2009-07-31 15:33 ` bugzilla-daemon
2009-07-31 15:37 ` bugzilla-daemon
2009-07-31 15:44 ` bugzilla-daemon
2009-10-17  4:01 ` bugzilla-daemon
2009-10-17  4:06 ` bugzilla-daemon
2009-10-18  3:06 ` bugzilla-daemon
2009-10-19  3:46 ` bugzilla-daemon
2009-10-22  7:00 ` bugzilla-daemon
2009-10-26 15:08 ` bugzilla-daemon
2009-11-20  8:15 ` bugzilla-daemon
2009-11-27  9:52 ` bugzilla-daemon
2010-01-03  1:42 ` bugzilla-daemon
2010-01-17 21:15 ` bugzilla-daemon
2010-02-01 23:35 ` bugzilla-daemon
2010-02-08 19:45 ` bugzilla-daemon
2010-02-09  3:37 ` bugzilla-daemon
2010-02-10 10:27 ` bugzilla-daemon
2010-02-15 16:42 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.