* Re: [PATCH] memcg: calling reclaim_high(GFP_KERNEL) in GFP_NOFS context deadlocks
[not found] ` <20220929222006.GI3600936@dread.disaster.area>
@ 2022-09-30 12:18 ` Michal Koutný
[not found] ` <20220930220834.GK3600936@dread.disaster.area>
0 siblings, 1 reply; 2+ messages in thread
From: Michal Koutný @ 2022-09-30 12:18 UTC (permalink / raw)
To: Dave Chinner; +Cc: cgroups, linux-mm, linux-xfs
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
On Fri, Sep 30, 2022 at 08:20:06AM +1000, Dave Chinner <david@fromorbit.com> wrote:
> Fixes: b3ff92916af3 ("mm, memcg: reclaim more aggressively before high allocator throttling")
Perhaps you meant this instead?
Fixes: c9afe31ec443 ("memcg: synchronously enforce memory.high for large overcharges")
Thanks,
Michal
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] memcg: calling reclaim_high(GFP_KERNEL) in GFP_NOFS context deadlocks
[not found] ` <20220930220834.GK3600936@dread.disaster.area>
@ 2022-10-03 15:08 ` Michal Koutný
0 siblings, 0 replies; 2+ messages in thread
From: Michal Koutný @ 2022-10-03 15:08 UTC (permalink / raw)
To: Dave Chinner; +Cc: cgroups, linux-mm, linux-xfs
[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]
On Sat, Oct 01, 2022 at 08:08:34AM +1000, Dave Chinner <david@fromorbit.com> wrote:
> You might be right in that c9afe31ec443 exposed the issue, but it's
> not the root cause. I think c9afe31ec443 just a case of a
> new caller of mem_cgroup_handle_over_high() stepping on the landmine
> left by b3ff92916af3 adding an unconditional GFP_KERNEL direct
> reclaim deep in the guts of the memcg code.
It's specific of the memory.high induced reclaim that it happens out of
sensitive paths (as was with exit to usermode or workqueue), so there'd
be no explicit flags to pass through, hence the unconditional
GFP_KERNEL.
> So what's the real root cause of the issue - the commit that stepped
> on the landmine, or the commit that placed the landmine?
My preference here is slighty on the newer commit but feel free to
reference both.
> Either way, if anyone backports b3ff92916af3 or has a kernel with
> b3ff92916af3 and not c9afe31ec443, they still need to know
> about the landmine in b3ff92916af3....
To be on the same page -- having just b3ff92916af3 won't lead to the
described cycle when FS code reclaims without GFP_NOFS? (IOW, how would
the fix look like fix without c9afe31ec443?)
Thanks,
Michal
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-03 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20220929215440.1967887-1-david@fromorbit.com>
[not found] ` <20220929222006.GI3600936@dread.disaster.area>
2022-09-30 12:18 ` [PATCH] memcg: calling reclaim_high(GFP_KERNEL) in GFP_NOFS context deadlocks Michal Koutný
[not found] ` <20220930220834.GK3600936@dread.disaster.area>
2022-10-03 15:08 ` Michal Koutný
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox