From da605aa35e2d0897597a0ab6e19be70d94e6da24 Mon Sep 17 00:00:00 2001 From: Peng Xie Date: Thu, 29 Jun 2017 18:48:27 +0800 Subject: [PATCH] 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 --- src/osd/PrimaryLogPG.cc | 1 + 1 file changed, 1 insertion(+) 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(); }