All of lore.kernel.org
 help / color / mirror / Atom feed
* rados read ordering
@ 2014-12-08 17:03 Sage Weil
  2014-12-08 17:11 ` Yehuda Sadeh
  2014-12-08 23:38 ` Josh Durgin
  0 siblings, 2 replies; 12+ messages in thread
From: Sage Weil @ 2014-12-08 17:03 UTC (permalink / raw)
  To: sjust, jdurgin, yehuda, dillaman; +Cc: zhiqiang.wang, ceph-devel

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?

sage

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-12-10 16:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.