Re: [PATCH] drm/i915: Add module param to test the load detect code

Chris Wilson
2015-03-04T08:56:56Z

On Tue, Mar 03, 2015 at 04:27:47PM -0800, Jesse Barnes wrote:
> My "rant du jour" still is. mlock() is a good solution for some things,
> but for the simple task of testing kernel swap out code, just running
> that code is the most straightforward thing to do, rather than trying to
> contort into it from userspace.

Once upon a time, there was a minor request for MADV_POPULATE and
MADV_INVALIDATE (basically wrappers around get_pages() and put_pages())
which would give you the fuzzy feeling of testing those paths without
actually testing the shrinker. But no use cases.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre