]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update td_runtime of running thread on each statclock().
authorAlexander Motin <mav@FreeBSD.org>
Fri, 14 Jun 2019 01:09:10 +0000 (01:09 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 14 Jun 2019 01:09:10 +0000 (01:09 +0000)
commitc80038a0a732d1fbbb3ea1566c995c37e0fbe047
tree1251a72bff1f0bd33af164d8d5cbd9189857a8f4
parent1682a3ab4b725e31e9aab4aa4a8aa2ba400463fe
Update td_runtime of running thread on each statclock().

Normally td_runtime is updated on context switch, but there are some kernel
threads that due to high absolute priority may run for many seconds without
context switches (yes, that is bad, but that is true), which means their
td_runtime was not updated all that time, that made them invisible for top
other then as some general CPU usage.

MFC after: 1 week
Sponsored by: iXsystems, Inc.
sys/kern/kern_clock.c