Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Talk:Containers/Guarantees for resources

9 bytes added, 05:25, 7 May 2010
no edit summary
Hi,
I guess limiting is only useful when there's enough room for all groups. Eg.: the calculation makes will make sense only if:
<code>(1) &forall; i: Li >= Gi</code>
, and the above condition is enough:
<code>(3) L1 = (1/N-1) * ((R-G2)+(R-G3)+...+(R-Gn) - (N-2)*(R-G1)) > = G1 </code>
&hArr;
<code>(4) ((R-G2)+(R-G3)+...+(R-Gn) - (N-2)*(R-G1)) > = (N-1)*G1</code>
&hArr;
<code>(5) (N-1)*R-(G2+G3+...+Gn)-(N-2)*R+(N-2)*G1 > = (N-1)*G1</code>
&hArr;
<code>(6) R - (G2+G3+...+Gn) + (N-2)*G1 > = (N-1)*G1</code>
&hArr;
<code>(7) R > = G2+G3+...+Gn+G1</code>
Thus limiting is only useful if the trivial natural condition under (2) holds.
Cheers,
Gyula
Anonymous user