What nasty systemd-udevd overloading my CPU?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite
1












Top will give me the following: (94 % CPU load from PID 28055)



PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
28055 root 39 19 1295192 1,167g 3120 R 93,8 7,5 65:49.38 systemd-udevd


When I do strace -p 28055 I get following lines repeating themselves to infinity:



getrandom("246306216<340244a256|34352257334223227304", 16, GRND_NONBLOCK) = 16
getrandom("j216331 361|X2413332702602023772243537", 16, GRND_NONBLOCK) = 16
getrandom("3630127vkE3511633623314366yt272307", 16, GRND_NONBLOCK) = 16
getrandom("U2342352763325737314q301272i301Wt", 16, GRND_NONBLOCK) = 16
getrandom("2232724426365251335263233.3473263]2054", 16, GRND_NONBLOCK) = 16
getrandom("366,{+Ttt2716z257N^235r,", 16, GRND_NONBLOCK) = 16
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470364038) = 0
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470404228) = 0
recvmsg(4, msg_name(12)=sa_family=AF_NETLINK, pid=0, groups=00000001, msg_iov(1)=["change@/devices/pci0000:00/0000:"..., 8192], msg_controllen=32, [cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, pid=0, uid=0, gid=0], msg_flags=0, 0) = 299


udevadm monitor will give out these line, which also repeats itself to infinity:



KERNEL[66275.112602] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)


I have no idea where the problem lies. Any tip how to go forward inspecting this problem? Thx...



Ubuntu 16.04, 64 bits, 4.13.0-37-generic



PS: Question moved from StackOverflow to here. Other reports of similar problems on forums did not give any real solution.



PS2: Added command outputs after the first comment. First I omited them because I was not convinced of any connection to the first problem, but now I am no longer sure. Thus here some more testing:



journalctl



Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current]
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information
Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory


(the above output repeats itself to infinity)



dmesg



[72070.670913] sdb: sdb1
[72070.745597] sd 4:0:0:0: ioctl_internal_command return code = 8000002
[72070.745600] sd 4:0:0:0: Sense Key : Aborted Command [current]
[72070.745601] sd 4:0:0:0: Add. Sense: No additional sense information
[72070.747604] sdb: detected capacity change from 681574400 to 0
[72070.991468] sd 4:0:0:0: ioctl_internal_command return code = 8000002


/lib/systemd/systemd-udevd -D



adding watch on '/dev/sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896728 processed
passed 282 byte device to netlink monitor 0x556a9c051740seq 4896729 running

removing watch on '/dev/sdb1'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
no reference left, remove '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0-part1'
no reference left, remove '/dev/disk/by-label/UTIL_HDHXU3'
no reference left, remove '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0-part1'
no reference left, remove '/dev/disk/by-uuid/6BA5-31BF'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896729 processed
passed 263 byte device to netlink monitor 0x556a9c051740
^Cseq 4896730 running
removing watch on '/dev/sdb'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:41
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0: if_class 8 protocol 6
LINK 'disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' /lib/udev/rules.d/60-persistent-storage.rules:46
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:64
LINK 'disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:65
IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
probe /dev/sdb raid offset=0
handling device node '/dev/sdb', devnum=b8:16, mode=0600, uid=0, gid=0
preserve already existing symlink '/dev/block/8:16' to '../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-idx2fusb-BUFFALO_HD-HXU3_00000204B9AC-0:0'
creating link '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '../../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-pathx2fpci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0'
creating link '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '../../sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'


Now i guess it has to do with a USB external HD. But i need it as well ...










share|improve this question



















  • 2




    So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
    – DK Bose
    Mar 20 at 10:55










  • As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
    – user152037
    Mar 20 at 11:22







  • 1




    ... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
    – user152037
    Mar 20 at 13:28











  • Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
    – Mark Stosberg
    Mar 20 at 19:03










  • sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
    – user152037
    Mar 22 at 13:31














up vote
3
down vote

favorite
1












Top will give me the following: (94 % CPU load from PID 28055)



PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
28055 root 39 19 1295192 1,167g 3120 R 93,8 7,5 65:49.38 systemd-udevd


When I do strace -p 28055 I get following lines repeating themselves to infinity:



