From patchwork Mon Jan 6 12:06:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Faccini X-Patchwork-Id: 13927239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1214CE77198 for ; Mon, 6 Jan 2025 12:07:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 839126B0082; Mon, 6 Jan 2025 07:07:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E8FD6B0088; Mon, 6 Jan 2025 07:07:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 662C06B0089; Mon, 6 Jan 2025 07:07:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 46B7F6B0082 for ; Mon, 6 Jan 2025 07:07:48 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 7FB1C1A14E6 for ; Mon, 6 Jan 2025 12:07:47 +0000 (UTC) X-FDA: 82976902974.05.FCC819E Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2066.outbound.protection.outlook.com [40.107.220.66]) by imf21.hostedemail.com (Postfix) with ESMTP id 7B2231C0008 for ; Mon, 6 Jan 2025 12:07:44 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=V7MUBHG4; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf21.hostedemail.com: domain of bfaccini@nvidia.com designates 40.107.220.66 as permitted sender) smtp.mailfrom=bfaccini@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736165264; a=rsa-sha256; cv=pass; b=ezJAQrQmKA/xxl4AYRoPD5wdRBBw1dOPNGjwV8FSj1aOP7idqSU2aiIgpBg/TR2nJYbCes BqjsgTXigGPgm3fxHxrJj09aMrFu2BmF//LpwKp1LhOf/KvZZxc4QFL2DqPLCql0ejF1zS 93MFvLMXbV3uaBMhpEYr1iNiIne2VKg= ARC-Authentication-Results: i=2; imf21.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=V7MUBHG4; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf21.hostedemail.com: domain of bfaccini@nvidia.com designates 40.107.220.66 as permitted sender) smtp.mailfrom=bfaccini@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736165264; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Va/H0+BUFQl/nAPkONtjgxYwDkJT+L1nFbYbp72v3cs=; b=MN/bKZrSwaPBPFT+B6HqH0nWhDdKBZu8UZyXZk143ejxUl14odjNoHGPmGYWgRHuII3HiB bywq6kJ2FdOvdCRqHGnAI85JFjyFQ0//1y2TBwTWBdtdYnzptmC17pdm9Q5mNmVpHn2EVl 7dWKjy/b9LtR3O7D79xUb24/ylJTf0o= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b5r1qFS5Pa0rlkVQ8oBT8XWQ6yORLNm3vW+j7pjmZinuEGj91xmqXz8yFN/eArMpAXnEHulXiAyvMj+bSkpQ5qNpsonalgXGLsOuzLqqVuD9tMzr6NIJ3k3rHbFc+SqMJlEe7YTU/E/2sbrtsIl9BWAshgbLP1vXJAj/hQggiB5mLKVS+o/9ZmMg9LdVB8TohMj+rIcdzQa89qlAykey42PJVNxjbSZKVwiRs5ivCSBkJf075W8tRvf5DwastoWb3pSCQHc3RBbODMETYyqb74OA/DfZO5R/A9zccJB4He/RizvVZE3BjFCTulGKLEmOonoAvAh5itDAcIJD0qZmuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Va/H0+BUFQl/nAPkONtjgxYwDkJT+L1nFbYbp72v3cs=; b=aGtDGBeFBfQUiHV//K0azbBBTmDFK9S17xlm40IuMV3v+VuRrOjkDkDy3dhnBKT8x6CpQSy7Vw3ltWcH+T8w63RkrSOUhErKqbJfeg+0KFA8Zi8X/V09Dr7DOSV3KiAzIxGb309SvBMCQtAgVmEZEFoV1hCGuwE2Q8MptpxYsxcX7B13X/CEu6OGlAJKYJl6Pzbz7iHLBQ4eT/lnJcTeCxEN/GaPbUy6HEcHxzZsFO8Xknq0TsFqTW1FeGxyr55ntF9r/tdOraLrOrF5jdyAQvIWX7AjRwXvYa0SrayQBrLY6zHorT84YqLA10zL/EPSITzZFjdKKbiq5UGo1orSpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Va/H0+BUFQl/nAPkONtjgxYwDkJT+L1nFbYbp72v3cs=; b=V7MUBHG4xivJqkZNwKULPIK17Tv/rV+94b63dlu1Ex+n3+yHEQ3oJgIp/1XTYv/JwXJN2BemNrxVLGuevPJQvKecg8zuljWRO0/W57wZKAlnUFEVywNyWHcwytf5sR51wkR5Rgk+DOV07d2f8rgk1NwGzE5wBxI2+Ie6ogMESXfdobkwq+/V7eDz7WpT2JESx+NjYyi3G5MHS79VuQ5SE20eDJvC1fFnSIamXYje/IYaafq45sFli5c7yCKgplvvkMj5+fvFz3NbC8ahCliO9NALX0o5dH2wxuKXe8TjZuzTnvonZt2rMBG8sc7cnym9TfWY1Iv+bRDF2PeDVMMZYA== Received: from MW4PR12MB7261.namprd12.prod.outlook.com (2603:10b6:303:229::22) by IA1PR12MB8312.namprd12.prod.outlook.com (2603:10b6:208:3fc::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.17; Mon, 6 Jan 2025 12:07:37 +0000 Received: from MW4PR12MB7261.namprd12.prod.outlook.com ([fe80::d231:4655:2e3d:af1b]) by MW4PR12MB7261.namprd12.prod.outlook.com ([fe80::d231:4655:2e3d:af1b%4]) with mapi id 15.20.8314.015; Mon, 6 Jan 2025 12:07:37 +0000 From: Bruno Faccini To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, rppt@kernel.org, david@redhat.com, ziy@nvidia.com, jhubbard@nvidia.com, mrusiniak@nvidia.com, Bruno Faccini Subject: [PATCH 0/1] mm/fake-numa: allow later numa node hotplug Date: Mon, 6 Jan 2025 04:06:58 -0800 Message-ID: <20250106120659.359610-1-bfaccini@nvidia.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: SJ0PR13CA0137.namprd13.prod.outlook.com (2603:10b6:a03:2c6::22) To MW4PR12MB7261.namprd12.prod.outlook.com (2603:10b6:303:229::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR12MB7261:EE_|IA1PR12MB8312:EE_ X-MS-Office365-Filtering-Correlation-Id: 682ba125-7725-4c91-84b7-08dd2e4ab5c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?xsXpmR0gX06rvAqJANrSnq85wKliZId?= =?utf-8?q?JdJlURKiyFNvgHthfgU48Ehlsi7DyrMQ9FBcLtVNCZkf4pgStf6dHOgygcEMPqCkI?= =?utf-8?q?OMRVeFs1jtZVeCRvbnDUG95Nj4osognnXoSkY9q0xn8NwDfnXg56FmGUBYQUH+Ksk?= =?utf-8?q?HQ9BChYE9zHhjUCXEa4YgIy8QBUN+esoD95HwB0Wr1rcS43eEU1pRka2oaQwSq+yo?= =?utf-8?q?0wE7hOO1cTjA+fwHjSOErthtsGNuoApzYM5lc8xdcwRHw0JtPQxLQm3hLJ8t5kXUe?= =?utf-8?q?3BDkE9HSk8kyIS/57FSZKpqXuaz4yAqVFRzxbdsaV74sJdiESaHgj7MA80oDZE9iO?= =?utf-8?q?B5UdA/e2vgrsazvrxkqFWWHbeQ47cqHddE5RSNcN3W3+PmElaMeRzeRxOdYclSx05?= =?utf-8?q?14CqtqZHhkkOYMzJwPHfFmFpZH2igAMShBfgcf5qhmI/mCsrGLYfJrGk80zJRiA1J?= =?utf-8?q?dnurP1RGnQRU+WweuKRKgCnuOOeII9JVh+QTnFbhyJOhwA0bZj8IlD7DLRsLIct/v?= =?utf-8?q?EoB+EO8txSaBA243rlwUFqruBeHn55CCjaJF8jg2sKxRjCZTLoACFdH7mMTSk9LX8?= =?utf-8?q?yfroTyq4b49YwA93ZwTnfrMrES6jGD+MItOt3FZ8FOvMvqK90P5lQkDkqteO51nyE?= =?utf-8?q?xL9NsgypR4YZfbBgcatsKV1HivXUnhuiuRGKVZ/NpseIF27zIVREDyJhM66oPC7yR?= =?utf-8?q?IVBrm9qdaJOGHgaPC3o2H/S7BCgkUckDE+imawUza3W3n5cHHEGTksYNjOXGRU+tU?= =?utf-8?q?L2DYbhHHvdJ1uDT91ZGhgUt3YFF2qrwbT5iihkvNEsrl5qXF+niyqV1GmoP6Iveva?= =?utf-8?q?OW7w4CHxGknhI1ioeyWuVJ3iYwTPczCEucUMH69iUurDwItN42FsKVr58j1ng3nio?= =?utf-8?q?W/YPAIedSrn/+h6L5vR5le7INr/Kzm3HErOyro6Sc4C6Y3Hr3WUHppDR6phRKxp//?= =?utf-8?q?mFll3iC29hr/EdHNMyaKLBI/s1ClySOsDX/9sLciDglYEFZwlGGQCLkZRIL+9hAJy?= =?utf-8?q?Fgokpmh65XuarCcNtI9fJC1dGsoWeNGAH4bC9a1xFW64Vx8qKGtiW8/UGsdoSBJhw?= =?utf-8?q?Ruhj0H4W4J3HtGuULeuqvvAFF/53rEaUOz91MatmwmX7e+Od+FqLK/IawF0QsV0Ku?= =?utf-8?q?LO+IGakzk2DA5NrwOJCLWT93wE6SH5If+wwznsdq13mhlW7ZzYBUT4yP+vgv/FwdI?= =?utf-8?q?zvN2LX1v9HzLXS3xiUWGYQZLt+Q+IknabNBLsa5BXErodG6IQvD9kkzS7oU7a7kkR?= =?utf-8?q?j/uMKD53pdDrCaZPRUMy7KgTPcpKZr0zqgS70bIG+4iF/LqTuxRp9qw19iiIyjgR/?= =?utf-8?q?o1xdU8NcK2cZ?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR12MB7261.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AIyrfWH47jVEC2qU3zShUaMP/Mad?= =?utf-8?q?E03q5ed2z1jA2DDqX8a4fUK2GodcGSA6lORxRqhYyRmMhAomQNNPCrorYUurncsJC?= =?utf-8?q?o9oF7w7+hGM9AQqcyO+ER1WZ1g7tLgC8RC1X1McK0vkMPTnbFHaYRWGZcbDd6VMW2?= =?utf-8?q?DEyKDel4r8gVJm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7JDefO6YgLJ8ywWGbwlylKbmh/CglqhyUc8?= =?utf-8?q?jgZ+Vf9sJerHbzrRXBVP2QweKqjqFFdU2k8kAmJthatbLgysffDU5laXN7gpCnUhR?= =?utf-8?q?uBHyPHQGT1Ddxa5ovp+XifmDimCC9JMyf1V2dPf1ur5Rmqg8Id60xsjr5Q7N1uFLf?= =?utf-8?q?c0esyr9Rw2WtcHRcyACfSWmjfRTZ+qji5ujrpj2n9n2QABayvrUGh2b3j3e6W33nE?= =?utf-8?q?uBgC0TAoZKWHg9DdfkgOObKW6dFQvLiWLyizLA94G+uH/IOElL4yvO2uA3MlI+Pos?= =?utf-8?q?yS3PcnHvsCuToSBfFfoilUVFd29V9Va5cOou1a86ASLloPXYXXWjnGR4UUC+7FX1j?= =?utf-8?q?eqGUZCyzEmhP8pjKV+M6I622BoswGPcZChhpRY5EAtlN+1KI471VJuTnXGmG08TJ+?= =?utf-8?q?CrL7oJ4Kop/AEMC4JXNsO8QEzJoHQsUE41t1tLQaikfWZJgFDXoX2PbmWbmpus7zW?= =?utf-8?q?cIOYZQgNX7cC?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 682ba125-7725-4c91-84b7-08dd2e4ab5c2 X-MS-Exchange-CrossTenant-AuthSource: MW4PR12MB7261.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2025 12:07:36.9843 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bT6TzYRrVcI7TFoH+T6Gc3RVdbk5faNGFww66g4NF6cHt47cr9ZMclP3WOn+IBHpIjECzUj0vzRXwZ9tcy5lcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8312 X-Rspamd-Server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5oYEjqS b5VozKpoa5dqopkqAazQUMJJdzeY6PyruapaLYSA/+os/fOkhJG43juHQMAx5+h+kKjChHKuDp1NLHW/4JwQ1w0yLBw+16Q8tB93GnQiTKN5sN/1j6nOV30WuLhgcW73ZwDKzGpRTyZoOCDbCCjj/m0SLuXhSbyYDeBgs21URANrUoe5fZRIPxv22a9h6GPnJayjvfaqeu6Cw2urFLgpsfc+NPYPP+lEBCs4c8lOePFhgkQSvLScwgNqM5T2P2kyE4+9dmT8Brj4JydhbLty4vPPvDgTOVrYyiMYcb6+1K8oD4s2xutQGnmXp0w8peBKtFnxVkfeZQDQJ6RJjSkeAkY7pQbHsh+mBWJqg X-Bogosity: Ham, tests=bogofilter, spamicity=0.002190, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: When trying to use fake-numa feature on our system where new Numa nodes are being "hot-plugged" upon driver load, this fails with the following type of message and warning with stack : node 8 was absent from the node_possible_map WARNING: CPU: 61 PID: 4259 at mm/memory_hotplug.c:1506 add_memory_resource+0x3dc/0x418 This issue prevents the use of the fake-NUMA debug feature with the system's full configuration, when it has proven to be sometimes extremely useful for performance testing of multi-tasked, memory-bound applications, as it enables better isolation of processes/ranks compared to fat NUMA nodes. Usual numactl output after driver has “hot-plugged”/unveiled some new Numa nodes with and without memory : $ numactl --hardware available: 9 nodes (0-8) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 0 size: 490037 MB node 0 free: 484432 MB node 1 cpus: node 1 size: 97280 MB node 1 free: 97279 MB node 2 cpus: node 2 size: 0 MB node 2 free: 0 MB node 3 cpus: node 3 size: 0 MB node 3 free: 0 MB node 4 cpus: node 4 size: 0 MB node 4 free: 0 MB node 5 cpus: node 5 size: 0 MB node 5 free: 0 MB node 6 cpus: node 6 size: 0 MB node 6 free: 0 MB node 7 cpus: node 7 size: 0 MB node 7 free: 0 MB node 8 cpus: node 8 size: 0 MB node 8 free: 0 MB node distances: node 0 1 2 3 4 5 6 7 8 0: 10 80 80 80 80 80 80 80 80 1: 80 10 255 255 255 255 255 255 255 2: 80 255 10 255 255 255 255 255 255 3: 80 255 255 10 255 255 255 255 255 4: 80 255 255 255 10 255 255 255 255 5: 80 255 255 255 255 10 255 255 255 6: 80 255 255 255 255 255 10 255 255 7: 80 255 255 255 255 255 255 10 255 8: 80 255 255 255 255 255 255 255 10 With recent M.Rapoport set of fake-numa patches in mm-everything and using numa=fake=4 boot parameter : $ numactl --hardware available: 4 nodes (0-3) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 0 size: 122518 MB node 0 free: 117141 MB node 1 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 1 size: 219911 MB node 1 free: 219751 MB node 2 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 2 size: 122599 MB node 2 free: 122541 MB node 3 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 3 size: 122479 MB node 3 free: 122408 MB node distances: node 0 1 2 3 0: 10 10 10 10 1: 10 10 10 10 2: 10 10 10 10 3: 10 10 10 10 With recent M.Rapoport set of fake-numa patches in mm-everything, this patch on top, using numa=fake=4 boot parameter : # numactl —hardware available: 12 nodes (0-11) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 0 size: 122518 MB node 0 free: 116429 MB node 1 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 1 size: 122631 MB node 1 free: 122576 MB node 2 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 2 size: 122599 MB node 2 free: 122544 MB node 3 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 3 size: 122479 MB node 3 free: 122419 MB node 4 cpus: node 4 size: 97280 MB node 4 free: 97279 MB node 5 cpus: node 5 size: 0 MB node 5 free: 0 MB node 6 cpus: node 6 size: 0 MB node 6 free: 0 MB node 7 cpus: node 7 size: 0 MB node 7 free: 0 MB node 8 cpus: node 8 size: 0 MB node 8 free: 0 MB node 9 cpus: node 9 size: 0 MB node 9 free: 0 MB node 10 cpus: node 10 size: 0 MB node 10 free: 0 MB node 11 cpus: node 11 size: 0 MB node 11 free: 0 MB node distances: node 0 1 2 3 4 5 6 7 8 9 10 11 0: 10 10 10 10 80 80 80 80 80 80 80 80 1: 10 10 10 10 80 80 80 80 80 80 80 80 2: 10 10 10 10 80 80 80 80 80 80 80 80 3: 10 10 10 10 80 80 80 80 80 80 80 80 4: 80 80 80 80 10 255 255 255 255 255 255 255 5: 80 80 80 80 255 10 255 255 255 255 255 255 6: 80 80 80 80 255 255 10 255 255 255 255 255 7: 80 80 80 80 255 255 255 10 255 255 255 255 8: 80 80 80 80 255 255 255 255 10 255 255 255 9: 80 80 80 80 255 255 255 255 255 10 255 255 10: 80 80 80 80 255 255 255 255 255 255 10 255 11: 80 80 80 80 255 255 255 255 255 255 255 10 Bruno Faccini (1): mm/fake-numa: allow later numa node hotplug drivers/acpi/numa/srat.c | 86 ++++++++++++++++++++++++++++++++++++ include/acpi/acpi_numa.h | 5 +++ include/linux/numa_memblks.h | 3 ++ mm/numa_emulation.c | 45 ++++++++++++++++--- mm/numa_memblks.c | 2 +- 5 files changed, 133 insertions(+), 8 deletions(-) base-commit: 4c10320ffbe7d6273b153b112a6e5f9b61ac008a