On Tue, Oct 06, 2015 at 02:10:33PM +0200, 'Oleg Ponomarev' via ganeti-devel wrote: > Introduce new formula of pMem calculating that works good with memory > over-commitment. fMem / tMem is replaced with fMem / (tMem - nMem). > tMem replaced with tMem - nMem because we care of memory which can be > used for instance placement. Negative values of pMem mean active > memory ovet-commitment. > > Signed-off-by: Oleg Ponomarev <[email protected]> > --- > src/Ganeti/HTools/Node.hs | 21 ++++++++++++++------- > test/hs/Test/Ganeti/HTools/Node.hs | 7 +++++-- > 2 files changed, 19 insertions(+), 9 deletions(-)
LGTM -- Klaus Aehlig Google Germany GmbH, Dienerstr. 12, 80331 Muenchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores
