Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1738064pxb; Sat, 15 Jan 2022 22:47:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgPRlqZhGMjYNKzDMAVG65tViINvZTAVFBl9P0EcGkj4bFKntznwZF4P8XHXMkOdw/ts/y X-Received: by 2002:a63:710f:: with SMTP id m15mr14153897pgc.40.1642315622496; Sat, 15 Jan 2022 22:47:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642315622; cv=none; d=google.com; s=arc-20160816; b=cQX8fhck9qVhcQn0J0aSdTLGP8nG4AMWLOAEcqgMjqzZRI5rB4cCLSRM/gL774vTJo D5Ak+y9z8VliYYKCSTNY4OcGdmwNHG9AagLQgUBy/bZQJcSib8TxRj/zholbuVzy5Zx9 jjydf5yZs3NIHi6pzcEIK3lTM8RYV/hh83/Bk8WaW4miHamCxbYtmPksSMOwwn9nKEcu oVnjYBewx1CNi36oxHq6PxzoOE26Pf7lMs2+L0j2gT7aErNFpwr1GkZ6THM2oY2mY8QV EJMEj65Wzjff+KQnLXMmn4VIL5GJ9XY1nKc2EVvTcTxiu8ohmzVujh2jckbgD75CAT/T GKCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2Fp8P3LiqRAoaiInR4seYYP4l2WA7kAGdLcni7gVc28=; b=gqVV13ieWAcBnRLU5x2tjQ7SjGNtS7tVeOsuX2CE5DO3slTqwdSeZAl/4e54RdUpgy fGS1+wJE4C7pz+iIZ6BKue1wM4GerpKRx4eDTEg0MdUNvJR5i1qowfeSkN3u7eoikr3x WUgee4JYKEqn0oE1QndBvkzF6VhtjZjUTcze/zqXCJ1bIOnF8uDWSUReFxX8rQEjYhX7 bejAmgTYKlyvU42nQbfMI98G7FSS+m8FPXq2p60/wsu4OgF+CCjLKWYep2gXBjUHsjSF /WETXUSUSwP/ct3IhijgYqMtItAWxgWhJbD7RveDM8eOrFiXcWVILcwYGIKOJDDh0HOf 5xKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=tpPyNPBL; spf=pass (google.com: domain of linux-numa-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-numa-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si2799748pgc.796.2022.01.15.22.46.47; Sat, 15 Jan 2022 22:47:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-numa-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=tpPyNPBL; spf=pass (google.com: domain of linux-numa-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-numa-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231936AbiAOQSk (ORCPT + 57 others); Sat, 15 Jan 2022 11:18:40 -0500 Received: from one.firstfloor.org ([193.170.194.197]:50286 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbiAOQSk (ORCPT ); Sat, 15 Jan 2022 11:18:40 -0500 X-Greylist: delayed 530 seconds by postgrey-1.27 at vger.kernel.org; Sat, 15 Jan 2022 11:18:39 EST Received: by one.firstfloor.org (Postfix, from userid 503) id 8500A87A17; Sat, 15 Jan 2022 17:09:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1642262988; bh=VfY6YB6nwgu6cb/yp4t7tnlSByg407hDsB9E4Wl6LEM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tpPyNPBLqc3LuSqE4n2uk4+NRz7v02sNcpv0JPwUKc3WJEWQfaWWhKV0nHPE5zuNH TYBYalVFEBkrbe91L3dHXFzUXxVgBU0XuFYyUhbVwX6GlvRuO2IQ+lEBCTFPQJxXyo 2JreekvF3QsrM1Ya+Q1WpkuKEE36Y11K26iByjYI= Date: Sat, 15 Jan 2022 08:09:48 -0800 From: Andi Kleen To: Andreas Grapentin Cc: linux-numa@vger.kernel.org Subject: Re: utility for numa placement of POSIX shared memory segments Message-ID: <20220115160946.uwur26u3zyzcwvzo@two.firstfloor.org> References: <20220115100542.qanbvb6dhz27sdyj@parabolabook-BM15.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220115100542.qanbvb6dhz27sdyj@parabolabook-BM15.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-numa@vger.kernel.org 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