Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: udevd problems in 6.2.X? (kernel 2.6.32.6)

  1. #1
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    udevd problems in 6.2.X? (kernel 2.6.32.6)

    I have had a couple of instances of udevd losing control over itself lately. I'm not sure whether it is due to bugs or read/write errors, but it gets confused, uses all the CPU and memory, kills programs to free up memory and makes the system almost unusable. I have killed it, and restarted the daemon by issuing sudo udevd --daemon &. Everything seems to work just fine. But I'm curious as to what this is? I'm not able to see anything leading up to the situation in dmesg output. Anyone experiencing the same or similar?

  2. #2
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by Capricorny View Post
    I have had a couple of instances of udevd losing control over itself lately. I'm not sure whether it is due to bugs or read/write errors, but it gets confused, uses all the CPU and memory, kills programs to free up memory and makes the system almost unusable. I have killed it, and restarted the daemon by issuing sudo udevd --daemon &. Everything seems to work just fine. But I'm curious as to what this is? I'm not able to see anything leading up to the situation in dmesg output. Anyone experiencing the same or similar?
    Sounds pretty bad. Any chance this could be hardware? I'm particularly suspecting memory. There were problems awhile back with "cosmic rays" (high energy gamma particles, actually) causing memory cells to change state, leading to symptoms that could be compared to these (but more random.) If there's one bad bit that will be switched under circumstances you can't nail down, it might produce this effect. Anyway, you've found the trick to get it back under control again - good work, and thanks for sharing.

    Cheers!
    Krishna
    p.s. I'm sure you know already, but for the benefit of others reading this, there is a memory test available at boot-time by typing at the prompt:
    Code:
    memtest

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    I never experienced this problem. If the udevd problem occurs periodically one could restart udevd as a cron job. Instead of killing and starting udevd manually, I would use the shell script /etc/init.d/udev.
    Code:
    sudo /etc/init.d/udev restart
    In the configuration file /etc/udev/udev.conf there is a line setting the log priority. Using the value debug instead of err could help to find an answer. The program udevadm lets you watch and control the activity of the udev daemon:
    Code:
    sudo udevadm monitor
    Since udevadm is a very complex program it seems useful to read its man page.

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Thank you very much!
    I can now rule out my initial guess, KNOPPIX file corruption, as I have checked the md5sums from the image I use and a freshly downloaded, loop-mounted ISO image.
    The results of memtest are somewhat confusing, as it aborts when run with 2x2GB modules, but finds no errors with either of them (ASUS UL30VT.
    I still suspect there is some udevd bug involved, as I had similar behavior on a Dell Vostro.
    Can conflicts between /etc/fstab and /etc/mtab confuse udevd? I have one, /media/sdaX is mounted as /store/local. In any case, I think restarting udevd when system is fully set up may be a good idea.

  5. #5
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Editing /etc/fstab and restarting does not seem to work. The simplest workaround seems to be to start and stop udevd as needed.

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Some of these problems are really nasty. A quick check in the internet revealed that there are quite a few of this same problem reported. Some says it's due to the CDROM, but there is probably no single cause for such misbehavior, so I guess 'udevadm' is probably the best choice for checking root cause. Upgrade the udev version might be an easier thing to try.

    Fortunately I have never have to deal with this problem. However, I do encounter some other nasty problems though. They are widely reported problems, so have nothing to do with knoppix per se.

  7. #7
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    It's definitely not the CDROM here, the UL30VT hasn't got a optical drive at all. It seems to crop up in different ways, last time udevd went crazy it happened while downloading to an ordinarily mounted HD partition with a perfect ext3 filsystem on it. Just had to kill it before it started killing everything else. And the drive was correctly listed in /etc/fstab.

    I'm not terribly interested in getting to the roots of this, as they seem to be multiple, and the basic architecture may have some flaws - I interpret some kernel dev discussions that way.
    Basically, we only need the hotplug manager when things are plugged in and out, otherwise it can rest. Therefore, a safe and simple workaround may be to let it autostart, but stop the daemon when system is set up fine, and only start it when changes are made. And if udevd takes 1% or more of CPU in top's listing, it may be an indication of malfunctioning. Then, it may be safest to stop it (sudo /etc/init.d udev stop) and only restart it when needed.

    A program like udevadm is surely useful for debugging, and for system administration when a lot of complex hotplugging is going on. But it should not be necessary to use when no hotplugging is going on at all!

  8. #8
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Update: Leaving udevd turned off for an extended period of time may lead to losing contact with peripherals, even if no configuration changes are made. So, even though 1-2% of CPU certainly shouldn't be necessary to monitor a system that is not changing, it may be better to have udevd running, and only stop it when it runs wild. (Which happens quite often to me...)

  9. #9
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Have you tested for hardware faults, i.e. bad memory?This is "passing strange" - maybe it's time to search bug reports for udev.

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    As kl522 relates, there are lots of reports about udevd problems. Maybe hardware related, too. I wrote about the conflicting memtest results above. But hardware problems should show up elsewhere too, I think. And here, it seems that everything is working fine, except for udevd. I start wondering if there is some kind of slight incompatibility between Knoppix and udevd in the kernel version 2.6.1 uses.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY picture

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY

$10.00



Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit picture

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit

$99.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Crucial Laptop Ram 32GB (2x16GB) RAM DDR4 3200MHz CT16G4SFRA32A picture

Crucial Laptop Ram 32GB (2x16GB) RAM DDR4 3200MHz CT16G4SFRA32A

$119.99



32GB KIT - 2x SK Hynix 16GB 2Rx8 PC4-2666V DDR4 SODIMM Laptop Memory RAM picture

32GB KIT - 2x SK Hynix 16GB 2Rx8 PC4-2666V DDR4 SODIMM Laptop Memory RAM

$99.99



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



G.SKILL FLARE X5 64GB (2 x 32GB) 6000 MT/s DDR5 (AMD EXPO + INTEL XMP) *CL30* picture

G.SKILL FLARE X5 64GB (2 x 32GB) 6000 MT/s DDR5 (AMD EXPO + INTEL XMP) *CL30*

$785.00



RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED picture

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED

$445.00



SK Hynix 256GB (4x64GB) DDR4 3200MHz PC4-25600 ECC RDIMM 288-Pin Workstation RAM picture

SK Hynix 256GB (4x64GB) DDR4 3200MHz PC4-25600 ECC RDIMM 288-Pin Workstation RAM

$1950.00