From: Mark Williamson Subject: Re: [Xen-users] cache for partition based VBD? Date: Wed, 30 Nov 2005 02:10:16 +0000 Message-ID: <200511300210.16898.mark.williamson@cl.cam.ac.uk> References: <20051129111151.452d9b85.tfreeman@mcs.anl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20051129111151.452d9b85.tfreeman@mcs.anl.gov> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-users@lists.xensource.com Cc: Tim Freeman , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > 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