Re: [PATCH 0/9] mm/madvise: batch tlb flushes for MADV_DONTNEED and MADV_FREE

Andrew Morton
2025-03-10T22:39:22Z

On Mon, 10 Mar 2025 10:23:09 -0700 SeongJae Park <sj@kernel.org> wrote:

> It is unclear if such use case
> is common and the inefficiency is significant.

Well, we could conduct a survey,

Can you add some logging to detect when userspace performs such an
madvise() call, then run that kernel on some "typical" machines which
are running "typical" workloads? That should give us a feeling for how
often userspace does this, and hence will help us understand the usefulness
of this patchset.