Hi!
I noticed by chance that systemd was using ~15% of a CPU in my laptop,
according to top.
This is on Debian testing, systemd 215-12.
The machine has been up since January, but this started to happen
earlier today, while I was asleep, and it seems to be correlated with an
automatic restart of anacron.
The 3.18.3 kernel was built from vanilla sources and has never had
problems with systemd so far.
I asked on #systemd and they suggested me to post here, following up
with the information requested at
http://lists.freedesktop.org/archives/systemd-devel/2015-February/028541.html
(which seems to be a similar problem, if not the same).
So below I paste some general information that I sent on IRC, the gdb
output as requested in the email from February, and some information about the
suspicious anacron restart.
I hope this helps! I won't restart systemd for a day or two (unless it
gets worse, I can spare 15% of a CPU), so if there's any other
information you need, please let me know.
Thanks!
Alberto
- 8 - 8 - 8 - 8 - 8 -
top reports systemd (pid/tid 1) consuming ~15% of a CPU all the time.
vmstat shows high CPU usage with almost nothing running (not even a
browser) and a lot of context switches:
procs ---memory-- ---swap-- -io -system-- --cpu-
r b swpd free buff cache si sobibo in cs us sy id wa st
1 0 0 1775176 158244 126783200 0 0 341 45293 5 3 92
0 0
0 0 0 1775176 158244 126783200 0 0 352 50775 5 3 93
0 0
2 0 0 1775920 158244 126783200 080 341 16583 4 2 93
1 0
0 0 0 1774796 158244 126783200 0 0 330 32687 4 2 94
0 0
0 0 0 1774812 158244 126783600 0 0 337 50805 5 3 92
0 0
$ tail /var/log/syslog
Mar 28 09:51:14 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:15 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:16 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:17 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:19 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:20 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:21 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:22 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:24 hostname systemd[1]: Looping too fast. Throttling execution a
little.
Mar 28 09:51:25 hostname systemd[1]: Looping too fast. Throttling execution a
little.
An strace shows it quite busy too, doing the same loop over an over. Here's
a snippet:
1 09:46:32 timerfd_settime(12, TFD_TIMER_ABSTIME, {it_interval={0, 0},
it_value={5864380, 69834}}, NULL) = 0
1 09:46:32 epoll_wait(4, {{EPOLLOUT, {u32=2552835776,
u64=139752198713024}}}, 41, 0) = 1
1 09:46:32 clock_gettime(CLOCK_BOOTTIME, {5864326, 657137453}) = 0
1 09:46:32 recvmsg(17, 0x7fff5f588a80,
MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily
unavailable)
1 09:46:32 timerfd_settime(12, TFD_TIMER_ABSTIME, {it_interval={0, 0},
it_value={5856161, 19834}}, NULL) = 0
1 09:46:32 epoll_wait(4, {{EPOLLOUT, {u32=2552835776,
u64=139752198713024}}, {EPOLLIN, {u32=3, u64=3}}}, 41, 0) = 2
1 09:46:32 clock_gettime(CLOCK_BOOTTIME, {5864326, 657236489}) = 0
1 09:46:32 read(12, \1\0\0\0\0\0\0\0, 8) = 8
1 09:46:32 recvmsg(17, 0x7fff5f588a80,
MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily
unavailable)
1 09:46:32 timerfd_settime(12, TFD_TIMER_ABSTIME, {it_interval={0, 0},
it_value={5864380, 69834}}, NULL) = 0
1 09:46:32 epoll_wait(4, {{EPOLLOUT, {u32=2552835776,
u64=139752198713024}}}, 41, 0) = 1
1 09:46:32 clock_gettime(CLOCK_BOOTTIME, {5864326, 657356895}) = 0
1 09:46:32 recvmsg(17, 0x7fff5f588a80,
MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily
unavailable)
1 09:46:32 timerfd_settime(12, TFD_TIMER_ABSTIME, {it_interval={0, 0},
it_value={5856161, 19834}}, NULL) = 0
1 09:46:32 epoll_wait(4, {{EPOLLOUT, {u32=2552835776,
u64=139752198713024}}, {EPOLLIN, {u32=3, u64=3}}}, 41, 0) = 2
1 09:46:32 clock_gettime(CLOCK_BOOTTIME, {5864326, 657456514}) = 0
1 09:46:32 read(12, \1\0\0\0\0\0\0\0, 8) = 8
1 09:46:32 recvmsg(17, 0x7fff5f588a80,
MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily
unavailable)
1 09:46:32 timerfd_settime(12, TFD_TIMER_ABSTIME, {it_interval={0, 0},
it_value={5864380, 69834}}, NULL) = 0
1 09:46:32 epoll_wait(4, {{EPOLLOUT, {u32=2552835776,
u64=139752198713024}}}, 41, 0) = 1
1 09:46:32 clock_gettime(CLOCK_BOOTTIME, {5864326, 657575831}) = 0
1 09:46:32 recvmsg(17, 0x7fff5f588a80,