Re: [patch] mm, thp: always direct reclaim for MADV_HUGEPAGE even when deferred
From: David Rientjes
Date: Wed Jan 04 2017 - 16:53:22 EST
On Wed, 4 Jan 2017, Mel Gorman wrote:
> There is a slight disconnect. The bug reports I'm aware of predate the
> introduction of "defer" and the current "madvise" semantics for defrag. The
> current semantics have not had enough time in the field to generate
> reports. I expect lag before users are aware of "defer" due to the number
> of recommendations out there about blindly disabling THP. This because
> the majority of users I deal with are not running mainline kernels.
>
I find it sad that we need to have five options for thp defrag and that
people now need to research options that don't break their userspace and
affect all applications on the system, especially when one of those
options now appears to have a hypothetical usecase, but in the interest of
making forward progress in this area for support that we truly need, I'll
reluctantly propose it as a patch.