[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0/6] x86: break up post-boot non-order-zero allocations


  • To: Jan Beulich <JBeulich@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Tue, 05 Apr 2011 12:59:14 +0100
  • Cc:
  • Delivery-date: Tue, 05 Apr 2011 05:01:58 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=X39HRGxoG6GEXBsyIkMbjc5NxRiSOUyiVxm15EGyybEOy1ogXIv3EhmfDTSPQh5hqs FYaF5WsNzv3mA2jPf4EGdhSe0m4a1yyoHE431L1Hv9LmreOQ8szhBtCPL3+6JRa+E6XL z6dBfydKLyDOkb7637bzQnviuQ61gyv4t9/yk=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcvziOHTeGEhfJPrgkm+WKk7L2q3XA==
  • Thread-topic: [Xen-devel] [PATCH 0/6] x86: break up post-boot non-order-zero allocations

On 05/04/2011 09:19, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

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

I wonder whether some of these irq-indexed and pirq-indexed values could be
agregated together into two separate structs, and then keep them in
irq-indexed and a pirq-indexed radix trees? It might actually be more space
efficient if nr_irqs or nr_pirqs is large, quite apart from the benefit of
getting rid of the multi-page allocations.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.