getrandom("246306216<340244a256|34352257334223227304", 16, GRND_NONBLOCK) = 16
getrandom("j216331 361|X2413332702602023772243537", 16, GRND_NONBLOCK) = 16
getrandom("3630127vkE3511633623314366yt272307", 16, GRND_NONBLOCK) = 16
getrandom("U2342352763325737314q301272i301Wt", 16, GRND_NONBLOCK) = 16
getrandom("2232724426365251335263233.3473263]2054", 16, GRND_NONBLOCK) = 16
getrandom("366,{+Ttt2716z257N^235r,", 16, GRND_NONBLOCK) = 16
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470364038) = 0
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470404228) = 0
recvmsg(4, msg_name(12)=sa_family=AF_NETLINK, pid=0, groups=00000001, msg_iov(1)=["change@/devices/pci0000:00/0000:"..., 8192], msg_controllen=32, [cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, pid=0, uid=0, gid=0], msg_flags=0, 0) = 299


udevadm monitor will give out these line, which also repeats itself to infinity:



KERNEL[66275.112602] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)


I have no idea where the problem lies. Any tip how to go forward inspecting this problem? Thx...



Ubuntu 16.04, 64 bits, 4.13.0-37-generic



PS: Question moved from StackOverflow to here. Other reports of similar problems on forums did not give any real solution.



PS2: Added command outputs after the first comment. First I omited them because I was not convinced of any connection to the first problem, but now I am no longer sure. Thus here some more testing:



journalctl



Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current]
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information
Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory


(the above output repeats itself to infinity)



dmesg



[72070.670913] sdb: sdb1
[72070.745597] sd 4:0:0:0: ioctl_internal_command return code = 8000002
[72070.745600] sd 4:0:0:0: Sense Key : Aborted Command [current]
[72070.745601] sd 4:0:0:0: Add. Sense: No additional sense information
[72070.747604] sdb: detected capacity change from 681574400 to 0
[72070.991468] sd 4:0:0:0: ioctl_internal_command return code = 8000002


/lib/systemd/systemd-udevd -D



adding watch on '/dev/sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896728 processed
passed 282 byte device to netlink monitor 0x556a9c051740seq 4896729 running

removing watch on '/dev/sdb1'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
no reference left, remove '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0-part1'
no reference left, remove '/dev/disk/by-label/UTIL_HDHXU3'
no reference left, remove '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0-part1'
no reference left, remove '/dev/disk/by-uuid/6BA5-31BF'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896729 processed
passed 263 byte device to netlink monitor 0x556a9c051740
^Cseq 4896730 running
removing watch on '/dev/sdb'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:41
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0: if_class 8 protocol 6
LINK 'disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' /lib/udev/rules.d/60-persistent-storage.rules:46
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:64
LINK 'disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:65
IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
probe /dev/sdb raid offset=0
handling device node '/dev/sdb', devnum=b8:16, mode=0600, uid=0, gid=0
preserve already existing symlink '/dev/block/8:16' to '../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-idx2fusb-BUFFALO_HD-HXU3_00000204B9AC-0:0'
creating link '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '../../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-pathx2fpci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0'
creating link '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '../../sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'


Now i guess it has to do with a USB external HD. But i need it as well ...










share|improve this question



















  • 2




    So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
    – DK Bose
    Mar 20 at 10:55










  • As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
    – user152037
    Mar 20 at 11:22







  • 1




    ... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
    – user152037
    Mar 20 at 13:28











  • Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
    – Mark Stosberg
    Mar 20 at 19:03










  • sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
    – user152037
    Mar 22 at 13:31












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





Top will give me the following: (94 % CPU load from PID 28055)



PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
28055 root 39 19 1295192 1,167g 3120 R 93,8 7,5 65:49.38 systemd-udevd


When I do strace -p 28055 I get following lines repeating themselves to infinity:



getrandom("246306216<340244a256|34352257334223227304", 16, GRND_NONBLOCK) = 16
getrandom("j216331 361|X2413332702602023772243537", 16, GRND_NONBLOCK) = 16
getrandom("3630127vkE3511633623314366yt272307", 16, GRND_NONBLOCK) = 16
getrandom("U2342352763325737314q301272i301Wt", 16, GRND_NONBLOCK) = 16
getrandom("2232724426365251335263233.3473263]2054", 16, GRND_NONBLOCK) = 16
getrandom("366,{+Ttt2716z257N^235r,", 16, GRND_NONBLOCK) = 16
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470364038) = 0
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470404228) = 0
recvmsg(4, msg_name(12)=sa_family=AF_NETLINK, pid=0, groups=00000001, msg_iov(1)=["change@/devices/pci0000:00/0000:"..., 8192], msg_controllen=32, [cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, pid=0, uid=0, gid=0], msg_flags=0, 0) = 299


udevadm monitor will give out these line, which also repeats itself to infinity:



KERNEL[66275.112602] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)


I have no idea where the problem lies. Any tip how to go forward inspecting this problem? Thx...



Ubuntu 16.04, 64 bits, 4.13.0-37-generic



PS: Question moved from StackOverflow to here. Other reports of similar problems on forums did not give any real solution.



PS2: Added command outputs after the first comment. First I omited them because I was not convinced of any connection to the first problem, but now I am no longer sure. Thus here some more testing:



journalctl



Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current]
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information
Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory


(the above output repeats itself to infinity)



dmesg



[72070.670913] sdb: sdb1
[72070.745597] sd 4:0:0:0: ioctl_internal_command return code = 8000002
[72070.745600] sd 4:0:0:0: Sense Key : Aborted Command [current]
[72070.745601] sd 4:0:0:0: Add. Sense: No additional sense information
[72070.747604] sdb: detected capacity change from 681574400 to 0
[72070.991468] sd 4:0:0:0: ioctl_internal_command return code = 8000002


/lib/systemd/systemd-udevd -D



adding watch on '/dev/sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896728 processed
passed 282 byte device to netlink monitor 0x556a9c051740seq 4896729 running

removing watch on '/dev/sdb1'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
no reference left, remove '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0-part1'
no reference left, remove '/dev/disk/by-label/UTIL_HDHXU3'
no reference left, remove '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0-part1'
no reference left, remove '/dev/disk/by-uuid/6BA5-31BF'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896729 processed
passed 263 byte device to netlink monitor 0x556a9c051740
^Cseq 4896730 running
removing watch on '/dev/sdb'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:41
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0: if_class 8 protocol 6
LINK 'disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' /lib/udev/rules.d/60-persistent-storage.rules:46
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:64
LINK 'disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:65
IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
probe /dev/sdb raid offset=0
handling device node '/dev/sdb', devnum=b8:16, mode=0600, uid=0, gid=0
preserve already existing symlink '/dev/block/8:16' to '../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-idx2fusb-BUFFALO_HD-HXU3_00000204B9AC-0:0'
creating link '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '../../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-pathx2fpci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0'
creating link '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '../../sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'


Now i guess it has to do with a USB external HD. But i need it as well ...










share|improve this question















Top will give me the following: (94 % CPU load from PID 28055)



PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
28055 root 39 19 1295192 1,167g 3120 R 93,8 7,5 65:49.38 systemd-udevd


When I do strace -p 28055 I get following lines repeating themselves to infinity:



getrandom("246306216<340244a256|34352257334223227304", 16, GRND_NONBLOCK) = 16
getrandom("j216331 361|X2413332702602023772243537", 16, GRND_NONBLOCK) = 16
getrandom("3630127vkE3511633623314366yt272307", 16, GRND_NONBLOCK) = 16
getrandom("U2342352763325737314q301272i301Wt", 16, GRND_NONBLOCK) = 16
getrandom("2232724426365251335263233.3473263]2054", 16, GRND_NONBLOCK) = 16
getrandom("366,{+Ttt2716z257N^235r,", 16, GRND_NONBLOCK) = 16
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470364038) = 0
epoll_wait(10, [EPOLLIN, u32=798983008, u64=94889511453536], 11, 0) = 1
clock_gettime(CLOCK_BOOTTIME, 7011, 470404228) = 0
recvmsg(4, msg_name(12)=sa_family=AF_NETLINK, pid=0, groups=00000001, msg_iov(1)=["change@/devices/pci0000:00/0000:"..., 8192], msg_controllen=32, [cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, pid=0, uid=0, gid=0], msg_flags=0, 0) = 299


udevadm monitor will give out these line, which also repeats itself to infinity:



KERNEL[66275.112602] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)


I have no idea where the problem lies. Any tip how to go forward inspecting this problem? Thx...



Ubuntu 16.04, 64 bits, 4.13.0-37-generic



PS: Question moved from StackOverflow to here. Other reports of similar problems on forums did not give any real solution.



PS2: Added command outputs after the first comment. First I omited them because I was not convinced of any connection to the first problem, but now I am no longer sure. Thus here some more testing:



journalctl



Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current]
Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information
Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory


(the above output repeats itself to infinity)



dmesg



[72070.670913] sdb: sdb1
[72070.745597] sd 4:0:0:0: ioctl_internal_command return code = 8000002
[72070.745600] sd 4:0:0:0: Sense Key : Aborted Command [current]
[72070.745601] sd 4:0:0:0: Add. Sense: No additional sense information
[72070.747604] sdb: detected capacity change from 681574400 to 0
[72070.991468] sd 4:0:0:0: ioctl_internal_command return code = 8000002


/lib/systemd/systemd-udevd -D



adding watch on '/dev/sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896728 processed
passed 282 byte device to netlink monitor 0x556a9c051740seq 4896729 running

removing watch on '/dev/sdb1'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
no reference left, remove '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0-part1'
no reference left, remove '/dev/disk/by-label/UTIL_HDHXU3'
no reference left, remove '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0-part1'
no reference left, remove '/dev/disk/by-uuid/6BA5-31BF'
passed device to netlink monitor 0x556a9c04b5d0
seq 4896729 processed
passed 263 byte device to netlink monitor 0x556a9c051740
^Cseq 4896730 running
removing watch on '/dev/sdb'
value '[dmi/id]sys_vendor' is 'System manufacturer'
value '[dmi/id]sys_vendor' is 'System manufacturer'
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:41
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0: if_class 8 protocol 6
LINK 'disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' /lib/udev/rules.d/60-persistent-storage.rules:46
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:64
LINK 'disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:65
IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
probe /dev/sdb raid offset=0
handling device node '/dev/sdb', devnum=b8:16, mode=0600, uid=0, gid=0
preserve already existing symlink '/dev/block/8:16' to '../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-idx2fusb-BUFFALO_HD-HXU3_00000204B9AC-0:0'
creating link '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-id/usb-BUFFALO_HD-HXU3_00000204B9AC-0:0' to '../../sdb'
found 'b8:16' claiming '/run/udev/links/x2fdiskx2fby-pathx2fpci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0'
creating link '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.4:1.0-scsi-0:0:0:0' to '../../sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/host4/target4:0:0/4:0:0:0/block/sdb'


Now i guess it has to do with a USB external HD. But i need it as well ...







systemd udev cpu-load






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 20 at 11:34

























asked Mar 20 at 10:03









user152037

3414




3414







  • 2




    So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
    – DK Bose
    Mar 20 at 10:55










  • As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
    – user152037
    Mar 20 at 11:22







  • 1




    ... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
    – user152037
    Mar 20 at 13:28











  • Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
    – Mark Stosberg
    Mar 20 at 19:03










  • sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
    – user152037
    Mar 22 at 13:31












  • 2




    So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
    – DK Bose
    Mar 20 at 10:55










  • As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
    – user152037
    Mar 20 at 11:22







  • 1




    ... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
    – user152037
    Mar 20 at 13:28











  • Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
    – Mark Stosberg
    Mar 20 at 19:03










  • sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
    – user152037
    Mar 22 at 13:31







2




2




So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
– DK Bose
Mar 20 at 10:55




So what did you try? It would help so that people don't suggest what you already tried. For example: unix.stackexchange.com/questions/233247/… or forum.manjaro.org/t/…
– DK Bose
Mar 20 at 10:55












As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
– user152037
Mar 20 at 11:22





As you can see, most of the inspection proposed in your post have already being done: I will add this: </br> journalctl </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: ioctl_internal_command return code = 8000002</br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Sense Key : Aborted Command [current] </br> Mar 20 10:58:36 cosy kernel: sd 4:0:0:0: Add. Sense: No additional sense information</br> Mar 20 10:58:36 cosy systemd-udevd[382]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory</br>
– user152037
Mar 20 at 11:22





1




1




... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
– user152037
Mar 20 at 13:28





... sure it is the external usb driver. The problem disappears when i disconnect it. But i need it!
– user152037
Mar 20 at 13:28













Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
– Mark Stosberg
Mar 20 at 19:03




Try plugging in the external drive to a different host or booting the same host from a Live USB stick to see if behaves any better under a different Linux distro (or different version of the same distro).
– Mark Stosberg
Mar 20 at 19:03












sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
– user152037
Mar 22 at 13:31




sorry, but trying on different OS will not clarify my problem on unbuntu. I need to solve it in this system. It is my main Desktop PC.
– user152037
Mar 22 at 13:31










1 Answer
1






active

oldest

votes

















up vote
1
down vote













For my Dell laptop this problem is due to the Touchpad.



$ udevadm monitor
Eyl 03 22:02:58 Inspiron systemd-udevd[380]: Process 'hid2hci
--method=dell --devpath=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0' failed with exit code 1.

$ cat /sys/bus/usb/devices/2-1/2-1.6/2-1.6.2/id*
8162 413c

$ lsusb -d 413c:8162
Bus 002 Device 006: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]


To stop systemd-udevd:



sudo systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket


For more info:



  • systemd-udevd uses too much CPU





share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017571%2fwhat-nasty-systemd-udevd-overloading-my-cpu%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    For my Dell laptop this problem is due to the Touchpad.



    $ udevadm monitor
    Eyl 03 22:02:58 Inspiron systemd-udevd[380]: Process 'hid2hci
    --method=dell --devpath=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0' failed with exit code 1.

    $ cat /sys/bus/usb/devices/2-1/2-1.6/2-1.6.2/id*
    8162 413c

    $ lsusb -d 413c:8162
    Bus 002 Device 006: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]


    To stop systemd-udevd:



    sudo systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket


    For more info:



    • systemd-udevd uses too much CPU





    share|improve this answer


























      up vote
      1
      down vote













      For my Dell laptop this problem is due to the Touchpad.



      $ udevadm monitor
      Eyl 03 22:02:58 Inspiron systemd-udevd[380]: Process 'hid2hci
      --method=dell --devpath=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0' failed with exit code 1.

      $ cat /sys/bus/usb/devices/2-1/2-1.6/2-1.6.2/id*
      8162 413c

      $ lsusb -d 413c:8162
      Bus 002 Device 006: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]


      To stop systemd-udevd:



      sudo systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket


      For more info:



      • systemd-udevd uses too much CPU





      share|improve this answer
























        up vote
        1
        down vote










        up vote
        1
        down vote









        For my Dell laptop this problem is due to the Touchpad.



        $ udevadm monitor
        Eyl 03 22:02:58 Inspiron systemd-udevd[380]: Process 'hid2hci
        --method=dell --devpath=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0' failed with exit code 1.

        $ cat /sys/bus/usb/devices/2-1/2-1.6/2-1.6.2/id*
        8162 413c

        $ lsusb -d 413c:8162
        Bus 002 Device 006: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]


        To stop systemd-udevd:



        sudo systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket


        For more info:



        • systemd-udevd uses too much CPU





        share|improve this answer














        For my Dell laptop this problem is due to the Touchpad.



        $ udevadm monitor
        Eyl 03 22:02:58 Inspiron systemd-udevd[380]: Process 'hid2hci
        --method=dell --devpath=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.2/2-1.6.2:1.0' failed with exit code 1.

        $ cat /sys/bus/usb/devices/2-1/2-1.6/2-1.6.2/id*
        8162 413c

        $ lsusb -d 413c:8162
        Bus 002 Device 006: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]


        To stop systemd-udevd:



        sudo systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket


        For more info:



        • systemd-udevd uses too much CPU






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 6 at 19:03









        Zanna

        48.1k13119228




        48.1k13119228










        answered Sep 5 at 21:34









        Ismail Kalay

        113




        113



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017571%2fwhat-nasty-systemd-udevd-overloading-my-cpu%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491