]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Add rbdcache max dirty object option
authorHaomai Wang <haomaiwang@gmail.com>
Mon, 14 Jul 2014 06:27:17 +0000 (14:27 +0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 21 Jul 2014 20:31:32 +0000 (13:31 -0700)
commit3c7229a2fea98b30627878c86b1410c8eef2b5d7
tree0bc8c06c7438f6d8a95d1c0d8e0d83b1884defa3
parent5cb4b000dd629828586995a035abd46e6f7b04c7
Add rbdcache max dirty object option

Librbd will calculate max dirty object according to rbd_cache_max_size, it
doesn't suitable for every case. If user set image order 24, the calculating
result is too small for reality. It will increase the overhead of trim call
which is called each read/write op.

Now we make it as option for tunning, by default this value is calculated.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/common/config_opts.h
src/librbd/ImageCtx.cc