Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

From: Matthew Wilcox
Date: Wed Feb 10 2021 - 13:55:37 EST


On Tue, Feb 09, 2021 at 08:20:18PM +0800, Zhou Wang wrote:
> Agree, will add it in next version.

No, don't do another version. Jason is right, this approach is wrong.
The point of SVA is that it doesn't require the application to do
anything special. If jitter from too-frequent page migration is actually
a problem, then fix the frequency of page migration. Don't pretend that
this particular application is so important that it prevents the kernel
from doing its housekeeping.