]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Reduce ObjectCacher flush overhead
authorHaomai Wang <haomaiwang@gmail.com>
Mon, 14 Jul 2014 06:32:57 +0000 (14:32 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Sun, 27 Jul 2014 05:33:38 +0000 (13:33 +0800)
commitb8a56685fec2de0f0a49fa75c9e95a19d5cf97f9
tree1711d145c787cf5ba4d34dfd37b4b1a3bbf00424
parent288908b3316bc975a2b3f75aea5131d7c1cba57f
Reduce ObjectCacher flush overhead

Flush op in ObjectCacher will iterate the whole active object set, each
dirty object also may own several BufferHead. If the object set is large,
it will consume too much time.

Use dirty_bh instead to reduce overhead. Now only dirty BufferHead will
be checked.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/osdc/ObjectCacher.cc