]> git-server-git.apps.pok.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:10:31 +0000 (10:10 -0800)
commit367cf1bbf86233eb20ff2304e7d6caab77b84fcc
tree81afb2df8d9dc8e30e5cf7036d74fddb1c156c3b
parent4856fc2950442fafc208c967af5131f7874f5441
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