]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Add rbd_skip_partial_discard flag 4221/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Mon, 30 Mar 2015 11:56:59 +0000 (19:56 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 1 Apr 2015 06:43:23 +0000 (14:43 +0800)
commite7812b8416012141cf8faef577e7b27e1b29d5e3
treecfb62145fb38d6812a7f8eca1babfa00c48eb04d
parent497737aabff4f457fc757930d7e9a4519263b9cb
Add rbd_skip_partial_discard flag

If we want to discard a range of an object, we will zero(use fallocate
to punch a hole) the range now. In general this introduce some overhead(extra writes).

If the filesystem ontop of RBD holding lots of small files, this
behavior will bring big performance penalty.

Adding a flag that allow user to control if they want to zero the
range.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/common/config_opts.h
src/librbd/internal.cc