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

Re: [Xen-devel] [PATCH 1/2, v2] x86: replace nr_irqs sized per-domain arrays with radix trees


  • To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Wed, 04 May 2011 20:55:02 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Allen M Kay <allen.m.kay@xxxxxxxxx>
  • Delivery-date: Wed, 04 May 2011 12:56:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=QzwEyjKIc33Si61QH55SSvq8SCfROH9BrfybiJmGQ/R0p7+HBGluLiEThQyLc+9Oyt dq2XcDEGN+bbRp1V6B3qrl7c18pyIFhFjj8xn//bYVoa4xK55yWHmofQgZiKAT5fFzuq Xgx0WnQQeHR/QpGKxaBRc2RJ9JjKmLMT5P5Hg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcwKlSe8ZV2u+ZRfoUGwKEbo8U7M3A==
  • Thread-topic: [Xen-devel] [PATCH 1/2, v2] x86: replace nr_irqs sized per-domain arrays with radix trees

On 04/05/2011 17:13, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> After some offlist discussion, for kztmem (later renamed "the new
> zcache"), I ended up extracting the essence of the radix-tree data
> structure and adapting it inline specifically for my in-kernel tmem
> needs.  While I'm not a fan of duplicating code, this was an
> expedient way to avoid a political quagmire.
> 
> Ideally, the Xen radix-tree.c would support both needs through some
> kind of layering, but if your preference is to go to the upstream
> Linux radix-tree.c, I can probably leverage my inlined-radix-tree
> code into Xen tmem.c.  I don't expect it will be trivial though.

I'm sure I can pull in upstream radix-tree.c and get Xen's tmem ported onto
it. As for performance, I may leave the tagging stuff out as we won't need
it. Then it's just quibbling over RCU overheads, which I would bet are
manageable. We can modify radix-tree.c further if there is good reason for
it.

 -- 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®.