HomeFreeBSD

MFC r349029: Update td_runtime of running thread on each statclock().

Description

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.

Details

Provenance
mavAuthored on
Parents
rS349818: MFC r349006: Move write aggregation memory copy out of vq_lock.
Branches
Unknown
Tags
Unknown