]> 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>
Tue, 11 Feb 2014 20:14:13 +0000 (12:14 -0800)
commit0559d31db29ea83bdb6cec72b830d16b44e3cd35
treebb83905f140d230d0d445b63005add4ba6421bd1
parentdb034acf546a72739ff6543241543f3bd651f3ae
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>
src/librbd/ImageCtx.cc