From patchwork Thu Dec 5 09:05:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13894868 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 BB7F5E77171 for ; Thu, 5 Dec 2024 09:05:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4146C6B0088; Thu, 5 Dec 2024 04:05:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3C56A6B008A; Thu, 5 Dec 2024 04:05:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 265896B008C; Thu, 5 Dec 2024 04:05:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 04F656B0088 for ; Thu, 5 Dec 2024 04:05:16 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8ACF1141487 for ; Thu, 5 Dec 2024 09:05:16 +0000 (UTC) X-FDA: 82860320970.24.D727927 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf15.hostedemail.com (Postfix) with ESMTP id 84492A0011 for ; Thu, 5 Dec 2024 09:04:58 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=LrsO0qHQ; spf=pass (imf15.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733389500; a=rsa-sha256; cv=none; b=XKV1FUyNR6OGY6G4R6sbnH9iqjZtRtWfscMhUXeQ0oWs1QMJvsjFufEx52XFspOOnTcV0s aP/BcMfgRwiP9kFII+1HNqm0goZVGdh8xt9FqLJwwGpcWKD4v4qpI55Z8zOiT4Iot3Kss9 7pu4S1gzZf93jiUZ8OEssje3/nNvV3U= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=LrsO0qHQ; spf=pass (imf15.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733389500; 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=1OQuhMp8WIbLLy8H/zcKw1FKrd4IsOgaGA+1zvBnNg0=; b=wjTbJedfsV4EDM/30s2aq558u3Ox1qrZqHkKIaRPylkaKgWQL88DV0rha9C+he77I579O1 nbgQ4F3J23I3wie8ABNGDMPXMefSdkYGji4E97pPFb6+9Kov9XSZCBmDUjthZuwDtftnMx Bo6kXMvV2pAHz0h0lKEfr9RfTx2AmgI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733389513; h=from:from: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; bh=1OQuhMp8WIbLLy8H/zcKw1FKrd4IsOgaGA+1zvBnNg0=; b=LrsO0qHQxG7ghqgfJBQJYHvNhToZcbyqmedX4drW4qWXxg4UfcRIZ+7AH/ew1w1TbkcqyC V4Bt+dbPgz22Ju/v2/86NncL+EkjBQFDPcz/xnLRWiFkQ3oYBO2dTWfu5jepwirLU7XRwq Kvo+tC/i8UxSX8xw6+xBAfNkcsJg9PM= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-245-vqdXcE9lPS-rY7NAhJn7Xg-1; Thu, 05 Dec 2024 04:05:12 -0500 X-MC-Unique: vqdXcE9lPS-rY7NAhJn7Xg-1 X-Mimecast-MFC-AGG-ID: vqdXcE9lPS-rY7NAhJn7Xg Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-385e49efd59so272065f8f.0 for ; Thu, 05 Dec 2024 01:05:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733389511; x=1733994311; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1OQuhMp8WIbLLy8H/zcKw1FKrd4IsOgaGA+1zvBnNg0=; b=PVnBjDzJq3y7VgtI3r95HZ9LBxconQK5GmbDD0TpOSkKc33Sucmk2ON4HqRnZMgXX6 1mkbWkCcuWnMFW3xxXoCgTBR/aOH4jZ72PuUewLV5xQV58kLOT6GpUE8Bx3Tc2SIs20P povzvdhAjBomfn2zynBeQ37WIOEOVE3PuBNc/kedXY3d+wxXXtnNr3CQ0uMgL2T8oYrb xgjINo0fFSkng/UB+lOqCVRJCCYuQYLg9F3Xz2tHNzg3gu/Tb0pr+a5hT1urOYRdH6Nd Z/d1P0Q38boHUA3S4GfZeQBMoD6pdfLngYXr2Xl0i8+EDeUezpvhvlShD3R5RO9nMFFJ lMJw== X-Gm-Message-State: AOJu0YxMFuolSZQcZ5Nj5XNTXEXYqbSNVwot+2wwxhNQ+5BfLiTxKJdh QSkBQxyDzbkpoTigzb2WkCRIbJbgjBAcb6LtFpkCo++6NCDUNhMJDIple9Dz7iSsfiHQAK+3LI4 tCFBiPD+pz1y0KiCDHwrYzFmq0dgCdD9fR9EqhhGqA4CTrKuN X-Gm-Gg: ASbGncvgTV7f9O+A4I8EUV+lLyCfKhU1qo5Le299Q/S0cgX0Z0AdmcMPCnDLS6jpnnb D72u0vkwWDspa2v4RAy5McvI+9+ku5SC8aMO0BNN2ql3ysUov69hxBTarPy5WwKF/QQWu2VCqcp aovAufbDKiKiTGrhOWCvoEfhEgwFaEklBPddPFVVpcG0WGtKSc2wuoLqJRQGweBYqQLmMyesWM7 Jm+gzgU+bGAYBs+acvC5TkuzV/s1GofnVMkv278iI0kIM8lrJZEyhWNZFdY5gjTXrWGuKC2EpNB agcDI0TqNFklyKDxnf+LT6mi1MOI6YyEM4w= X-Received: by 2002:a05:6000:70d:b0:385:e17a:ce6f with SMTP id ffacd0b85a97d-385fd3e9d2fmr8918181f8f.24.1733389511367; Thu, 05 Dec 2024 01:05:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGR2udGB5JLOouFfrZ9UZdIQE4KHjRl9FWpjtS3FhlJurS+tCw+8wslXPydcXlXwso73YXI7w== X-Received: by 2002:a05:6000:70d:b0:385:e17a:ce6f with SMTP id ffacd0b85a97d-385fd3e9d2fmr8918147f8f.24.1733389511013; Thu, 05 Dec 2024 01:05:11 -0800 (PST) Received: from localhost (p200300cbc70f7e0075dc9c4033fab5f8.dip0.t-ipconnect.de. [2003:cb:c70f:7e00:75dc:9c40:33fa:b5f8]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-434d52c0cfdsm54932005e9.33.2024.12.05.01.05.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Dec 2024 01:05:09 -0800 (PST) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Vlastimil Babka , Oscar Salvador , Zi Yan Subject: [PATCH RESEND v1 0/2] mm: don't use __GFP_HARDWALL when migrating remote pages Date: Thu, 5 Dec 2024 10:05:06 +0100 Message-ID: <20241205090508.2095225-1-david@redhat.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: G-JgmID7tvo9lc3Uafy9MirXSn56MURlDlaULn5U1d8_1733389511 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Queue-Id: 84492A0011 X-Stat-Signature: bquxkamysxysozh6ty3h4ddtuaa3edyw X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1733389498-673664 X-HE-Meta: U2FsdGVkX1+JmdY0ob27SKm1b3UGNFMzUCVrTXFwydQ0iJ0cuNoBI/+rd5DODzId461kpTDRHYJC++J6GxzZwREClfRVE9Ptse171GkhPVDFL04Ewnc1yyJPkduOf67wrYAup/cW0quxNZ6hfkdv+3qUz0bqMSsUqxxliO1uRlCVLmH8hTpojPJAhzd6n7We3WVbLx1L4Td1eKCBe287EKN5fTpCG+rICmNY+akm6rreiKg7USNDxvC/3LLVVO96ehHB+wrdJJM/uEEUFkNmtJs5Mo8GGmWfCpz6CP2whEVpupN4ZIRwbZR8CuD6M+IZu5AQVLXXxWB36fBHj/JQ0ykI2pAfqeKC6OMzCFP2vFBqu4y73klVgWHsd1mHcT/UNFRqMm4F5PRD2ynmmw5nDYjIPJf5qNcQhl825gFyY3kpml2blw9FxOC5UsnJynrsf7/0nMn+wSINNH5BTZlv7jF2qzoS8sCaEj5nlIVuO8XCkdFyVloANC78PoNtE81C20us0lAonX1riWayVZagdm4c6+msuFSbzALGejKbrM3xBv5huXyoS+GGcdBTFv8gG5qy3rTjCoWJfy8U1kylUAarSemLUhy752xlMHIXqP0zNnQUlJQfX1oF+lliNnj3OJRdDDNwpgHyChwVaOyOz3x85LR/2XRR7OPfgpcAWO1J0ASRpGOFvTQY8Ri6/R7heR9Fv9s2NqPTAbkQqfx2TuVSImSof8vFx9RCSHGL+r8GEBaNZmxE91D/3ixVNXGdaQrqRV87YB1j3edfduMQXZvV4EP/xMzUrl6NlxrDowAB4OVtD6aDaof9y5uzboQAZQmcyZyo6gIjZyHFMtGi4PQ1EEZpj1QIShual0agFl8upeOZW4S6TJKUi0z8dqOOvpCQOAggwb2vnxrNW8N0TNMEMa1m68tdmtJwqj3TiUiCsmKOZLZCP6rroCA4kdhWaovybanIMqegj1qgm8P V4DbCzZq G+78o6JQEKQrEJ743hVWZrfMQNezZMBbJzz1CaVx5x7PCiiXDWOLJDRtB/KZ9SjIB/Aiwe5OYtKa2/4qRLTC+/75P1AWw6H4LEmwL2OwVOYwnUqvl4X0O6iaBlAVA8HPEs3XXVu/c4YypbcL5kZ4kxrLA5KVaE2M5OT9u8N2QqQPee9229faVFqRLYgl/jM3FCTXbtI+Hbi23O1/ol6L9fS4I4SeaItZB4T0NSG7YdJXzx28NRLXYwj6viwhybpLcWFmIQU5T+rRXSWSVyny2O6P4ENBcsagHMNWMHg8gcHc74ohrhyIULfcvq2Xc1hWdUzM5DCN3I/IwnDkwILkUpbU3Cb+nzNWz+7kxoyLTfcdYqOevfAesI26Ii3c/DmzhoPHH75PjNFBgCPz4Ev2KDnhs09T4vMs4bkluMP4q5daju8Qb4yEH4nb3WVnSppXU5S1GDf6OTR/jEi8Lc1UmgIKe5RVUlTZXFfmNN2R0A2gTTGYg6gffOzFPtsOq0rLJA9Z+YzgddvvKHzdj1Ypk4PM4SFYBvP4XbAS4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001323, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Resending via a known-working SMTP setup. --- __GFP_HARDWALL means that we will be respecting the cpuset of the caller when allocating a page. However, when we are migrating remote allocations (pages allocated from other context), the cpuset of the current context is irrelevant. For memory offlining + alloc_contig_*(), this is rather obvious. There might be other such page migration users, let's start with the obvious ones. Cc: Andrew Morton Cc: Vlastimil Babka Cc: Oscar Salvador Cc: Zi Yan David Hildenbrand (2): mm/page_alloc: don't use __GFP_HARDWALL when migrating pages via alloc_contig*() mm/memory_hotplug: don't use __GFP_HARDWALL when migrating pages via memory offlining mm/memory_hotplug.c | 2 +- mm/page_alloc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)