http://defect.opensolaris.org/bz/show_bug.cgi?id=4607





--- Comment #6 from Bill Holler <bill.holler at sun.com>  2008-11-20 19:06:03 
---
(In reply to comment #5)
> cmt_callback_init() initializes pg callbacks pg_cb.thread_swtch and
> pg_cb.thread_remain.  Currently PGHW_POW_IDLE uses the default thread_swtch
> callback cmt_ev_thread_swtch().  cmt_ev_thread_swtch() simply increments
> or decrements cmt_pg->cmt_utilization by 1 when the cpu becomes busy or
> goes idle.
> 
> It looks like the best place to calculate PGHW_POW_IDLE utilization
> would be with a new thread_swtch callback for the PGHW_POW_IDLE type.

Capacity could also be calculated here based on idle state.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to