From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: question on iommu _map_page Date: Fri, 2 Jul 2010 08:13:41 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kaushik Kumar Ram Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 02/07/2010 07:22, "Kaushik Kumar Ram" wrote: >> See if xen-unstable:21597 works for you. > > Keir, > > I finally found some time to test your patch. While it seems to fix the > problem, it *significantly* degrades performance. > On running netperf, there is a 10X reduction in throughput to a guest VM. On > profiling, I find a significant number of cycles > being spent in mapcount(). In the current solution, the entire grant table is > searched every time (right ?). The mapping info > ought to be stored in some per-page location... for efficient access. It needs to be a per-mapping-domain location. Like the VT-d pte itself. Patches welcome. -- Keir