You are not logged in.

#1 2009-08-27 12:51:49

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

tons of udevd instances

I updated udev recently, and now for some reason I get 100 udevd instances:

$ ps -A | grep udevd | wc -l
100

What is wrong here? This is annoying since these processes combined are eating up a good portion of CPU.

Last edited by wakkadojo (2009-08-27 12:52:35)

Offline

#2 2009-08-27 13:55:56

silverhat
Member
From: Vietnam
Registered: 2009-04-07
Posts: 5

Re: tons of udevd instances

Same issue here, I have 79 udevd, waste 25% CPU, 150 MB Ram hmm

Offline

#3 2009-08-27 19:16:22

TamCore
Member
Registered: 2009-08-27
Posts: 3

Re: tons of udevd instances

Same Problem here. At the moment i limit the cpu usage with `cpulimit -e /sbin/udevd -l 1`. Its not the best solution, but it helps.

Offline

#4 2009-08-27 23:26:10

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: tons of udevd instances

Similar, but I only have two instances. Doesn't seem to be a bug in Arch, though - I've seen it on the Ubuntu Jaunty bugtracker too. Rolling back to an older kernel version seemed to help there. Now if I only could find the corresponding flyspray entry...

<edit>Does anyone of you possibly have an integrated Intel GM45 chipset? I do. This thread might cover the same issue.

<edit 2>Now it's 108 instances. Highscore! sad

Last edited by Runiq (2009-08-28 08:26:11)

Offline

#5 2009-08-28 02:01:10

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: tons of udevd instances

Runiq wrote:

Similar, but I only have two instances.

That's my problem.  High cpu usage, two udevd instances.  Rolling-back udev solved the problem, but also had to roll back a number of dependencies.

Jay

Offline

#6 2009-08-29 15:38:34

toflames
Member
Registered: 2009-07-20
Posts: 21

Re: tons of udevd instances

Hi,

I've got the same problem after update, two udev process eating a lot of CPU time.
But in my case the boot took also realy longer, "Waiting for udev uevent" took more than 3min at each boot!
So I downgraded it too...

Offline

#7 2009-08-29 16:38:52

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

Re: tons of udevd instances

I just downgraded as well. There was a dependency conflict (the new gstreamer needed the new udev), but I ignored it. I doubt it's anything serious.

EDIT

Intel GM45 chipset here

Last edited by wakkadojo (2009-08-30 03:01:53)

Offline

#8 2009-08-29 21:41:32

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: tons of udevd instances

No problems here ... 3 udevd instances at it behaves. AMD Turion X2 with Ati RS690 chipset here.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2009-09-02 01:16:54

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 378

Re: tons of udevd instances

jt512 wrote:
Runiq wrote:

Similar, but I only have two instances.

That's my problem.  High cpu usage, two udevd instances.  Rolling-back udev solved the problem, but also had to roll back a number of dependencies.

Jay

Same here. It seems to happen just after resuming, not after a clean start.


All your base are belong to us

Offline

#10 2009-09-10 23:56:09

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

Re: tons of udevd instances

Problem persists with the new udev-146 version

Offline

#11 2009-09-11 01:18:44

Bogart
Member
From: Madrid, Spain
Registered: 2005-06-22
Posts: 263

Re: tons of udevd instances

Do people having this problem know if it is the same or related to the one described here?

Basically, if you have a G45 chipset and in a terminal you type (as root): "udevadm monitor" and get lots of messages (when the problem starts), it's probably the same. Otherwise it might be completely unrelated.

If it is the same bug, it is not related to udev, it is a kernel bug introduced in 2.6.30. It is already reported and it's being investigated.

Offline

#12 2009-09-11 01:49:46

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: tons of udevd instances

Bogart wrote:

Do people having this problem know if it is the same or related to the one described here?

Basically, if you have a G45 chipset and in a terminal you type (as root): "udevadm monitor" and get lots of messages (when the problem starts), it's probably the same. Otherwise it might be completely unrelated.

If it is the same bug, it is not related to udev, it is a kernel bug introduced in 2.6.30. It is already reported and it's being investigated.

I doubt it is the same problem.  There were no excess udevd processes or excess cpu usage by udevd, using kernel 2.6.30, until udev was upgraded to 145-1, and reverting to udev 141-5 alleviates the problem.

Jay

Offline

#13 2009-09-11 01:55:49

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: tons of udevd instances

No problem here, running linux kernel 2.6.31 with intel 945gm video.
udev only has 3 instances

Offline

#14 2009-09-11 06:15:56

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: tons of udevd instances

3 instances here... running 2.6.30 - bfs kernel

Offline

#15 2009-09-11 14:06:42

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 378

Re: tons of udevd instances

Running udevadm monitor gives me thousands of messages

I have Intel PM45 chipset and Nvidia 9600M GT video card.

As jt512 said, I think is an udev related bug because downgrading it solves the problem.


All your base are belong to us

Offline

#16 2009-09-26 01:24:38

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

Re: tons of udevd instances

MartinZ, I also have an Intel PM45 with NVIDIA 9600M GT, and I also get thousands of messages when running udavadm. I wonder if this will ever be fixed. If not, it will only be a matter of time before many programs will be incompatible with similar systems since so many depend on udev.

Last edited by wakkadojo (2009-09-26 01:55:29)

Offline

#17 2009-10-11 06:37:20

