Change top's notion of idle processes / threads

Poul-Henning Kamp phk at phk.freebsd.dk
Fri May 23 20:39:47 UTC 2014


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 ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list