From: Peng Xie Date: Thu, 29 Jun 2017 10:48:27 +0000 (+0800) Subject: osd/PrimaryLogPG solve cache tier osd high memory consumption X-Git-Tag: v12.1.1~192^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da605aa35e2d0897597a0ab6e19be70d94e6da24;p=ceph.git osd/PrimaryLogPG solve cache tier osd high memory consumption 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 --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 5fe6bb5bde1..02f54a3bf0b 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -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(); }