[Devel] [PATCH rh7 v2] mm/memcg: increase reparent timeout
Andrey Ryabinin
aryabinin at virtuozzo.com
Wed Aug 7 14:34:07 MSK 2019
Make it 20 min.
https://jira.sw.ru/browse/PSBM-96889
https://pmc.acronis.com/browse/VSTOR-25631
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
Changes since v1:
Add debug times printing
mm/memcontrol.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 884f1596bb24..5271921766d3 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4344,7 +4344,8 @@ static void mem_cgroup_reparent_charges(struct mem_cgroup *memcg)
{
int node, zid;
/* Protection from leaked memcg->memory counter. */
- unsigned long timeout = jiffies + HZ*120;
+ unsigned long start_time = jiffies;
+ unsigned long timeout = start_time + HZ*1200;
do {
/* This is for making all *used* pages to be on LRU. */
@@ -4382,10 +4383,11 @@ static void mem_cgroup_reparent_charges(struct mem_cgroup *memcg)
WARN_ONCE((page_counter_read(&memcg->memory) -
page_counter_read(&memcg->kmem) > 0),
"memcg 0x%p leak suspected: "
- "memory=%lu, kmem=%lu",
+ "memory=%lu, kmem=%lu start_time=%lx timeout=%lx jiffies=%lx",
memcg,
page_counter_read(&memcg->memory),
- page_counter_read(&memcg->kmem));
+ page_counter_read(&memcg->kmem),
+ start_time, timeout, jiffies);
}
/*
--
2.21.0
More information about the Devel
mailing list