From: "Roger Pau Monné" <roger.pau@citrix.com>
To: xu cong <congxumail@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: Does blkback bypass Dom0's memory buffer?
Date: Wed, 5 Feb 2014 09:46:58 +0100 [thread overview]
Message-ID: <52F1FA82.6080101@citrix.com> (raw)
In-Reply-To: <CA+hYhXvMiMn3i6oF=5dO_A2qHo=s=g+PDFeJ-9K=HmeNrkq8mw@mail.gmail.com>
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.
prev parent reply other threads:[~2014-02-05 8:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 21:15 Does blkback bypass Dom0's memory buffer? xu cong
2014-02-05 0:09 ` Wei Liu
2014-02-05 0:23 ` xu cong
2014-02-05 0:30 ` xu cong
2014-02-05 8:46 ` Roger Pau Monné [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52F1FA82.6080101@citrix.com \
--to=roger.pau@citrix.com \
--cc=congxumail@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).