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

RE: [Xen-devel] [PATCH] x86: add SSE-based copy_page()

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] x86: add SSE-based copy_page()
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 14 Nov 2008 11:08:24 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 Nov 2008 19:08:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8602e8f9-7e31-463d-b33f-6b4e74d4dd29@default>
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: <491BF556.76E4.0078.0@xxxxxxxxxx> <8602e8f9-7e31-463d-b33f-6b4e74d4dd29@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclF6Y1mSHiU5zdGTZeAKgqEt3myaQAG25BQ
Thread-topic: [Xen-devel] [PATCH] x86: add SSE-based copy_page()
Hi Dan,
clflush(flush a cache line; you may need a loop to flush a page.) or 
wbinvd(flush all the caches) should be what you need to flush caches on x86.

Thanks,
-- Dexuan


-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Dan Magenheimer
Sent: 2008年11月14日 7:42
To: Jan Beulich
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] [PATCH] x86: add SSE-based copy_page()

> This very much depends on whether the page(s) are in any caches - in
> the general case (e.g. when dealing with large sets of data, or data
> just read from disk), you'd expect both pages (source and destination)
> not to be in any cache. This is where using the streaming instructions
> helps.
> 
> However, when dealing with a small set of pages (or even just a single
> source/destination pair), you'd easily run entirely on L1 or 
> L2 data, which
> certainly performs better using the non-streaming instructions.

Is there a way to force-flush-cache on a page full of data?  (I knew
how to do this once on ia64...)  I can easily measure warm-start but
am not sure how to measure cold-start without some kind of flush.

Thanks,
Dan

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