Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp214088rdd; Wed, 22 Nov 2023 13:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZbeAZnwBGqhVy1Hj/xclaNzwgbtXMFN13lOoodtcVguvYI8dsMwTsM3+sxvp4SYnsGij/ X-Received: by 2002:a17:90a:f48a:b0:283:2044:158 with SMTP id bx10-20020a17090af48a00b0028320440158mr3807353pjb.0.1700689587206; Wed, 22 Nov 2023 13:46:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700689587; cv=pass; d=google.com; s=arc-20160816; b=Mh4LBip0Q1pUGd1UWkd7ot0bTD1Afmevt8Wyn3+ZgQ3q9lKIMumQM8Bg9VvLhEhcN9 179qu0LjqHSz/EXtEnX5GDkS/x0VME/fhAAxMY1KmaXemJ4DkmLk0vczgCv9PeioVfE4 F5AJml8NzmyXOzJfARgitEBE267v1oGUnXZzEXUEfQd/Z35MCLR9brAYrS2KBhOYnMw2 cNsczmgv9Qfef13Qsy5Qgs5HgZTR0qYLk8/PzsBD1z2xYqOUf7fv6IBEjuLrEVSkdCkk Dx9fNAh77K8YtxFdQbmtLHi2nUPjQsuPtDrQk+lYeFbW3ESp6nFJWXyZ18O9w80BzT1M hvYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QvqXsIqGBjD1RzWHvbnfzrZdkHyJzTeR5D+t2t2H85A=; fh=Su/LMKQ0DprUDOMiy6oixs9L4Pt4GR7uJ2AoaVIFb6c=; b=cyVOMOxRTKfBD24HUmqYmThhHHYTkXJ2JDSW80NKuT2ecWXYe00CQVsznZO93Syp4P te2tyhsQWEkCMnVSXSeEuWDWV2T782AX7JDAOrs8gHbQmAqozjdbgU1FRApUEyAZHkjs rVzOt1MyL/21QSymjLNVM4D7Z8zuPKDoGgbbJQzvqgTJJYqPaPp/gkka8YL2AAmkSMdE LrgPzuaeQNJLLEKo2RdhiNqGBLgLEz90CXD39tuvZaftEQyY9/02n3NdM+JZCvsOI9qd 4HoOS/cWyKOnwkgWlG4WZ4YkdPRshYtZ/woBVj7Q5qPi47Vd9icDq55BKKTFJb+tZCwr UBJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@memverge.com header.s=selector2 header.b=rP6ou0Hs; arc=pass (i=1 spf=pass spfdomain=memverge.com dkim=pass dkdomain=memverge.com dmarc=pass fromdomain=memverge.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=memverge.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m14-20020a17090ade0e00b002810b2a3a82si445813pjv.179.2023.11.22.13.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 13:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@memverge.com header.s=selector2 header.b=rP6ou0Hs; arc=pass (i=1 spf=pass spfdomain=memverge.com dkim=pass dkdomain=memverge.com dmarc=pass fromdomain=memverge.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=memverge.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 553BF80984BE; Wed, 22 Nov 2023 13:45:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344379AbjKVVpX (ORCPT + 99 others); Wed, 22 Nov 2023 16:45:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344416AbjKVVpV (ORCPT ); Wed, 22 Nov 2023 16:45:21 -0500 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2062.outbound.protection.outlook.com [40.107.244.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E68BD46; Wed, 22 Nov 2023 13:45:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NuMUPN89voos3AxT34e/wW1O/NUhki8F30sTJXhjs0N5dobl2cST0XdD+DcmkjU2gI75HrV9/Ocaq8RTFoqDd4JbVB/2d3nAHTjgxAjKuJ9XhWvKlHoeX1icoZG83ORVyp5r7lX/+fYPML5rN0mkDXOK+ImnowUCIIbd7DcoPiWLT5VeJZCXaXDvlud8r8kN6j0j9fcXxbREQV3kithbli9XRtsitZVIE2foMFXZ2haRwVjk+uQU5V7W8KijRwn8dFRtCw2xq7l89aSN5vQB9IKBSyp2yu1H1e7noPq9o+7OlKAOUTRVnrx8blCvD04Y7oOuaXlz6sSPstmyA1vWdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QvqXsIqGBjD1RzWHvbnfzrZdkHyJzTeR5D+t2t2H85A=; b=JAQDY0jjoJ9oUANSCnMkWq9IwVm7LAQy7RuRkNqrw7FvrvpD+TuN/GL8L5CedO+QBZgmwMkcHxdotPR6i3cS0xegfbDTwh/NrlNg7A7KINfjc9nbSkNHkwlp1xdiSf2/EO8YHwbJz/E4HNilSYTvZIa4v4i4bpDVOa7XVLIHA2l2/p3zVMx+0VcvH6al1WSfB4F1RpnRP1ehNHuSQtUEbr/qw342h1kIc8yjTt2BEoGdqZ6FubhwamAb2npKUxtEDTba322dQvffj668Kjn/k1ssa5FMI1eARUwyvFvBMiRJxpDd9Rrdp3gjLQveD97xPlMvkM8yB4wunEstknShQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=memverge.com; dmarc=pass action=none header.from=memverge.com; dkim=pass header.d=memverge.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=memverge.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QvqXsIqGBjD1RzWHvbnfzrZdkHyJzTeR5D+t2t2H85A=; b=rP6ou0HsRrdDAv19kAK5v4JAZSJUuD9Bp5eJSkijLnUL4FgdwVnFRGpQRiytAhKVrQ5dca/D6tfpwyLN4MzsmXhpo3zn7wwuQh3TqhK9gtLMXtrEpmMDhp2efYzPg7tkIg6ylVrl+Ie1CdL6zA+wPey6mVZLnShszj1oQiacKAA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=memverge.com; Received: from SJ0PR17MB5512.namprd17.prod.outlook.com (2603:10b6:a03:394::19) by CH3PR17MB6385.namprd17.prod.outlook.com (2603:10b6:610:14d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Wed, 22 Nov 2023 21:45:12 +0000 Received: from SJ0PR17MB5512.namprd17.prod.outlook.com ([fe80::381c:7f11:1028:15f4]) by SJ0PR17MB5512.namprd17.prod.outlook.com ([fe80::381c:7f11:1028:15f4%5]) with mapi id 15.20.7025.017; Wed, 22 Nov 2023 21:45:12 +0000 Date: Wed, 22 Nov 2023 16:45:08 -0500 From: Gregory Price To: Andrew Morton Cc: Vinicius Petrucci , linux-mm@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, minchan@kernel.org, dave.hansen@linux.intel.com, x86@kernel.org, Jonathan.Cameron@huawei.com, aneesh.kumar@linux.ibm.com, ying.huang@intel.com, dan.j.williams@intel.com, hezhongkun.hzk@bytedance.com, fvdl@google.com, surenb@google.com, rientjes@google.com, hannes@cmpxchg.org, mhocko@suse.com, Hasan.Maruf@amd.com, jgroves@micron.com, ravis.opensrc@micron.com, sthanneeru@micron.com, emirakhur@micron.com, vtavarespetr@micron.com Subject: Re: [RFC PATCH] mm/mbind: Introduce process_mbind() syscall for external memory binding Message-ID: References: <20231122133944.297ce0001fb51214096dfb6c@linux-foundation.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122133944.297ce0001fb51214096dfb6c@linux-foundation.org> X-ClientProxiedBy: BYAPR08CA0051.namprd08.prod.outlook.com (2603:10b6:a03:117::28) To SJ0PR17MB5512.namprd17.prod.outlook.com (2603:10b6:a03:394::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR17MB5512:EE_|CH3PR17MB6385:EE_ X-MS-Office365-Filtering-Correlation-Id: ad34de01-c7a3-46ff-33c5-08dbeba44e42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HGCORgtspQqw6B64fnv2KUnEQBmu+TANbwLNHhxdU/EjEOXNvAq2q4psSnqY4nfo66WMAc8v7av45v6Fb9JrDu3potUWKWECdhvo4+p6nLUIbrKw3dQHukg27JYwQ3AogS8jYWsVhCuLEDB9QnPiqbjG/gO6DZOQVvNT4UuDSQvC2nOQ7FaHFAd24dE0KMW9d7aZYrcpTPZYysNJSwKSwVRY6lXhasMGrRiXruphsYwYJPnRgbMmBN4QR1gmpTVbyjbfV2vKEQfQKyaN7s7wva02kCVK2yCeZVW+l3IIOz6FRSXaWEru4bqnmT8/PXT2BNXCA+sZboXui0i/WUVdPdRC8EJMKIlSmdf1EiakOVaB10ALu8yIiUVZ54WB54jpZViMQ1UpVHHc+3FvgtLk+PLf2iQRPwCDynr000z1owO6aKOErHPjCXBxXQxwB0vagqIE8yn3tuW7fG4qnWkK5uAcx8B776r8o6Mmzt3K62X9mYDMI/UIHWORkOfDM2o5xNbozE5TBfmFgpvz9R42TAQVuoiy/Nf5cVDTkQLANFQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR17MB5512.namprd17.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39840400004)(346002)(376002)(136003)(396003)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(66899024)(66946007)(66476007)(66556008)(36756003)(38100700002)(86362001)(6506007)(26005)(2616005)(6512007)(6666004)(6486002)(966005)(7416002)(4744005)(2906002)(316002)(6916009)(478600001)(4326008)(5660300002)(8676002)(8936002)(44832011)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?P0TAT4jcwKUSRXH77d/tooh9aB5K82SVBmxU9+HSuYlfbbxRQKbtZigPT/47?= =?us-ascii?Q?8qqJrHBzn4sA522uHMDAKXCiTA6PubL7TweJ05NK6TYlGQ9DC0pnFUf01gPz?= =?us-ascii?Q?Qu3PKDvJUcCdsSbGsoCZcnEz6d0f2roNcjQVNf8duUSjCZEVmVM80tQxNE/B?= =?us-ascii?Q?UMOL4CaX2K2vJTtkT8gc4+8uy1lHyJdFcxULvQuxUvuOI1BjXkIrbvaUBlTm?= =?us-ascii?Q?BpaqZWSYgWWhyfhd7jkBw0hh6KzSvGAV88B7d/s/ox4amJCEYOvZIIYlegIK?= =?us-ascii?Q?7J4Fs0ffviZRrZIPotuX6yB2AqIM7T75wNti7gvJ0Q4MjwIh2S0x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uPS3En94c4c13+yZApXGd0BZNO+Sjike+1oO8AWtPlFZFgv92?= =?us-ascii?Q?UM536g6tEvGCCMe8u6TVXE02M8NH///t4hoGACuqd8tb+p/nxRFCleYI1KQ5?= =?us-ascii?Q?WRFBk9LbM0ieZuzoHSwGxfQ81aSoGSNUJ8KG/mWXx4UODEqXwOHs4OTejkkm?= =?us-ascii?Q?LP+kHpwNJFBkO2d6b0ZMYmW9Lr0eKI2dWSrYZHpWOOngmhHEO5AvQF+s7IXX?= =?us-ascii?Q?ABvt1nHPfHCkiuc9/EWV8KicH812jfsiYNy+SCWmliY5aLn/MN8A+nAWb3cb?= =?us-ascii?Q?3UtoNMbHO64nJxhWGt6/Yie3l9I6Oarj7EJzIlYC0HojEt78oHt4m6sEcUmx?= =?us-ascii?Q?yrnTqlB+WLQpZd1meA1jcKocszOdXgEwF7d04figxoZ6hEUO9hap/jKeNXYQ?= =?us-ascii?Q?0A=3D=3D?= X-OriginatorOrg: memverge.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad34de01-c7a3-46ff-33c5-08dbeba44e42 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR17MB5512.namprd17.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 21:45:12.4463 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5c90cb59-37e7-4c81-9c07-00473d5fb682 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 37PQzyjHeWR2GBQLcEIB+ivXiqeDk3Yp9KLpsbKBKE79HYa5GGxkKtrEdqpOzZuByzQI/NBWEvhOxQUhv11QXeSD8icnnG3t1zOD200QtmI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR17MB6385 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 13:45:40 -0800 (PST) On Wed, Nov 22, 2023 at 01:39:44PM -0800, Andrew Morton wrote: > On Wed, 22 Nov 2023 15:31:05 -0600 Vinicius Petrucci wrote: > > > From: Vinicius Tavares Petrucci > > > > 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@memverge.com > > 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