[Bug 780266] Re: udevd takes 100% of cpu
There is a source code patch in the message - it should be applied to the original sources, and re-compiled. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
Where is the patch, and how to apply it? I couldn't find it in the link. Please direct me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
I have found a way to reduce CPU load without entirely stopping the udev queue. Create /etc/udev/rules.d/my.rules file, and put the following line into it: KERNEL==sr1, ACTION==change, WAIT_FOR=nothing This will introduce a 10 seconds delay when processing 'change' events from /dev/sr1. As a result, CPU load returns to normal. I did not notice any negative side effects so far. Other udev events seem to get processed normally. This is still a work-around, not a solution. The solution would be to find out exactly what's wrong with the existing udev rules, and fix the problem there. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
Here's the answer from Kay Sievers (udev mailing list): It's a broken device, that tells with every check that the media has changed. This patch needs to be tested: http://marc.info/?l=linux-hotplugm=130843331916959w=2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 780266] Re: udevd takes 100% of cpu
thank-you for this solution. I've been plugging my memory stick into my NAS and using NFS to mount it, which is clearly stupid. Your solution is much better. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
I have the same problem with USB stick with integrated CD (Transcend). I often keep it inserted all the time, so I have to disable udev with 'udevadm control --stop-exec-queue'. This is not a solution, of course, but so far I could not figure out how to block media change events from sr1. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/780266/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
A trigger of this is inserting my Sandisk Cruzer USB memory stick with fake integrated CD-ROM. This it dmesg when I insert the USB memory stick: May 12 14:46:20 sojo kernel: [95455.488104] usb 1-3: new high speed USB device using ehci_hcd and address 12 May 12 14:46:20 sojo kernel: [95455.622507] scsi9 : usb-storage 1-3:1.0 May 12 14:46:21 sojo kernel: [95456.623418] scsi 9:0:0:0: Direct-Access SanDisk Cruzer 7.01 PQ: 0 ANSI: 0 CCS May 12 14:46:21 sojo kernel: [95456.623973] scsi 9:0:0:1: CD-ROM SanDisk Cruzer 7.01 PQ: 0 ANSI: 0 May 12 14:46:21 sojo kernel: [95456.629231] sd 9:0:0:0: Attached scsi generic sg4 type 0 May 12 14:46:21 sojo kernel: [95456.635576] sd 9:0:0:0: [sdd] Attached SCSI removable disk May 12 14:46:21 sojo kernel: [95456.645776] sr1: scsi3-mmc drive: 48x/48x tray May 12 14:46:21 sojo kernel: [95456.645996] sr 9:0:0:1: Attached scsi CD-ROM sr1 May 12 14:46:21 sojo kernel: [95456.646558] sr 9:0:0:1: Attached scsi generic sg5 type 5 May 12 14:46:22 sojo kernel: [95457.352760] sd 9:0:0:0: [sdd] 31306239 512-byte logical blocks: (16.0 GB/14.9 GiB) May 12 14:46:22 sojo kernel: [95457.354199] sd 9:0:0:0: [sdd] Asking for cache data failed May 12 14:46:22 sojo kernel: [95457.354203] sd 9:0:0:0: [sdd] Assuming drive cache: write through May 12 14:46:22 sojo kernel: [95457.358186] sd 9:0:0:0: [sdd] Asking for cache data failed May 12 14:46:22 sojo kernel: [95457.358190] sd 9:0:0:0: [sdd] Assuming drive cache: write through May 12 14:46:22 sojo kernel: [95457.358870] sdd: sdd1 May 12 14:46:23 sojo kernel: [95458.609921] ISO 9660 Extensions: Microsoft Joliet Level 3 May 12 14:46:24 sojo kernel: [95458.686421] ISOFS: changing to secondary root May 12 14:46:24 sojo kernel: [95458.693931] VFS: busy inodes on changed media or resized disk sr1 Until I remove my SUB stick I get this in syslog repeatedly: May 12 14:51:47 sojo kernel: [95782.079217] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.095640] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.112794] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.146326] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.162621] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.179708] VFS: busy inodes on changed media or resized disk sr1 May 12 14:51:47 sojo kernel: [95782.250378] VFS: busy inodes on changed media or resized disk sr1 But the CPU usage does not go away when I remove it, but udisks-daemon and dbys-daemon also take a lot of CPU. ** Changed in: udev (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
A while after I removed my usb stick, udisks-daemon and dbus-daemon quietened down. Maybe they were handling the backlog of inode changed messages? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
Here is what strace shows: recv(8, 0xbfced218, 8, MSG_DONTWAIT)= -1 EAGAIN (Resource temporarily unavailable) sendmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=-4298, groups=}, msg_iov(2)=[{libudev\0\376\355\312\376(\0\0\0(\0\0\0\322\0\0\0\360\3\35\267{\313\305\356..., 40}, {UDEV_LOG=3\0ACTION=change\0DEVPATH..., 210}], msg_controllen=0, msg_flags=0}, 0) = 250 poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 5, -1) = 1 ([{fd=8, revents=POLLIN}]) recv(8, \341\17\0\0\0\0\0\0, 8, MSG_DONTWAIT) = 8 _llseek(3, 0, [11513544], SEEK_CUR) = 0 write(3, \351\260\0\0\0\0\0\0\0\0, 10) = 10 recv(8, 0xbfced218, 8, MSG_DONTWAIT)= -1 EAGAIN (Resource temporarily unavailable) sendmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=-4298, groups=}, msg_iov(2)=[{libudev\0\376\355\312\376(\0\0\0(\0\0\0\322\0\0\0\360\3\35\267{\313\305\356..., 40}, {UDEV_LOG=3\0ACTION=change\0DEVPATH..., 210}], msg_controllen=0, msg_flags=0}, 0) = 250 poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 5, -1) = 1 ([{fd=8, revents=POLLIN}]) recv(8, \341\17\0\0\0\0\0\0, 8, MSG_DONTWAIT) = 8 _llseek(3, 0, [11513554], SEEK_CUR) = 0 write(3, \352\260\0\0\0\0\0\0\0\0, 10) = 10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 780266] Re: udevd takes 100% of cpu
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780266 Title: udevd takes 100% of cpu -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs