systemd-udevd high cpu
[debian-12] [openbox] [xorg] [systemd] [networkmanager] [PPPoE]
После включения через какое то время начинает грузить ядро на 100%, это хорошо обнаруживается по шуму вентилятора системы охлаждения. Как это починить?
Одну тему прочитал там советуют предоставить выхлопы :
$ sudo strace -p 330
openat(31, "systemd", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 32
newfstatat(32, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
close(31) = 0
openat(32, "network", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 31
newfstatat(31, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
close(32) = 0
openat(31, "99-default.link.d", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
close(31) = 0
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 31
openat(31, "lib", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 32
newfstatat(32, "", {st_mode=S_IFLNK|0777, st_size=7, ...}, AT_EMPTY_PATH) = 0
readlinkat(31, "lib", "usr/lib", 4096) = 7
close(32) = 0
openat(31, "usr", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 32
newfstatat(32, "", {st_mode=S_IFDIR|0755, st_size=198, ...}, AT_EMPTY_PATH) = 0
close(31) = 0
openat(32, "lib", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 31
newfstatat(31, "", {st_mode=S_IFDIR|0755, st_size=8192, ...}, AT_EMPTY_PATH) = 0
close(32) = 0
openat(31, "systemd", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 32
newfstatat(32, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
close(31) = 0
openat(32, "network", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 31
newfstatat(31, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
close(32) = 0
openat(31, "99-default.link.d", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
close(31) = 0
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=-1699928832, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={prefix="libudev", magic=htonl(0xfeedcafe), header_size=40, properties_off=40, properties_len=258, filter_subsystem_hash=htonl(0xf0031db7), filter_devtype_hash=htonl(0x7bcbc5ee), filter_tag_bloom_hi=htonl(0), filter_tag_bloom_lo=htonl(0)}, iov_len=40}, {iov_base="UDEV_DATABASE_VERSION=1\0ACTION=c"..., iov_len=258}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = 298
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=41507, tv_nsec=116103000}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvfrom(3, NULL, 0, MSG_PEEK|MSG_TRUNC, NULL, NULL) = 293
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=0x000001}, msg_namelen=128 => 12, msg_iov=[{iov_base="change@/devices/pci0000:00/0000:"..., iov_len=293}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=0, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, 0) = 293
getrandom("\xb2\x8b\xb8\x29\x33\xd6\xb1\x0f\x97\xf1\x18\x1c\xc2\xf0\xd2\x28", 16, GRND_INSECURE) = 16
getrandom("\x3e\xa1\xae\x48\x85\xb4\x9a\x62\x49\x43\x88\x9c\x5b\x37\x20\x35", 16, GRND_INSECURE) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0\0\0\0", iov_len=4}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=134647, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, MSG_DONTWAIT) = 4
recvmsg(6, {msg_namelen=0}, MSG_DONTWAIT) = -1 EAGAIN (Resource temporarily unavailable)
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}], 144, 0) = 2
read(8, "\23\312\1\0\0\200\0\0\0\0\0\0\0\0\0\0", 272) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}], 144, 0) = 1
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=-1699928832, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={prefix="libudev", magic=htonl(0xfeedcafe), header_size=40, properties_off=40, properties_len=258, filter_subsystem_hash=htonl(0xf0031db7), filter_devtype_hash=htonl(0x7bcbc5ee), filter_tag_bloom_hi=htonl(0), filter_tag_bloom_lo=htonl(0)}, iov_len=40}, {iov_base="UDEV_DATABASE_VERSION=1\0ACTION=c"..., iov_len=258}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = 298
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=41507, tv_nsec=116103000}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvfrom(3, NULL, 0, MSG_PEEK|MSG_TRUNC, NULL, NULL) = 293
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=0x000001}, msg_namelen=128 => 12, msg_iov=[{iov_base="change@/devices/pci0000:00/0000:"..., iov_len=293}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=0, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, 0) = 293
getrandom("\x7f\x3a\x8e\xc8\xfe\x43\xd9\x04\x98\xff\x96\x55\xdb\xb0\xdb\xbe", 16, GRND_INSECURE) = 16
getrandom("\xeb\x67\x37\x88\x79\x45\x4b\x54\x5b\x7e\xfa\x01\xc9\xbd\x8e\x39", 16, GRND_INSECURE) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0\0\0\0", iov_len=4}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=134647, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, MSG_DONTWAIT) = 4
recvmsg(6, {msg_namelen=0}, MSG_DONTWAIT) = -1 EAGAIN (Resource temporarily unavailable)
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}], 144, 0) = 2
read(8, "\24\312\1\0\0\200\0\0\0\0\0\0\0\0\0\0", 272) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}], 144, 0) = 1
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=-1699928832, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={prefix="libudev", magic=htonl(0xfeedcafe), header_size=40, properties_off=40, properties_len=258, filter_subsystem_hash=htonl(0xf0031db7), filter_devtype_hash=htonl(0x7bcbc5ee), filter_tag_bloom_hi=htonl(0), filter_tag_bloom_lo=htonl(0)}, iov_len=40}, {iov_base="UDEV_DATABASE_VERSION=1\0ACTION=c"..., iov_len=258}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = 298
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=41507, tv_nsec=116103000}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvfrom(3, NULL, 0, MSG_PEEK|MSG_TRUNC, NULL, NULL) = 293
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=0x000001}, msg_namelen=128 => 12, msg_iov=[{iov_base="change@/devices/pci0000:00/0000:"..., iov_len=293}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=0, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, 0) = 293
getrandom("\xf6\xb0\x5c\x5f\x5f\xc0\x36\xd9\xa2\xf4\x65\xec\x8d\xdb\x09\x12", 16, GRND_INSECURE) = 16
getrandom("\x24\xac\x59\x44\x0a\xfe\x98\x70\x2a\xb9\x29\x18\x12\x82\x6c\xe2", 16, GRND_INSECURE) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}, {events=EPOLLIN, data={u32=3272949008, u64=94088826535184}}], 144, 0) = 3
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0\0\0\0", iov_len=4}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=134647, uid=0, gid=0}}], msg_controllen=32, msg_flags=0}, MSG_DONTWAIT) = 4
recvmsg(6, {msg_namelen=0}, MSG_DONTWAIT) = -1 EAGAIN (Resource temporarily unavailable)
gettid() = 330
timerfd_settime(14, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}, {events=EPOLLIN, data={u32=3272948400, u64=94088826534576}}], 144, 0) = 2
read(8, "\25\312\1\0\0\200\0\0\0\0\0\0\0\0\0\0", 272) = 16
gettid() = 330
epoll_wait(9, [{events=EPOLLIN, data={u32=3272948704, u64=94088826534880}}], 144, 0) = 1
sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=-1699928832, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={prefix="libudev", magic=htonl(0xfeedcafe), header_size=40, properties_off=40, properties_len=258, filter_subsystem_hash=htonl(0xf0031db7), filter_devtype_hash=htonl(0x7bcbc5ee), filter_tag_bloom_hi=htonl(0), filter_tag_bloom_lo=htonl(0)}, iov_len=40}, {iov_base="UDEV_DATABASE_VERSION=1\0ACTION=c"..., iov_len=258}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, 0) = 298
$ sudo udevadm monitor
[sudo] password for uzer-pc1:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[41665.900410] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.900596] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV [41665.902943] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.903722] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.903940] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.905388] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.905604] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.916295] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.916523] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.919162] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.919371] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV [41665.921958] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.922871] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.923093] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.924783] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.925017] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.935783] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.936029] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.939208] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.939475] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV [41665.942121] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.942957] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.943193] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.944652] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.944880] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.956338] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.956578] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.959398] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.959628] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV [41665.962397] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.963296] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.963528] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.965082] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.965321] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.976741] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.976979] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.980934] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.981174] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV [41665.984410] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.985419] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.985651] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.987206] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41665.987428] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[41666.017529] change /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)