All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, Ryan Grimm <grimm@us.ibm.com>
Subject: Re: [PATCH 2/6] xen: Add NUMA support to Xen
Date: Tue, 2 May 2006 09:53:45 -0500	[thread overview]
Message-ID: <20060502145345.GB16776@us.ibm.com> (raw)
In-Reply-To: <c3edf3c621b96acfe644e284bff8f241@cl.cam.ac.uk>

* Keir Fraser <Keir.Fraser@cl.cam.ac.uk> [2006-05-02 09:18]:
> 
> On 1 May 2006, at 22:57, Ryan Harper wrote:
> 
> >This patch introduces a per-node layer to the buddy allocator.  Xen 
> >currently
> >defines the heap as a two-dimensional array, [zone][order].  This 
> >patch adds a
> >node layer between zone and order.  This allows Xen to hand memory out 
> >in the
> >proper zone while preferring local memory allocation, but can 
> >fall-back on
> >non-local to satisfy a zone request.
> 
> Loops over every memory chunk structure on the alloc/free paths aren't 
> going to get merged. There's no need for it -- in most cases memory 
> chunks are probably aligned on a MAX_ORDER boundary (or they will be 
> when I reduce MAX_ORDER, which requires me to fix up our Linux swiotlb 
> a bit first). When that isn't the case you can simply reserve guard 
> pages at the start and end of such chunks to avoid cross-chunk merging.

I'll toss page_spans_chunk() and the user in the free path, use some
guard pages and resubmit.  page_to_node still uses the chunk array to
determine which node a struct page_info belongs to, which is used in the
free path.  Is that acceptable?

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

  reply	other threads:[~2006-05-02 14:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 21:57 [PATCH 2/6] xen: Add NUMA support to Xen Ryan Harper
2006-05-02 14:17 ` Keir Fraser
2006-05-02 14:53   ` Ryan Harper [this message]
2006-05-02 16:22     ` Keir Fraser
2006-05-08 18:16       ` Ryan Harper
2006-05-12 15:12         ` [PATCH 2/6][RESEND] " Ryan Harper
2006-05-13  9:27           ` Keir Fraser
2006-05-31 19:14             ` Ryan Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060502145345.GB16776@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=grimm@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.