On Sat, Jan 15, 2022 at 11:05:42AM +0100, Andreas Grapentin wrote: > On Tue, Jan 11, 2022 at 07:28:37AM +0100, Andreas Grapentin wrote: > > Hello, > > > > I recently wrote out of necessity a small utility to move memory pages > > of a posix named shared memory segment between NUMA nodes. A friend > > pointed out that this utility could make a good addition to numactl, > > maybe as a separate executable alongside migratepages. > > > > The repository of the tools in question is already public and > > available on github: > > https://github.com/oaken-source/move_shmem_pages > > > > Would this be a welcome addition to numactl? If so, I could prepare a > > PR or two to the numactl github repository to add this functionality. Thanks for the offer. It could be useful, but numactl itself already has file shared memory policy support, just not support for moving (and migrate_pages only supports pid). So if it was added I would prefer having it as a new argument to numactl instead of proliferating commands with different syntax. It should be fairly straight forward there because all the infrastructure to parse the arguments and map the pages is already there. -Andi