From: Dan Magenheimer Subject: RE: [PATCH 0/6] x86: break up post-boot non-order-zero allocations Date: Tue, 5 Apr 2011 19:50:51 -0700 (PDT) Message-ID: <80f4b778-0b4d-490b-8ce9-3df37a01d029@default> References: <4D9AECA60200007800039F26@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: <4D9AECA60200007800039F26@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 , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thanks very much Jan for making forward progress on this! A couple things: IIRC, PCI-passthrough is another user of multi-page allocations. At some point, does it make sense to eliminate the multi-page allocation functionality, at least through the "normal" page allocation routines, and add a: /* documentation about why not to use this */ alloc_contiguous_pages_DEPRECATED(order) call so that it is very explicit when future page allocation users "regress" by adding a multi-page allocation request? Thanks again! Dan > -----Original Message----- > From: Jan Beulich [mailto:JBeulich@novell.com] > Sent: Tuesday, April 05, 2011 2:19 AM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] [PATCH 0/6] x86: break up post-boot non-order-zero > allocations >=20 > While tmem is most affected by this, due to fragmentation it is > generally > a bad idea to require runtime allocations of more than a single page in > size. >=20 > 1: remove direct cpumask_t members from struct vcpu and struct domain > 2: x86: split struct vcpu > 3: x86: move pv-only members of struct vcpu to struct pv_vcpu > 4: x86: split struct domain > 5: x86: introduce alloc_vcpu_guest_context() > 6: passthrough: use domain pirq as index of struct hvm_irq_dpci's > hvm_timer array >=20 > With this, structure sizes are below page size, and no longer depend > significantly on NR_CPUS. This series, however, doesn't eliminate > all non-order-zero allocations that happen post boot (i.e. mostly > during domain creation). Items that are known to need addressing > are > - nr_irqs-sized allocation of ->arch.irq_pirq[] in > xen/arch/x86/domain.c:arch_domain_create() > - ->nr_pirqs-sized allocations in > xen/drivers/passthrough/io.c:pt_irq_create_bind_vtd() > - ->nr_pirqs-sized allocation of ->arch.pirq_irq[] in > xen/arch/x86/domain.c:arch_domain_create() > - ->nr_pirqs-sized allocation of ->pirq_to_evtchn[] in > xen/common/domain.c:domain_create() >=20 > Signed-off-by: Jan Beulich >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel