From: Dan Magenheimer Subject: RE: tmem - really default to on? Date: Mon, 8 Feb 2010 09:18:51 -0800 (PST) Message-ID: References: <4B669BDB020000780002CEFC@vpn.id2.novell.com> <4B6BE738020000780002DDE9@vpn.id2.novell.com><4B6BE738020000780002DDE9@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4B6FDA7C020000780002E2EF@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org > >This has likely been avoided by luck when lots of memory is > >flushed from tmem and returned to the Xen heap and consolidated. > > > >Are you suggesting that the domain structure could/should have > >two sizes, dynamically chosen by machine size? Or something > >else? >=20 > No, it just should be split into parts each of which fits in a page > independent of architecture. But that's nothing I would consider > realistic for 4.0. OK. Agreed this is too big a change for 4.0 but I'm thinking about post-4.0. The order=3D2 shadow page allocation should also probably be considered a "bug" for post-4.0 as, I think, even ballooning will eventually fragment memory and theoretically 75% of physical memory might be unused and domain creation (or PV migration) will fail. Since (I think) this affects other Xen 4.0 dynamic memory utilization solutions, I'll post a separate basenote to discuss that. =20 > >In any case, I'd still suggest turning tmem off in your dom0 > >is the best short-term solution. >=20 > I'm still not following you here: For one, I can't recall a way to turn > of tmem on a per-domain basis. Then I can't see why it should be > only our Dom0 to be affected. And finally I can't see how the same > couldn't happen when only DomU-s use tmem. I'm suggesting disabling CONFIG_TMEM for default dom0 compile (for all dom0 for now). Then only environments that consciously run a domU with a tmem-enabled kernel could be affected. The failure can only occur if at least one domU/dom0 enables tmem, and even then should only occur in certain workloads, though I suppose eventually sufficient fragmentation may occur in any workload. Dan