[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] use atomic_t type for system wide credit scheduler statistics



On 09/03/2009 08:30, "Yang, Xiaowei" <xiaowei.yang@xxxxxxxxx> wrote:

> Keir Fraser wrote:
>> Not while csched stats are enabled by default. They get cranked all over the
>> place. How much does this race matter? We probably just lose a few
>> increments?
> 
> Yes. The higher frequency the count is updated, the more increments lost
> can we see - comparing to atomic version, counts like "vcpu_check" and
> "scheduele" lose increments very obviously due to race.

The best thing to do would be to move the stats into perfc_defn.h, don't you
think? The CSCHED_* macro wrappers could be kept but wrap the existing
common mechanism for perf counters.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.