CEPH filesystem development
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: Sage Weil <sweil@redhat.com>,
	sjust@redhat.com, jdurgin@redhat.com, yehuda@redhat.com,
	dillaman@redhat.com
Cc: zhiqiang.wang@intel.com, ceph-devel@vger.kernel.org
Subject: Re: rados read ordering
Date: Mon, 08 Dec 2014 15:38:48 -0800	[thread overview]
Message-ID: <54863688.20202@inktank.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1412080855300.5263@cobra.newdream.net>

On 12/08/2014 09:03 AM, Sage Weil wrote:
> The current RADOS behavior is that reads (on any given object) are always
> processed in the order they are submitted by the client.  This causes a
> few headaches for the cache tiering that it would be nice to avoid.  It
> also occurs to me that there are likely cases where we could go a lot
> faster by not strictly ordering things.  For example, a stat can respond
> more quickly than a large read, and some reads may hit cache while others
> go to disk.  This doesn't happen currently because of the (lame) way we do
> reads synchronously, but hope that can change too.
>
> I propose we drop this semantic.  If a client wants reads to have a strict
> ordering, they can set the existing RWORDERED flag (which also orders them
> with respect to writes).  That's not the most general thing ever, but I'm
> not sure we care about callers who want reads ordered with respect to each
> other but not writes.
>
> The real question is whether there are any users that want/need this
> currently.  I can't think of any offhand.  In several places we submit
> multiple *writes* and expect them to be strictly ordered (e.g., we
> set a completion on teh last write only).  I don't think we do this
> anywhere for reads though...
>
> Josh, Yehuda, Jason--can you think of any in RBD or RGW that would depend
> on this?

Nope, I've thought we should fix this since I found out about it.

      parent reply	other threads:[~2014-12-08 23:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08 17:03 rados read ordering Sage Weil
2014-12-08 17:11 ` Yehuda Sadeh
2014-12-10  0:37   ` Cook, Nigel
2014-12-10  0:43     ` Sage Weil
2014-12-10  1:10       ` Wang, Zhiqiang
2014-12-10  2:26         ` Haomai Wang
2014-12-10  2:51           ` Wang, Zhiqiang
2014-12-10  4:36         ` Cook, Nigel
2014-12-10  5:08           ` Wang, Zhiqiang
2014-12-10 16:07             ` Cook, Nigel
2014-12-10 16:35               ` Sage Weil
2014-12-08 23:38 ` Josh Durgin [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=54863688.20202@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dillaman@redhat.com \
    --cc=jdurgin@redhat.com \
    --cc=sjust@redhat.com \
    --cc=sweil@redhat.com \
    --cc=yehuda@redhat.com \
    --cc=zhiqiang.wang@intel.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