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] Performance issues with large grants

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Performance issues with large grants
From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Date: Thu, 23 Sep 2010 17:03:15 -0400
Delivery-date: Thu, 23 Sep 2010 14:04:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Organization: National Security Agency
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Thunderbird/3.1.2
I am trying to map a large number of pages in an HVM domain and am
running into significant performance issues. Currently, mapping 1280
pages will take 11 seconds to complete, which is not very usable. I
have determined that the most costly part of the update is the IOMMU
flush which takes about 9ms per page (the domain doing the mapping
has a PCI device forwarded to it). Allowing this update to be disabled
and batched to the end of the update improves the speed to around 800ms,
but this introduces instability in the network drivers, which stop
receiving host-to-guest packets.

Is there a better method to batch the P2M updates for grant table
modifications that I should try? The improved speed is still slower
than I would expect (about 40ms), so there are other high-cost actions
being performed in addition to the IOMMU flush. I have also considered
allowing mapping 2M pages between domains as an alternate solution;
this would be a larger API change, and I'd be interested in comments on
the general usefulness of 2M grants.

-- 
Daniel De Graaf
National Security Agency

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

<Prev in Thread] Current Thread [Next in Thread>