systemd-resolved using 100% CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
[Triage Notes]
"Incomplete" in dnsmasq: may be a valid bug, but developers cannot make progress until someone can provide steps to reproduce. See comment 55.
[Original Description]
Sometimes systemd-resolved process is using 100% CPU.
After a while it changes back to normal.
It happens usually after connecting to the (wifi) network, like starting the OS.
strace output:
sendmsg(12, {msg_name(
sendmsg(3, {msg_name(0)=NULL, msg_iov(
epoll_wait(4, [{EPOLLIN, {u32=3176459184, u64=94565471415
clock_gettime(
recvfrom(12, NULL, 0, MSG_PEEK|MSG_TRUNC, NULL, NULL) = 53
recvmsg(12, {msg_name(
stat("/
getrandom("\365I", 2, GRND_NONBLOCK) = 2
stat("/
getrandom("\203;", 2, GRND_NONBLOCK) = 2
clock_gettime(
open("/
stat("/
stat("/
socket(AF_INET, SOCK_DGRAM|
connect(18, {sa_family=AF_INET, sin_port=htons(53), sin_addr=
epoll_ctl(4, EPOLL_CTL_ADD, 18, {EPOLLIN, {u32=3176610576, u64=94565471566
write(18, "\203;\
clock_gettime(
clock_gettime(
epoll_ctl(4, EPOLL_CTL_DEL, 18, NULL) = 0
close(18) = 0
journalctl output:
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:35 parsec systemd-
Mar 08 08:25:41 parsec dnsmasq[1545]: Maximum number of concurrent DNS queries reached (max: 150)
As you can see, I would use it together with dnsmasq.
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: systemd 232-18ubuntu1
ProcVersionSign
Uname: Linux 4.10.0-9-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
Date: Wed Mar 8 08:20:18 2017
MachineType: Hewlett-Packard HP EliteBook Folio 1020 G1
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to zesty on 2015-05-24 (653 days ago)
dmi.bios.date: 03/09/2015
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: M77 Ver. 01.05
dmi.board.name: 2271
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 91.4C
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP EliteBook Folio 1020 G1
dmi.product.
dmi.sys.vendor: Hewlett-Packard
Changed in systemd (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
tags: | added: resolved |
tags: | added: indeed |
Status changed to 'Confirmed' because the bug affects multiple users.