From: Dan Magenheimer Subject: RE: Tmem vs order>0 allocation, workaround RFC Date: Tue, 16 Feb 2010 07:05:48 -0800 (PST) Message-ID: References: <2af13319-6b44-44e2-ab62-a0615208cf64@default> <78c49794-4454-4c3b-80a6-72efcbc73fb3@default><78c49794-4454-4c3b-80a6-72efcbc73fb3@default> <057c0f45-9c97-4b8a-8efa-1726fd951e19@default 4B7A6363020000780002F93C@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: <4B7A6363020000780002F93C@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 , Keir Fraser , xen-devel@lists.xensource.com Cc: George Dunlap , kurt.hackel@oracle.com, Patrick Colp , Andrew, Tim, Ian Pratt , Peace , Deegan , Grzegorz Milos List-Id: xen-devel@lists.xenproject.org Hi Jan -- Thanks for thinking about this. > may not work well: When you have 1Tb, you'd reserve 8G, making Dom0 > single-page-below-4G-allocations impossible (unless dom0_mem=3D was > used) if I read the logic correctly. Good point. But tmem doesn't work very well at all if dom0_mem isn't set as dom0 is hogging all the spare memory in the system so only fallow memory reclaimed from selfballooning domains can be used by tmem. Under what circumstances does dom0 require single-page-below-4G allocations? Is it only for bounce buffers for PCI passthrough of old devices with 32-bit addressing limitations? Or am I missing a much more common case? (I think it's important to enumerate and understand -- and document -- all special needs of memory pages as Xen has been fairly careless/lucky with fragmentation so far, but with all the memory optimization technologies in 4.0, we need to root out all the cases.) Thanks, Dan