]> 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 22:50:54 +0000 (15:50 -0700)
commita86e497a343b24425a1237e65ec2776398d07a95
treef6659e02a27db4987e14501de41d8e1afa6461ce
parentd02381316ba96746a00b2b6f8c5c665179fe7a79
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