From: Keir Fraser Subject: Re: [PATCH] x86: add SSE-based copy_page() Date: Tue, 13 Jan 2009 08:13:27 +0000 Message-ID: References: <1590c7eb-4c3f-4712-a4ab-c61ce305096e@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1590c7eb-4c3f-4712-a4ab-c61ce305096e@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Cui, Dexuan" , Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/01/2009 23:29, "Dan Magenheimer" wrote: > I finally got around to measuring this. On my two machines, > an Intel "Weybridge" box and an Intel TBD quadcore box, > the new sse2 code was at best nearly the same for cold cache > and much worse for warm cache. > > I can't explain the sampling variation as I have interrupts off, > a lock held, and pre-warmed TLB... I suppose maybe another > processor could be causing rare TLB misses? But in any case > the min number is probably best for comparison. > > I'm guessing the gcc optimizer for the memcpy code was tuned > for an Intel pipeline... Jan, were you measuring on an > AMD processor? > > I've included the raw data and measurement code below. Seems like unless we dynamically choose the copy routine, we're better off without the SSE2 alternative. Shall I revert it then? -- Keir