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

[Xen-devel] how Change cap when cap != 0U ?



Hello,
I examined this code of credit. i have to two question?
1. what mean variable credit_cap?
2. how set cap per-vcpu in this code?!
in computation credit_cap if sdom->cap =20 result credit_cap = 60 :-|
are credit_cap Equal to sdom->cap?! why should credit_cap divide sdom->active_vcpu_coun?!

        if ( sdom->cap != 0U )
       
            credit_cap = ((sdom->cap * CSCHED_CREDITS_PER_ACCT) + 99) / 100;
            if ( credit_cap < credit_peak )
                credit_peak = credit_cap;

            /* FIXME -- set cap per-vcpu as well...? */
            credit_cap = ( credit_cap + ( sdom->active_vcpu_count - 1 )
                         ) / sdom->active_vcpu_count;
        }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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