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-users

Re: [Xen-users] cache for partition based VBD?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] cache for partition based VBD?
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 30 Nov 2005 02:10:16 +0000
Cc: Tim Freeman <tfreeman@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 30 Nov 2005 02:14:55 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20051129111151.452d9b85.tfreeman@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20051129111151.452d9b85.tfreeman@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.3
> For partition backed VBDs, is there still an effective cache in dom0?  The
> Linux buffer cache will affect file based VBDs, but does the partition
> backed VBD get around it?

AFAIK the blkback driver uses uncached interfaces to storage.  Caching only 
happens if you're using loop devices in dom0, because that indirects through 
the filesystem, which will being use the page cache.

You don't want caching in dom0, really: the domU will manage its own caches 
(and do so more effectively than dom0 could!) anyhow, so there's no point 
duplicating the effort.

> I think that the Linux architecture puts the buffer cache in front of all
> block device access, not at the VFS layer.  So does that answer the
> question?  The dom0 disk backend driver sits "above" the buffer cache? 
> (sorry for my crude understanding)

AFAIK, it sits *alongside* the page cache layer, as another client of the 
block system proper.

Cheers,
Mark

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

<Prev in Thread] Current Thread [Next in Thread>