]> git.ipfire.org Git - thirdparty/chrony.git/commit
sched: improve infinite loop detection
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 13 Jan 2021 11:32:38 +0000 (12:32 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Jan 2021 17:17:39 +0000 (18:17 +0100)
commit59e8b790341f344e07cb4d5124e7dc89de6665a1
treea88692e2a638f240c3235e04c0fd0fde227db3a7
parentfb7475bf5902e823100a443bd242cad242a5c6c0
sched: improve infinite loop detection

The "infinite loop in scheduling" fatal error was observed on a system
running out of memory. Presumably, the execution of the process slowed
down due to memory thrashing so much that the dispatching loop wasn't
able to break with a single server polled at a 16-second interval.

To allow recovery in such a case, require for the error more than
20 handled timeouts and a rate higher than 100 per second.

Reported-by: Jamie Gruener <jamie.gruener@biospatial.io>
sched.c