Talk:Containers/Guarantees for resources

From OpenVZ Virtuozzo Containers Wiki
Revision as of 19:58, 6 May 2010 by 212.108.246.192 (talk) (Created page with 'Hi, I guess limiting is only useful when there's enough room for all groups. Eg.: the calculation makes sense only if: <code>(1) ∀ i: Li >= Gi</code> Otherwise, the gro…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hi, I guess limiting is only useful when there's enough room for all groups. Eg.: the calculation makes sense only if:

(1) ∀ i: Li >= Gi

Otherwise, the group limit is to strict.Obviously it's required that:

(2) ∑ Gi <= R

, and the above condition is enough:

(3) L1 = (1/N-1) * ((R-G2)+(R-G3)+...+(R-Gn) - (N-2)*(R-G1)) > G1

(4) ((R-G2)+(R-G3)+...+(R-Gn) - (N-2)*(R-G1)) > (N-1)*G1

(5) (N-1)*R-(G2+G3+...+Gn)-(N-2)*R+(N-2)*G1 > (N-1)*G1

(6) R - (G2+G3+...+Gn) + (N-2)*G1 > (N-1)*G1

(7) R > G2+G3+...+Gn+G1

Thus limiting is only useful if the trivial condition under (2) holds.

Cheers,

Gyula