xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features
@ 2010-02-08 18:13 Dan Magenheimer
  2010-02-08 19:11 ` Keir Fraser
  2010-02-09 13:13 ` Jan Beulich
  0 siblings, 2 replies; 8+ messages in thread
From: Dan Magenheimer @ 2010-02-08 18:13 UTC (permalink / raw)
  To: xen-devel, Grzegorz Milos, Patrick Colp, Andrew Peace,
	George Dunlap
  Cc: Ian Pratt, Keir Fraser, Jan Beulich

In a recent thread:

http://lists.xensource.com/archives/html/xen-devel/2010-02/msg00295.html

Jan Beulich points out that the memory fragmentation that results
from Transcendent Memory ("tmem") sometimes causes problems for
domain creation and PV migration because the shadow code requires
order=2 allocations and the domain struct is order=4.

Though tmem accelerates fragmentation, I *think* this fragmentation
can occur with page sharing/swapping, and possibly PoD.  In fact,
I think it can occur even with just ballooning.

I think the domain struct issue should be relatively easy to
resolve (though maybe with a large patch), but the shadow code
may be much harder.

But unless the shadow code is also fixed, theoretically 75% of RAM
could be "free" but domain creation/migration failures may occur,
reported only as insufficient memory.

Clearly it's too late to fix this for 4.0 but, given that 4.0-based
product announcements are likely to emphasize the new 4.0 memory
optimization technologies, it might be good to resolve it very
early in 4.1/xen-unstable development.

Comments?

Are there other known order>0 allocations that might result
in similar issues?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features
@ 2010-02-18  8:04 Jan Beulich
  2010-02-18 16:09 ` Dan Magenheimer
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2010-02-18  8:04 UTC (permalink / raw)
  To: Dan Magenheimer
  Cc: xen-devel, Tim Deegan, GeorgeDunlap, PatrickColp, Ian Pratt,
	Andrew Peace, Keir Fraser, Grzegorz Milos

>>> Dan Magenheimer <dan.magenheimer@oracle.com> 08.02.10 19:13 >>>
>Are there other known order>0 allocations that might result
>in similar issues?

Interestingly, tmem itself indirectly causes order-1 allocations (through
the use of xmem_pool_create(), sizeof(struct xmem_pool) = 0x18d0
on a non-debug build).

Jan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-18 17:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 18:13 Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features Dan Magenheimer
2010-02-08 19:11 ` Keir Fraser
2010-02-09 10:50   ` Tim Deegan
2010-02-09 13:13 ` Jan Beulich
  -- strict thread matches above, loose matches on Subject: below --
2010-02-18  8:04 Jan Beulich
2010-02-18 16:09 ` Dan Magenheimer
2010-02-18 16:18   ` Jan Beulich
2010-02-18 17:32     ` Dan Magenheimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).