All of lore.kernel.org
 help / color / mirror / Atom feed
* Tmem vs order>0 allocation, workaround RFC
@ 2010-02-12 17:24 Dan Magenheimer
  2010-02-12 18:07 ` Dan Magenheimer
  2010-02-15  8:21 ` Keir Fraser
  0 siblings, 2 replies; 15+ messages in thread
From: Dan Magenheimer @ 2010-02-12 17:24 UTC (permalink / raw)
  To: Keir Fraser, xen-devel, Jan Beulich
  Cc: George Dunlap, kurt.hackel, Ian Pratt, Tim Deegan, Patrick Colp,
	Grzegorz Milos, Andrew Peace

I just had an idea for a workaround that might be low enough
impact to get in for 4.0 and allow tmem to be enabled by
default.  I think it will not eliminate the fragmentation
problem entirely, but would greatly reduce the probability
of it causing problems for domain creation/migration when tmem
is enabled, and possibly for the other memory utilization
features as well.

Simply, avail_heap_pages would fail if total_avail_pages
is less than 1%(?) of the total memory on the system AND
the request is order==0.  Essentially, this is reserving
a "zone" for order>0 allocations.

It could be tied to tmem_enabled but, as previously discussed,
even fragmentation from frequent ballooning can fragment
memory and cause problems for domain creation/migration...
and since, without memory utilization features it is highly
unlikely that a system will "accidentally" pack in enough
domains to use between 99% and 100% of physical memory anyway,
always enabling this restriction would affect very very few
systems.

Comments?  I'm not sure I've thought this all the way
through and certainly haven't tested it yet, but it
seems like it should be easy to implement in a low-impact
patch.

Thanks,
Dan

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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 17:24 Tmem vs order>0 allocation, workaround RFC Dan Magenheimer
2010-02-12 18:07 ` Dan Magenheimer
2010-02-15  8:21 ` Keir Fraser
2010-02-15 14:31   ` Dan Magenheimer
2010-02-15 15:40     ` Keir Fraser
2010-02-15 15:55       ` Dan Magenheimer
2010-02-15 16:36         ` Dan Magenheimer
2010-02-16  8:20           ` Jan Beulich
2010-02-16 15:05             ` Dan Magenheimer
2010-02-16 15:15               ` Jan Beulich
2010-02-16 15:31                 ` Dan Magenheimer
2010-02-16 15:45                   ` Jan Beulich
2010-02-16 16:44                     ` Dan Magenheimer
2010-02-16 18:20               ` Konrad Rzeszutek Wilk
2010-02-15 16:37         ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.