lkml.org 
[lkml]   [2024]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: memcontrol: don't throttle dying tasks on memory.high
On Fri, Jan 12, 2024 at 06:06:39PM +0100, Michal Hocko wrote:
> On Thu 11-01-24 14:28:07, Johannes Weiner wrote:
> [...]
> > @@ -2867,11 +2882,17 @@ static int try_charge_memcg(struct mem_cgroup *memcg, gfp_t gfp_mask,
> > }
> > } while ((memcg = parent_mem_cgroup(memcg)));
> >
> > + /*
> > + * Reclaim is set up above to be called from the userland
> > + * return path. But also attempt synchronous reclaim to avoid
> > + * excessive overrun while the task is still inside the
> > + * kernel. If this is successful, the return path will see it
> > + * when it rechecks the overage and simply bail out.
> > + */
> > if (current->memcg_nr_pages_over_high > MEMCG_CHARGE_BATCH &&
> > !(current->flags & PF_MEMALLOC) &&
> > - gfpflags_allow_blocking(gfp_mask)) {
> > + gfpflags_allow_blocking(gfp_mask))
> > mem_cgroup_handle_over_high(gfp_mask);
>
> Have you lost the check for the dying task here?

It was moved into mem_cgroup_handle_over_high()'s body.

\
 
 \ /
  Last update: 2024-01-12 18:12    [W:0.104 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site