]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349029: Update td_runtime of running thread on each statclock().
authorAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:38:40 +0000 (18:38 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:38:40 +0000 (18:38 +0000)
commit19a4cbbdcddf27606c6084b036326a633f07e63d
treef3e5d8ea848a6e98ca77faff73f8866d3cc91808
parent3a1731425d6f091784edf21eecd945957c650688
MFC r349029: 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.
sys/kern/kern_clock.c