|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [PATCH] PoD: Handle operations properly when domain is d
(Sorry, George, for hijacking your thread :-)
> > A possibly related issue came up in a team discussion
> > yesterday. It is not uncommon for management tools to
> > check available memory to decide if there is sufficient
> > space to provision a new domain, for example when choosing
> > a machine on which to start a new domain. But there is
> > no "lock" so if the answer is yes and the machine
> > is chosen, but moments later some memory becomes used
> > (by PoD or ballooning or ???), domain creation might
> > fail due to insufficient memory.
>
> In the xapi toolstack world we assume that all domains on a
> host will be able to balloon down to their "dynamic_min" and
> use this in our host-choosing logic. We bias the choice of
> host towards the ones with the most memory free... but
> ultimately if the guests don't respond then we'll still get
> an out-of-memory error.
>
> We're also writing/debugging a host ballooning daemon which
> you can ask to reserve memory for stuff like a domain
> creation. It asks the domains to balloon down and then makes
> sure they stay down by setting maxmem. I'm in the middle of
> writing up how it's supposed to work, I'll send a link around
> for comments when I have a draft.
Great! I'm definitely interested!
> > Tmem has a "freeze" feature to avoid this problem, but
> > tmem has the advantage that all domains will continue
> > to function even if tmem is frozen... I'm not sure
> > that's true for PoD.
>
> This sounds interesting -- do you have a link to a document somewhere?
Tmem is fully implemented in xen-unstable in both Xen
and the xm tools, but it currently needs to be turned
on by a boot option and does nothing without a tmem-modified
guest kernel.
There's a lot of generic description of tmem at
http://oss.oracle.com/projects/tmem
but as of now the only description of tmem-freeze is
in the code. Let me know if you have any general
questions and I will try to answer.
Note however that the concept of "free memory" changes
a lot on any system with a guest using tmem. There is
now "free memory" and "freeable memory" and the sum of
the two is memory that is available for other purposes
such as domain creation.
Thanks,
Dan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|