Re: [PATCH 1/3] mm: return the number of pages successfully paged out

From: Michal Hocko
Date: Thu Jan 19 2023 - 04:07:32 EST


On Wed 18-01-23 14:27:23, Minchan Kim wrote:
[...]
> Let me know if you have other concern or suggestion.

I would propose to use a tracepoint to track this on the madvise side.
This way you can both track a per-process effectivity as well a madvise
originator effectivity (if the policy is implemented by a global monitor
then it won't get interfering activity by other users of this
interface). Global counters cannot do neither of that.
--
Michal Hocko
SUSE Labs