Re: Change top's notion of idle processes / threads

看板FB_current作者時間11年前 (2014/05/24 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/15 (看更多)
On 05/23/2014 15:05, John Baldwin wrote: > Right now, when top is set to not display idle processes or threads, it only > displays processes or threads that are currently in a runnable state or have a > non-zero %cpu. However, our %cpu is quite imprecise. I have patch to change > top to instead compare the thread or processes runtime (ki_runtime in > kinfo_proc) against the runtime of the thread or process the last time data > was fetched. In essence, top will consider any thread that has run on a CPU > since the last update as non-idle. The end result is that mostly-idle threads > and processes will now be visible in top's idle display. Personally, I find > this more useful (and find the current implementation completely useless). > The patch is at http://people.freebsd.org/~jhb/patches/top_idle.patch > > Comments? I think I would much prefer the behavior with your patch. Eric _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1JVx12Vt (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1JVx12Vt (FB_current)