]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: maybe_remove_pg_upmaps - avoid do_crush twice
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 1 Jun 2019 06:22:39 +0000 (14:22 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Jun 2019 03:17:24 +0000 (11:17 +0800)
commit02e5499b350bcd7d9eac98b2072052a9a4a1f535
tree2d122b160342509cd628ebcd3c6da63c566ee5ed
parentd9ed406a61c46858dd8350af5c72d7b8824dcdd3
osd/OSDMap: maybe_remove_pg_upmaps - avoid do_crush twice

which is extremely time-consuming.
Half of the amount of time of calling maybe_remove_pg_upmaps
has been saved by applying this patch as a result..

Was: maybe_remove_pg_upmaps (~10000 pg_upmap_items) latency:104s
Now: maybe_remove_pg_upmaps (~10000 pg_upmap_items) latency:56s

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSDMap.cc
src/osd/OSDMap.h