From: Dan Magenheimer Subject: RE: tmem - really default to on? Date: Mon, 8 Feb 2010 10:30:40 -0800 (PST) Message-ID: <40177025-a986-49bb-9383-4175212d6e5f@default> 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: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dan.magenheimer@oracle.com, Jan Beulich Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org > > 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. >=20 > I'm suggesting disabling CONFIG_TMEM for default dom0 compile Oops, I see in re-reading your earlier posts that you are enabling it by default for domU as well. In that case I agree, sadly, that your best choice might be to disable tmem completely in your Xen hypervisor, at least until the Xen fragmentation issues are resolved. > -----Original Message----- > From: Dan Magenheimer > Sent: Monday, February 08, 2010 10:19 AM > To: Jan Beulich > Cc: Keir Fraser; xen-devel@lists.xensource.com > Subject: RE: tmem - really default to on? >=20 > > >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? > > > > 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. >=20 > OK. Agreed this is too big a change for 4.0 but I'm thinking > about post-4.0. >=20 > 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. >=20 > 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. > > > > 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. >=20 > 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. >=20 > Dan