[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <9561f990656620f8b39c83453a857c5c35e3ddd0.1626946231.git.brookxu@tencent.com>
Date: Thu, 22 Jul 2021 17:38:40 +0800
From: brookxu <brookxu.cn@...il.com>
To: viro@...iv.linux.org.uk, tj@...nel.org, lizefan.x@...edance.com,
hannes@...xchg.org
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
cgroups@...r.kernel.org
Subject: [RFC PATCH 3/3] misc_cgroup: delete failed logs to avoid log flooding
From: Chunguang Xu <brookxu@...cent.com>
Since the upper-level logic will constantly retry when it fails, in
high-stress scenarios, a large number of failure logs may affect
performance. Therefore, we can replace it with the failcnt counter.
Signed-off-by: Chunguang Xu <brookxu@...cent.com>
---
kernel/cgroup/misc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/cgroup/misc.c b/kernel/cgroup/misc.c
index 7c568b619f82..b7de0fafa48a 100644
--- a/kernel/cgroup/misc.c
+++ b/kernel/cgroup/misc.c
@@ -159,8 +159,6 @@ int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg,
if (new_usage > READ_ONCE(res->max) ||
new_usage > READ_ONCE(misc_res_capacity[type])) {
if (!res->failed) {
- pr_info("cgroup: charge rejected by the misc controller for %s resource in ",
- misc_res_name[type]);
pr_cont_cgroup_path(i->css.cgroup);
pr_cont("\n");
res->failed = true;
--
2.30.0
Powered by blists - more mailing lists