All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] IO hint for no caching object for cache-tiering
@ 2015-05-25  3:32 Li Wang
  2015-05-25  3:32 ` [PATCH 1/2] Rados: cache-tierng support CEPH_OP_FLAG_TIER_NOCACHE Li Wang
  2015-05-25  3:32 ` [PATCH 2/2] Rados: add test case for CEPH_OP_FLAG_TIER_NOCACHE Li Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Li Wang @ 2015-05-25  3:32 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel, Min Chen, Li Wang

The conventional io hints by fadvise() is to give chance
for applications to manipulate page cache. This patch extends
io hint ability to control cache pool behavior to avoid cache 
pollution. For example, under WRITEBACK mode, consider the 
following operation series, WRITE A; WRITE B; READ A, 
if B is never accessed later, then the write of B pollutes 
the cache by forcing A evicted, the reuse of A causes a cache miss. 
With the io hint, we could explicitly tell rados to not to 
cache B, thereby avoid cache pollution.

The patches:
https://github.com/ceph/ceph/pull/4754

Min Chen (2):
  Rados: cache-tierng support CEPH_OP_FLAG_TIER_NOCACHE
  Rados: add test case for CEPH_OP_FLAG_TIER_NOCACHE

 src/include/rados.h            |   1 +
 src/include/rados/librados.h   |   1 +
 src/include/rados/librados.hpp |   1 +
 src/librados/librados.cc       |   2 +
 src/osd/ReplicatedPG.cc        |   5 ++
 src/osd/osd_types.cc           |   1 +
 src/test/librados/tier.cc      | 176 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 187 insertions(+)

-- 
1.9.1


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

end of thread, other threads:[~2015-05-25  3:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25  3:32 [PATCH 0/2] IO hint for no caching object for cache-tiering Li Wang
2015-05-25  3:32 ` [PATCH 1/2] Rados: cache-tierng support CEPH_OP_FLAG_TIER_NOCACHE Li Wang
2015-05-25  3:32 ` [PATCH 2/2] Rados: add test case for CEPH_OP_FLAG_TIER_NOCACHE Li Wang

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.