]> 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>
Sat, 9 Aug 2014 23:34:21 +0000 (16:34 -0700)
commite087862d5bd894572a6c223b45f4275cadd4b480
tree3168335364c1cf4c145fdcfa7401aa4d908a98bb
parent5f74fb294a0cd9b973aae45de17f38436bac6d61
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>
(cherry picked from commit 3c7229a2fea98b30627878c86b1410c8eef2b5d7)
src/common/config_opts.h
src/librbd/ImageCtx.cc