]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG solve cache tier osd high memory consumption 16011/head
authorPeng Xie <peng.hse@xtaotech.com>
Thu, 29 Jun 2017 10:48:27 +0000 (18:48 +0800)
committerPeng Xie <peng.hse@xtaotech.com>
Mon, 3 Jul 2017 02:38:30 +0000 (10:38 +0800)
during cache tier dirty data flushing, cache tier osd memroy consumption
will get increasing due to the accumulative pg log which will not be trimmed

Fixes: http://tracker.ceph.com/issues/20464
Signed-off-by: Peng Xie <peng.hse@xtaotech.com>
src/osd/PrimaryLogPG.cc

index 5fe6bb5bde1ebd818f0d52417d2edf3296b3d961..02f54a3bf0b7b35d5ce2ae6d80a86a7e0a1d2d8a 100644 (file)
@@ -9221,6 +9221,7 @@ void PrimaryLogPG::simple_opc_submit(OpContextUPtr ctx)
   dout(20) << __func__ << " " << repop << dendl;
   issue_repop(repop, ctx.get());
   eval_repop(repop);
+  calc_trim_to();
   repop->put();
 }