Author Topic: udevd cpu high usage <SOLVED>  (Read 3493 times)

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
udevd cpu high usage <SOLVED>
« on: February 08, 2012, 03:54:42 PM »
After a recent update my pc now sits at 100% cpu usage after some time period. If I reboot, my pc acts normal but after I leave it sit for a while by itself, it gets sluggish.  I noticed from system activity that, udevd goes to a high cpu usage rate.

I also notice when I shutdown pclinux, that the avahi daemon fails to kill. I don't know if this is related to the same issue.

I have kde. Let me know if you need any other stats. My last update was yesterday and my cpu usage was 100% today when I got home from work.

Anyone else had this issue? Ideas?






« Last Edit: February 13, 2012, 02:56:00 PM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: udevd cpu high usage (avahi related?)
« Reply #1 on: February 08, 2012, 04:01:12 PM »
Run top or htop in a terminal to see what is hogging the CPU. With htop, you can toggle tree view mode with the F5 key to see what processes are called by udevd.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #2 on: February 08, 2012, 04:03:15 PM »
Thanks. Right now its ok, since I rebooted. When it gets hogged up again, I will do that.

My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #3 on: February 08, 2012, 04:37:41 PM »
I think my cpu usage is slowly creeping up over time. Here it is 10 minutes or so after reboot.

Had to install htop. Can you copy text from it?

Never posted a pic before on this forum. Lets try this.
http://i68.blocked-photobucket/albums/i39/docnascar/debug/53_percent_cpu.png

Why is the address changing to blocked?

Code: [Select]
"http://i68.photobucket..."
"http://i68.blocked-photobucket..."


« Last Edit: February 08, 2012, 04:44:33 PM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #4 on: February 08, 2012, 04:49:34 PM »
It is creeping up.
~30 minutes into it and we are 93% cpu usage now.

My swap says 0, is that right?

I don't know how to get the pics to work with photobucket yet. Still playing.

udevd says command is /sbin/udevd -d


My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Online JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2115
Re: udevd cpu high usage (avahi related?)
« Reply #5 on: February 08, 2012, 04:52:09 PM »
« Last Edit: February 08, 2012, 05:08:32 PM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #6 on: February 08, 2012, 04:59:20 PM »
I see now.
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #7 on: February 08, 2012, 05:19:18 PM »
35 min after reboot, cpu 93%. Its 100% now after 1hr. Note: I filtered udevd.
« Last Edit: February 08, 2012, 05:25:18 PM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: udevd cpu high usage (avahi related?)
« Reply #8 on: February 08, 2012, 05:49:43 PM »
docnascar,

try to run the following command, should produce more useful info:  ;)
Code: [Select]
udevadm monitor
AS

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #9 on: February 08, 2012, 07:06:15 PM »
docnascar,

try to run the following command, should produce more useful info:  ;)
Code: [Select]
udevadm monitor
AS

 
Yeh, I saw this command on another forum and was just messing around.


When I ran udevadm monitor it will scroll out things forever until I sent a ctrl-c. I kill the udevd and ran it again and now it doesn't scroll the udev part. And my cpu usage went from 100% to 13%.

Not sure what these define:
Code: [Select]
UDEV  [1328747544.837962] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.859897] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)

It constantly scrolled the above. I can't post my terminal output for some reason. The forum is giving me errors. I'll keep trying to get the rest of it.
« Last Edit: February 08, 2012, 07:12:44 PM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #10 on: February 08, 2012, 07:18:19 PM »
Code: [Select]
[root@localhost docnascar]# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

UDEV  [1328747544.837962] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.859897] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.869777] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747544.915692] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.927888] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.953266] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747544.961158] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.986225] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.998752] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.023131] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.035914] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.046845] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.081109] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.099813] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.122756] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.132132] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.161761] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.171839] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.190176] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.217451] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.228797] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.255099] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.274771] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.295735] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.307924] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.331769] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.367749] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.385703] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.404395] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.433565] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.455932] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.470049] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.480904] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.507218] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.537766] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.547838] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.562852] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.570669] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.571005] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.590751] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.604086] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.641887] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.659772] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.680841] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.704784] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.719880] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.735060] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.760446] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.771787] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.788976] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.802489] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.813775] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.844824] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.857921] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.875758] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.884776] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.914806] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747545.924798] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
UDEV  [1328747545.960618] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
^C[root@localhost docnascar]#
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: udevd cpu high usage (avahi related?)
« Reply #11 on: February 08, 2012, 07:19:03 PM »
docnascar,

try to run the following command, should produce more useful info:  ;)
Code: [Select]
udevadm monitor
AS

 
Yeh, I saw this command on another forum and was just messing around.


When I ran udevadm monitor it will scroll out things forever until I sent a ctrl-c. I kill the udevd and ran it again and now it doesn't scroll the udev part. And my cpu usage went from 100% to 13%.

Not sure what these define:
Code: [Select]
UDEV  [1328747544.837962] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.859897] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)

It constantly scrolled the above. I can't post my terminal output for some reason. The forum is giving me errors. I'll keep trying to get the rest of it.


Look like a disk (or optical unit) attached to ide1 is doing some "... excessive noise ..."  :D

Is it possible for you to either disable this uniy from BIOS or physically disconnect it ? Just to verify if the issue go away.
Can you post more info about that unit (brand/model ...)  and may be also the ide driver module ... ?

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #12 on: February 08, 2012, 07:21:56 PM »
docnascar,

try to run the following command, should produce more useful info:  ;)
Code: [Select]
udevadm monitor
AS


 
Yeh, I saw this command on another forum and was just messing around.


When I ran udevadm monitor it will scroll out things forever until I sent a ctrl-c. I kill the udevd and ran it again and now it doesn't scroll the udev part. And my cpu usage went from 100% to 13%.

Not sure what these define:
Code: [Select]
UDEV  [1328747544.837962] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)
KERNEL[1328747544.859897] change   /devices/pci0000:00/0000:00:0d.0/ide1/1.1/block/hdd (block)

It constantly scrolled the above. I can't post my terminal output for some reason. The forum is giving me errors. I'll keep trying to get the rest of it.



Look like a disk (or optical unit) attached to ide1 is doing some "... excessive noise ..."  :D

Is it possible for you to either disable this uniy from BIOS or physically disconnect it ? Just to verify if the issue go away.
Can you post more info about that unit (brand/model ...)  and may be also the ide driver module ... ?



Its funny you mention this. I read this in a thread about an optiarc dvd drive. I'm not sure what I have.
http://www.linuxquestions.org/questions/slackware-14/udevd-high-cpu-load-810937/


My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: udevd cpu high usage (avahi related?)
« Reply #13 on: February 08, 2012, 07:30:50 PM »
Its funny you mention this. I read this in a thread about an optiarc dvd drive. I'm not sure what I have.
http://www.linuxquestions.org/questions/slackware-14/udevd-high-cpu-load-810937/


I do my reading ... on the net  :D
About the drive brand model ... try dmesg or look into /var/log/messages, /var/log/syslog /var/loog/boot ...

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: udevd cpu high usage (avahi related?)
« Reply #14 on: February 08, 2012, 07:51:35 PM »
No vendor yet just:

Code: [Select]
Probing IDE interface ide1...
hdd: 48X12X50 CD-RW 1.04 20021101, ATAPI CD/DVD-ROM drive
hdd: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hdd: UDMA/33 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15

All those logs say pretty much the same thing.
hdd: 48X12X50 CD-RW 1.04 20021101, ATAPI CD/DVD-ROM drive
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p