]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: add parallel clean_pg_upmaps test 28619/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Jun 2019 08:43:25 +0000 (16:43 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 18 Jun 2019 02:16:01 +0000 (10:16 +0800)
commitc362dc1218de01fd3b1a69ff91c1f81f5e2651d6
treed951cebf300ba6d893878ef4e75e5f2fdb61d85c
parentc8033fee97eb0303446839f6a9e82425c6ab0ad0
test: add parallel clean_pg_upmaps test

With parallel clean_pg_upmaps feature on, the total time cost
of the performance test which now can utilize up to 8 threads for
parallel upmap validating decreased from:

maybe_remove_pg_upmaps (~10000 pg_upmap_items) latency:104s

to:

clean_pg_upmaps (~10000 pg_upmap_items) latency:7s

Note that by default the mon uses only 4 worker threads for
CPU intensive background work, you could further increase
the "mon_cpu_threads" option value if you decided the
time-consuming of clean_pg_upmaps still matters.

Fixes: http://tracker.ceph.com/issues/40104
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit a45112a9761d7b11f62cf4dac9f3a8e093cdd78f)
src/test/osd/TestOSDMap.cc