xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* tmem and construct_dom0 memory allocation race
@ 2010-06-18 23:10 Dulloor
  2010-06-19  7:26 ` Keir Fraser
  0 siblings, 1 reply; 8+ messages in thread
From: Dulloor @ 2010-06-18 23:10 UTC (permalink / raw)
  To: xen-devel

tmem could cause Dom0 allocation to fail with error "Not enough RAM
for DOM0 reservation", particularly when used without dom0_mem option.

Following is the sequence :
- init_tmem allocates a set of pages and sets up dstmem and workmem to
alloc pages in MP case (with cpu notifiers)
- construct_dom0 estimates nr_pages by calling avail_domheap_pages
- On other CPUs, tmem cpu_notifier gets called and allocates pages
from domheap, making the construct_dom0's estimate stale.
- construct_dom0 fails

tmem=off or dom0_mem=xxx both solve the problem for now.

-dulloor

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

end of thread, other threads:[~2010-06-22 18:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-18 23:10 tmem and construct_dom0 memory allocation race Dulloor
2010-06-19  7:26 ` Keir Fraser
2010-06-21 15:35   ` Dan Magenheimer
2010-06-22  7:17     ` Dulloor
2010-06-22  7:36       ` Jan Beulich
2010-06-22  7:38       ` Keir Fraser
2010-06-22 17:23         ` Dan Magenheimer
2010-06-22 18:56           ` Dulloor

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).