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]RFC: VGA accleration using shadow PTE D-bit to co

To: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>, "Tim Deegan" <Tim.Deegan@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH]RFC: VGA accleration using shadow PTE D-bit to construct LFB dirty bitmap
From: "Huang, Xinmei" <xinmei.huang@xxxxxxxxx>
Date: Tue, 31 Jul 2007 11:10:49 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Jul 2007 20:08:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8A87A9A84C201449A0C56B728ACF491E2600FE@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfSmPsmUkkzcSUoTieZ2E28u26g3AAB9oggAB2bUYA=
Thread-topic: [Xen-devel] [PATCH]RFC: VGA accleration using shadow PTE D-bit to construct LFB dirty bitmap
>-----Original Message-----
>From: Ian Pratt [mailto:Ian.Pratt@xxxxxxxxxxxx] 
>Sent: 2007年7月30日 20:11
>To: Tim Deegan; Huang, Xinmei
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Ian.Pratt@xxxxxxxxxxxx
>Subject: RE: [Xen-devel] [PATCH]RFC: VGA accleration using 
>shadow PTE D-bit to construct LFB dirty bitmap
>
>
>> If there is one kernel-mode mapping of the LFB, though, I'd 
>> expect it to be fairly rarely torn down; it would need the 
>> shadows of all processes that were ever running when the 
>> kernel touched the video RAM to be reaped.  So just marking 
>> the page dirty when you make or tear down a vram mapping 
>> should be better.
>
>Ideally, we'd return 'all-dirty' for a missing shadow page just once,
>and then 'all-clean' on subsequent scans until the PT page gets
>reshadowed. 

Agreed. Re-drawing is much time-consuming. We'd avoid unnecessary re-drawing if 
possible.

>I can imagine that if an OS'es screen blanker kicked in we 
>might not see
>any further writes to the LFB, and this could lead to the shadows
>ultimately getting evicted, resulting in pessimal performance if we're
>always returning 'all-dirty'.
>
>There's no real need to do this on a page granularity -- if any of our
>LFB-mapping shadow pages have been evicted we could evict them all. I'm
>not sure this makes things any easier, though.
>
>We can use missing shadows as an optimization: if we return a bit map
>with 'everything clean' a few times in a row, we are probably 
>better off
>pro-actively unshadowing the page to avoid even doing the dirty bit
>scanning.

Unshadowing & re-shadowing the all LFB pages are expensive. 
Performance would vary because the characteristic of graphic-intensive workload 
and the value of N -- the times of continuous 'all-clean'.
I'm not sure this brings suffient benefit.

>
>Best,
>Ian
>
-Xinmei

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