Re: [RFC PATCH] mm/mbind: Introduce process_mbind() syscall for external memory binding

From: Gregory Price
Date: Wed Nov 22 2023 - 16:45:23 EST


On Wed, Nov 22, 2023 at 01:39:44PM -0800, Andrew Morton wrote:
> On Wed, 22 Nov 2023 15:31:05 -0600 Vinicius Petrucci <vpetrucci@xxxxxxxxx> wrote:
>
> > From: Vinicius Tavares Petrucci <vtavarespetr@xxxxxxxxxx>
> >
> > This patch introduces `process_mbind()` to enable a userspace orchestrator with
> > an understanding of another process's memory layout to alter its memory policy.
>
>
> I'm having deja vu. Not 10 minutes ago, Gregory sent out a patchset
> which does the same thing.
>
> https://lkml.kernel.org/r/20231122211200.31620-1-gregory.price@xxxxxxxxxxxx
>
> Please share notes ;)

Heh, we discussed doing this at linux plumbers, as well as a long set of
RFC's related to weighted mempolicies.

Guess we were in a bit of a race to RFC without knowing!

more context: mhocko suggested this interface would be welcome and useful
before the introduction of weighted inteleave.

link: https://lore.kernel.org/linux-mm/ZVNBMW8iJIGDyp0y@tiehlicka/

~Gregory