WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Where do we stand with the Xen patches?

To: Ingo Molnar <mingo@xxxxxxx>
Subject: [Xen-devel] Re: Where do we stand with the Xen patches?
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Fri, 15 May 2009 12:59:03 -0700
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Olaf Kirch <okir@xxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Greg KH <gregkh@xxxxxxx>
Delivery-date: Fri, 15 May 2009 12:59:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090515183550.GA20833@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4A0C770E.2030305@xxxxxxxx> <20090515183550.GA20833@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Ingo Molnar wrote:
These look fine but i still need to go over them one last time before pulling them.

Yes. Here too i still need to go over them once more before pulling them.

I've been posting these patches in fundamentally the same form for about 6 months now. I don't think you'll find anything surprising.

for-ingo/xen/dom0/mtrr

   You queried the value of "extending" this interface, given that its
   considered to be deprecated.  These changes in no way extend the
   interface, but just make the existing interface functional under
   Xen.  And while we don't have PAT support, there's no other way of
   setting cachability attributes on memory, so not supporting it has a
   fairly severe performance impact on things like X.

Latest Xorg doesnt need /proc/mtrr. By the time this kernel (.31 or later) hits any distribution, /proc/mtrr using Xorg will be a distant memory. So i see no reason why to apply those bits at all, and i see a lot of reasons to not apply them.

In general we don't break usermode ABIs, even when using new kernels with old distros, so I don't see why this case is any different.

Besides, these changes are not only for /proc/mtrr, but also to implement the internal mtrr_add() APIs that DRM uses to set the MTRR inside the kernel, so failing to implement them will cause performance regressions on new X servers.

Given that we're talking about 120 lines of code with no runtime impact and tiny kernel size impact (when configured), I'm at a loss for what your "lot of reasons" might be. Perhaps you could be more specific.

As in the past, my main worry is performance overhead of paravirt in general.

The patches that dont affect any native kernel fast path are probably OK (but still pending final review).

These changes don't have anything much to do with paravirt_ops, per se, and are all specifically about Xen dom0 support. Aside from that, none of the changes are on performance-critical paths.

Regarding patches that do change the fastpath i'll do a round of measurements of CONFIG_PARAVIRT against !CONFIG_PARAVIRT kernels, and make up my mind based on that.

You could accelerate this by sending some "perf stat" hard numbers to give us an idea about where we stand today.

I posted them the other day; those perf stat measurements pointing out the pv-spinlock problem also showed that paravirt_ops in general has a sub-1% performance hit (and possible performance benefit) when running mmap-perf. You added them into the commit log for the patch, so I presume you read it.

   J

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