* how Change cap when cap != 0U ?
@ 2014-04-12 9:03 developerxen
0 siblings, 0 replies; only message in thread
From: developerxen @ 2014-04-12 9:03 UTC (permalink / raw)
To: Xen; +Cc: George Dunlap, Ian Campbell
[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]
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;
}
[-- Attachment #1.2: Type: text/html, Size: 923 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-12 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-12 9:03 how Change cap when cap != 0U ? developerxen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.