On Fri, 21 Dec 2018 16:13:34 +0100 Michal Hocko <mhocko@xxxxxxxxxx> wrote: > On Fri 21-12-18 11:06:25, Vlastimil Babka wrote: > [...] > > There's also Michal's series to expand THP eligibility reporting. If it > > would be feasible for you to switch to that implementation in your > > userspace, and perhaps only locally and temporarily add your patch to > > your currently used older kernel versions, then the benefit would be one > > less obscure exception in the kernel API. > > Agreed. With this patch there is no way to check for the actual state of > the madvise on the mapping reliably. So the only reason the flag is > actually exported. So where does this leave us?