]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osdc: Constrain max number of in-flight read requests
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Oct 2014 18:47:19 +0000 (14:47 -0400)
committerKen Dreyer <kdreyer@redhat.com>
Mon, 13 Apr 2015 18:50:31 +0000 (12:50 -0600)
commitc7fdbabb237a78aa7a7c282725ce438f60bc4d75
treec285871e14d113c4bd51f5733b340d84b96ece7b
parentec711a9f30ac829f6504038063babd51f4b50488
osdc: Constrain max number of in-flight read requests

Constrain the number of in-flight RADOS read requests to the
cache size.  This reduces the chance of the cache memory
ballooning during certain scenarios like copy-up which can
invoke many concurrent read requests.

Fixes: #9854
Backport: giant, firefly, dumpling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 068d68850d09dfcaccc5a3ce85c80b2f6d808ea9)
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h
src/test/librbd/test_librbd.cc