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

[Xen-API] [Squeezd] Disabling some balancing features


I have accepted a challenge about disabling some features of
automatical rebalancing. For example, I want squeezed to raise an
exception while migration in case if there is not enough free memory
and some squeezing needed. So I fixed reserve-memory handler in my
squeezed-like daemon [1] and implemented successful result only when
we can get needed memory without squeezing [2].

My big problem is testing that stuff. I have vm with these characteristics
$ xe vm-param-list uuid=ec1dec56-ae4f-d854-8065-e106a1139361 | grep memory
                 memory-actual ( RO): 250609664
                 memory-target ( RO): 250609664
               memory-overhead ( RO): 4194304
             memory-static-max ( RW): 250000000
            memory-dynamic-max ( RW): 250000000
            memory-dynamic-min ( RW): 250000000
             memory-static-min ( RW): 250000000

and while localhost migration Squeezer says that it can't  reserve
memory without squeezing.

256428)|xenstore-rpc] using new version of reserve_memory
256428)|xenops] force_change_host_free_memory required_mem = 265644
256428)|xenops] Total non-domain reservations = 811008
256428)|xenops] domid 3 has been declared inactive
256428)|xenops] total_range = 0 gamma = 1.000000 gamma' = inf
256428)|xenops] Total additional memory over dynamic_min = 2675808
KiB; will set gamma = 1.00 (leaving unallocated 0 KiB)
256428)|xenops] Maximum possible free memory if all active domains
balloon down to dynamic_min = 2941452
256428)|xenops] current host free mem = 2941452 KiB (aiming for 265644
KiB); OK; all domain targets not reached; allocation phase
256428)|xenops] Can't free 265644 KiB: some domains need squeezing

I'm a little bit confused why first number is less than second in `
mem = 2941452 KiB (aiming for 265644 KiB)`. Maybe I dont understand
something good enough

So I have two questions:
1) How to setup parameters for testing migration with my new daemon?
2) What else pifalls I will have in my way while disabling autobalancing?



Xen-api mailing list



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