[rh7] mm/memcg: increase reparent timeout

Submitted by Andrey Ryabinin on Aug. 7, 2019, 9:41 a.m.

Details

Message ID 20190807094152.26364-1-aryabinin@virtuozzo.com
State New
Series "mm/memcg: increase reparent timeout"
Headers show

Commit Message

Andrey Ryabinin Aug. 7, 2019, 9:41 a.m.
Make it 20 min.

https://jira.sw.ru/browse/PSBM-96889
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 884f1596bb24..28e777ab75ea 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4344,7 +4344,7 @@  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 timeout = jiffies + HZ*1200;
 
 	do {
 		/* This is for making all *used* pages to be on LRU. */

Comments

Andrey Ryabinin Aug. 7, 2019, 11:08 a.m.
On 8/7/19 12:41 PM, Andrey Ryabinin wrote:
> Make it 20 min.
> 
> https://jira.sw.ru/browse/PSBM-96889

Also https://pmc.acronis.com/browse/VSTOR-25631

> Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
> ---

>  mm/memcontrol.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> index 884f1596bb24..28e777ab75ea 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -4344,7 +4344,7 @@ 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 timeout = jiffies + HZ*1200;
>  
>  	do {
>  		/* This is for making all *used* pages to be on LRU. */
>