]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: Constrain max number of in-flight read requests 3410/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Oct 2014 18:47:19 +0000 (14:47 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 19 Jan 2015 17:47:28 +0000 (12:47 -0500)
commit836ab86d89ae15ed5b228ff656bc81c7cc3495aa
tree786caf569fff7b84e6c73dd0eb8f39f8969a2de2
parent2964efaf327cf798f892a6722eb4e24f2ffa0fde
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