]> 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)
committerHaomai Wang <haomaiwang@gmail.com>
Sun, 27 Jul 2014 05:33:44 +0000 (13:33 +0800)
commitd858fdc501c62bd481969761931bfd3ffd99bcf0
tree0634c7c1748f7505e2ca02cad9e1a4e33a6f9007
parentb8a56685fec2de0f0a49fa75c9e95a19d5cf97f9
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