On Friday, May 23, 2014 4:39:39 pm Poul-Henning Kamp wrote: > In message <201405231605.26312.jhb_at_freebsd.org>, John Baldwin writes: > > >In essence, top will consider any thread that has run on a CPU > >since the last update as non-idle. > > Sounds a lot more usable than the current heuristic. > > Wouldn't ki_rusage.ru_n[i]vcsw be more correct than ki_runtime ? I went ahead and checked for both. In theory we might fix our scheduler one day to notice when a CPU is dedicated to a single thread not bother with doing silly context switches back to itself in which case only ki_runtime would change. -- John BaldwinReceived on Wed May 28 2014 - 13:59:13 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:49 UTC