]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: remove limit on number of objects in the cache
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 11 Feb 2014 18:14:36 +0000 (10:14 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 12 Feb 2014 18:08:51 +0000 (10:08 -0800)
commit48a71e22e00c620d813769ee4384eb1e6842e967
tree78c6b1357e3e766f088602e4dc045b55c937e690
parent65e83a34e7c9dac3e2b39fc90ea4a63bfbb05b8b
librbd: remove limit on number of objects in the cache

The number of objects is not a significant indicated of when data
should be written out for rbd. Use the highest possible value for
number of objects and just rely on the dirty data limits to trigger
flushing. When the number of objects is low, and many start being
flushed before they accumulate many requests, it hurts average request
size and performance for many concurrent sequential writes.

Fixes: #7385
Backport: emperor, dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 0559d31db29ea83bdb6cec72b830d16b44e3cd35)
src/librbd/ImageCtx.cc