qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: ronnie sahlberg <ronniesahlberg@gmail.com>
To: Christoph Hellwig <hch@lst.de>
Cc: qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] iSCSI support for QEMU
Date: Thu, 21 Apr 2011 18:58:05 +1000	[thread overview]
Message-ID: <BANLkTimC01Xx1uHzaCfp44msPPkThDvfEA@mail.gmail.com> (raw)
In-Reply-To: <20110421085026.GA4817@lst.de>

Please re-read my post or read the patch.

It has O_DIRECT like behaviour in that it will not pollute the hosts cache.
This for the simple reason that the host is not aware that there is
any block i/o happening.

In my patch, there are NO data integrity issues.
Data is sent out on the wire immediately as the guest issues the write.
Once the guest issues a flush call, the flush call will not terminate
until the SYNCCACHE10 task has completed.

I do not have any cache at all in libiscsi or the patch. All I/O are
always sent to the iSCSI target.
No data is ever cached anywhere.


I am just saying that in the tests I did,  I had to use
'cache=none,aio=native' to come anywhere near the libiscsi
performance.
All other options performed significantly worse.

I have no idea what those options have for effect on data integrity or
open-iscsi.
There should not be any integrity issues in libiscsi since it does not
cache at all, ever.


regards
ronnie sahlberg


On Thu, Apr 21, 2011 at 6:50 PM, Christoph Hellwig <hch@lst.de> wrote:
> On Thu, Apr 21, 2011 at 06:43:10PM +1000, Ronnie Sahlberg wrote:
>> Some basic tests thatve been performed show it to be significantly faster
>> than an out-of-the-box open-iscsi mounted LUN being accessed by default
>> QEMU i/o options.
>
> Which isn't a useful comparism.  qemu's default is the braindead
> cache=writethrough behaviour, which forces writes out to disk, and bloats the
> pagecache, while your mail sounds you silently always implement O_DIRECT-like
> semantics.
>
> Also the implementation has data integrity issues due this.  It does
> not actually force writes out to disk in the default cache mode, despite
> qemu claiming to have WCE=0 in the default mode, i.e. you never flush
> the cache.  You'll need set the FUA bits on all writes if cache=writethrough
> is used, with a fallback to a real cache flush in case the target doesn't
> support the FUA bit.
>
>

  reply	other threads:[~2011-04-21  8:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-21  8:43 [Qemu-devel] iSCSI support for QEMU Ronnie Sahlberg
2011-04-21  8:43 ` [Qemu-devel] [PATCH] iSCSI block driver support Ronnie Sahlberg
2011-04-21  8:50 ` [Qemu-devel] iSCSI support for QEMU Christoph Hellwig
2011-04-21  8:58   ` ronnie sahlberg [this message]
2011-04-21  9:09     ` Christoph Hellwig
2011-04-21  9:28       ` ronnie sahlberg
2011-04-21 10:58         ` Stefan Hajnoczi
2011-04-21 11:12           ` ronnie sahlberg
2011-04-21 11:21             ` Stefan Hajnoczi
2011-04-21 11:36               ` ronnie sahlberg
2011-04-21 11:44                 ` Kevin Wolf
2011-04-21 12:08                 ` Stefan Hajnoczi
2011-04-21 12:49                 ` Christoph Hellwig
2011-04-21 20:25                   ` ronnie sahlberg
2011-04-21  9:47       ` ronnie sahlberg
  -- strict thread matches above, loose matches on Subject: below --
2011-06-12  2:54 ronnie sahlberg

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=BANLkTimC01Xx1uHzaCfp44msPPkThDvfEA@mail.gmail.com \
    --to=ronniesahlberg@gmail.com \
    --cc=hch@lst.de \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.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).