wakkadojo
Member
Registered: 2009-05-31
Posts: 50

Re: tons of udevd instances

New kernel/NVIDIA drivers did not resolve the problem

Offline

#18 2009-10-11 08:42:12

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: tons of udevd instances

Arch bug report, upstream bug report.

Seems to have something to do with the optical drive (as udevadm monitor --property suggests). If you can add anything valuable to the upstream report, please do smile

Offline

#19 2009-10-12 22:24:45

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 378

Re: tons of udevd instances

I just installed udev-stable from AUR and am happy now, though that's not a real solution...

Great, Gnome 2.28 doesnt work with udev 141.

Last edited by MartinZ (2009-10-14 00:59:57)


All your base are belong to us

Offline

#20 2009-10-21 20:02:52

Gianfrix
Member
From: Locorotondo (BA) - Italy
Registered: 2009-10-21
Posts: 41
Website

Re: tons of udevd instances

Hi! I just tried Ubuntu 9.10 beta and I did not have problems with udev, that I found here on Arch with udev 146 (high CPU, lots of udev instances, etc)
I don't like Ubuntu too much (xD) so I tried to port ubuntu's udev to Arch

The result is this PKGBUILD: http://aur.archlinux.org/packages.php?ID=31373

Everything works correctly: no high cpu, only 3 udev instances, GNOME 2.28 works right... try it if you have problems, it may help you big_smile

Also now udevadm monitor does not show any message regarding the optical drive...

UDev processing takes 13 seconds though, but it's better than infinite XD

Last edited by Gianfrix (2009-10-21 20:07:34)


~ Gianfrix
There's no place like 127.0.0.1

Offline

#21 2009-10-21 23:41:06

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: tons of udevd instances

Gianfrix wrote:

Hi! I just tried Ubuntu 9.10 beta and I did not have problems with udev, that I found here on Arch with udev 146 (high CPU, lots of udev instances, etc)
I don't like Ubuntu too much (xD) so I tried to port ubuntu's udev to Arch

The result is this PKGBUILD: http://aur.archlinux.org/packages.php?ID=31373

This indeed fixed my udev high cpu usage problem.  So, thanks for the good work.  There was one small problem, though: udev now loads the heinous pcspkr module, which I have blacklisted in rc.conf.  I tried to prevent udev from loading it by putting "alias pcspkr off" in modules.conf, but that didn't work; but I was able to unload it using "modprobe -r pcspkr" in rc.local.

Anybody know a cleaner fix?

Jay

Offline

#22 2009-10-23 21:52:52

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 378

Re: tons of udevd instances

Gianfrix wrote:

Hi! I just tried Ubuntu 9.10 beta and I did not have problems with udev, that I found here on Arch with udev 146 (high CPU, lots of udev instances, etc)
I don't like Ubuntu too much (xD) so I tried to port ubuntu's udev to Arch

The result is this PKGBUILD: http://aur.archlinux.org/packages.php?ID=31373

Everything works correctly: no high cpu, only 3 udev instances, GNOME 2.28 works right... try it if you have problems, it may help you big_smile

Also now udevadm monitor does not show any message regarding the optical drive...

UDev processing takes 13 seconds though, but it's better than infinite XD

Thanks, it works fine


All your base are belong to us

Offline

#23 2009-10-31 08:57:26

checko55
Member
Registered: 2009-10-31
Posts: 2

Re: tons of udevd instances

Gianfrix wrote:

Hi! I just tried Ubuntu 9.10 beta and I did not have problems with udev, that I found here on Arch with udev 146 (high CPU, lots of udev instances, etc)
I don't like Ubuntu too much (xD) so I tried to port ubuntu's udev to Arch

The result is this PKGBUILD: http://aur.archlinux.org/packages.php?ID=31373

Everything works correctly: no high cpu, only 3 udev instances, GNOME 2.28 works right... try it if you have problems, it may help you big_smile

Also now udevadm monitor does not show any message regarding the optical drive...

UDev processing takes 13 seconds though, but it's better than infinite XD

hi!

when i try to install the package with yaourt i get following compile-error.
can you help me with this issue?

.
.
.
.
CCLD   extras/edd_id/edd_id
  CC     extras/floppy/create_floppy_devices.o
  CCLD   extras/floppy/create_floppy_devices
  CC     extras/path_id/path_id.o
  CCLD   extras/path_id/path_id
  CC     extras/fstab_import/fstab_import.o
  CCLD   extras/fstab_import/fstab_import
  CC     extras/scsi_id/scsi_id.o
  CC     extras/scsi_id/scsi_serial.o
In file included from extras/scsi_id/scsi_serial.c:28:
/usr/include/scsi/scsi.h:145: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:156: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
make[2]: *** [extras/scsi_id/scsi_serial.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build udev-ubuntu package.

thx in advance

Offline

#24 2009-11-29 04:34:11

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 378

Re: tons of udevd instances

udev 147-1 in testing seems to (finally) have solved the problem


All your base are belong to us

Offline

#25 2009-11-29 12:08:55

mukul_s
Member
From: India
Registered: 2009-08-14
Posts: 34

Re: tons of udevd instances

MartinZ wrote:

udev 147-1 in testing seems to (finally) have solved the problem

how to get it from testing??
Also, can more people confirm this...


Regards
Mukul

Offline

Board footer

Powered by FluxBB