From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: Does blkback bypass Dom0's memory buffer? Date: Wed, 5 Feb 2014 09:46:58 +0100 Message-ID: <52F1FA82.6080101@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xu cong , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 04/02/14 22:15, xu cong wrote: > Does blkback thread bypass Dom0's memory buffer? If I write in DomU > without O_Direct, the data will be buffered in DomU's memory cache then > be flushed to disk. Will them be buffered in Dom0's memory again? How > about the netback? Thanks. Blkback will not do any kind of buffering itself, the request is read from the shared ring and passed to the underlying device using submit_bio. If you want to make sure your data has hit the disk you should issue a flush operation (see "feature-flush-cache" in blkif.h) Roger.