Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2956768pxb; Mon, 17 Jan 2022 08:59:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXz37ONbn3QSF1YtxsV5t5/Vq1JMSWMuoLEaG8SfSo/AlE1rBCWoGs2gGzYDqIkMvnPEOo X-Received: by 2002:a62:1ad6:0:b0:4c1:8aa6:f622 with SMTP id a205-20020a621ad6000000b004c18aa6f622mr22112811pfa.41.1642438786701; Mon, 17 Jan 2022 08:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642438786; cv=none; d=google.com; s=arc-20160816; b=O5fzjQCL8oLnIQb6z/398RF8oBy59u0R+l0AUgB29PgJWiOc9y1L/orYLgouUGNIZ3 8xjvkXvO/zUTrh7JOtDWxHoflAC2yJXMD7JSnNJDdGoJwoDvqzSnJjX1W9ujg0sg9j4P LjtGFDuKYwvDF6aNyB4ASUsmUWc10w0EkyySrf5ULtUTuXbfD6rP0pHcPN/xJsm8oOs7 Hlt1EKcHdcs44ZVkHYLlwsoyz9lr7sVVVdyjq0CNdhXp88YHUVT65wGdNnf8PztOeOUA f6vNb/1X5eywQHOxbUnorb3XDeLh07XPTZ8TXudG02uHZ8dJTLY/k5REjk9WHHgISHCU WtkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=gesGER7o5nNGE+OFusgvCToH+If/1Vg2m1ORI48tEBs=; b=oHjTPFFnHgmd12p8lHQkxtu1rlUsNYuuQXUJ4yws6dvUX2I3Qn8JybzESbYqdMmyXq ctLQH6yI9/Gp71EQ2HKK8knNQf3ehaO80JulZH1dauU3rEOop6paTEQ4oIQoBk7idXFo qg41rl8FXMspSuqImztT0cP1DaJURaD1qV25So6c4+RCHfVxPfheq5rSc68IjMKfKbRH UXz6wlWyngUwF2sbrfnF67+YjvbWIP5H9SSDA9JI0+wuiAJL6E3U5BnL9GM1OOLqng/t kCIcrBcWgJTkG1ZxpSuVQ6VrRRuJiIC1z35f0cRMO8sdGqmKJ3/lMundu8/neSEclXCX ABcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 ch22si16811660pjb.170.2022.01.17.08.59.28; Mon, 17 Jan 2022 08:59:46 -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; 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 S235438AbiAQIEp (ORCPT + 57 others); Mon, 17 Jan 2022 03:04:45 -0500 Received: from www145.your-server.de ([78.47.15.66]:48106 "EHLO www145.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237911AbiAQIEi (ORCPT ); Mon, 17 Jan 2022 03:04:38 -0500 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www145.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1n9N0G-000GoA-R6; Mon, 17 Jan 2022 09:04:36 +0100 Received: from [85.212.153.247] (helo=localhost) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9N0G-0004iC-La; Mon, 17 Jan 2022 09:04:36 +0100 Date: Mon, 17 Jan 2022 09:04:36 +0100 From: Andreas Grapentin To: linux-numa@vger.kernel.org Cc: Andi Kleen Subject: Re: utility for numa placement of POSIX shared memory segments Message-ID: <20220117080436.ay2ep2hqxe5fe2yf@parabolabook-BM15.localdomain> References: <20220115100542.qanbvb6dhz27sdyj@parabolabook-BM15.localdomain> <20220115160946.uwur26u3zyzcwvzo@two.firstfloor.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gciwnia7zx2zq3b5" Content-Disposition: inline In-Reply-To: <20220115160946.uwur26u3zyzcwvzo@two.firstfloor.org> X-Authenticated-Sender: andreas@grapentin.org X-Virus-Scanned: Clear (ClamAV 0.103.3/26424/Sun Jan 16 10:21:45 2022) Precedence: bulk List-ID: X-Mailing-List: linux-numa@vger.kernel.org --gciwnia7zx2zq3b5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Sat, Jan 15, 2022 at 08:09:48AM -0800, Andi Kleen wrote: > 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. I have taken a bit of time to think about your suggestion, and I would like to ask a few questions :) It seems to me that until now, the main numactl binary is limited to functionality to query and control the policies that determine the placement of future pages. Physically moving already placed pages from a process' resident set had been implemented in the separate binary migratepages, which seemed like a good separation of concerns to me. That's why I initially suggested having a separate binary for the moving of shared memory pages. That being said, it is definitely possible to integrate that functionality into the numactl binary, if this is the preferred approach. What do you suggest would be a good integration into the command line parameter setup? Secondly, lookig at the command line parameters of numactl, it seems to only be compatible with SysV shared memory segments (ftok, shmget), not posix shared memory segments (shm_open) is this correct? Thanks, Andreas --=20 ---------------------------------------------------------------------------= --- my GPG Public Key: https://files.grapentin.org/.gpg/public.= key ---------------------------------------------------------------------------= --- --gciwnia7zx2zq3b5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEv6gAioJlZ3BjsRv0cXGYbkt0VTYFAmHlIxIACgkQcXGYbkt0 VTbKpAgAnRT6aC5EyHyu6pr4CzWLMXa+AhoP2iZnpDeeMQApZ7wdmu283lWKbTVF GuxlvpTTfVlIgSEgXT/QGUyQdyIV/H5LVyx9qK2lhg7jB37+Mlx+HhiS06K/U82i rw1eIoUl1tQMwtq46GA2Vwze3OqtLRsrLpUMVbvlhkctjSBXo6+4vib37qczpvrU pFKFu774bkXp+fpc8ytTB12eNiUXs3FB4MMw0+y8zFz93OsCZrAUaJm0RlrbJ1cX trZJszoOrbgt6IGQ/1rsVCtgqUZR94K8ZYGooqlS+0ao3QEtvQuGAVql5a1FUIXd QxxvXVyfRU0M7RQEihTX9hA4kd0OjQ== =pEwN -----END PGP SIGNATURE----- --gciwnia7zx2zq3b5--