From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Writing to a ramdisk in a PV domain is SLLLOOOWWW?!? Date: Thu, 06 May 2010 15:26:10 -0700 Message-ID: <4BE34202.9030406@goop.org> References: <89f1cead-b77d-4294-ab12-5e05344ed346@default 4BE2FF9D.9010500@goop.org> <0e439ebe-9e32-41b9-b409-9d445debee47@default> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 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: "Santos, Jose Renato G" Cc: Dan Magenheimer , "Xen-Devel (xen-devel@lists.xensource.com)" List-Id: xen-devel@lists.xenproject.org On 05/06/2010 03:04 PM, Santos, Jose Renato G wrote: > This is complete wild guess, but could it be that you are doing multi-page I/O with non contiguous machine pages? > I believe the DMA API for pv guests uses swioltlb which does extra copies to a bounce buffer if you request a dma address to a multi-page region (as the pages may be non contiguous). > Ramdisk access shouldn't be going anywhere near DMA API or swiotlb. J