From patchwork Fri Oct 20 11:04:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13430594 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 03448CDB47E for ; Fri, 20 Oct 2023 11:05:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 497AF6B02BF; Fri, 20 Oct 2023 07:05:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 448326B02C0; Fri, 20 Oct 2023 07:05:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 30F666B02C1; Fri, 20 Oct 2023 07:05:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 20F0D6B02BF for ; Fri, 20 Oct 2023 07:05:16 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D1C5E1CBBDB for ; Fri, 20 Oct 2023 11:05:15 +0000 (UTC) X-FDA: 81365558190.12.E6B0D80 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by imf02.hostedemail.com (Postfix) with ESMTP id 8233280019 for ; Fri, 20 Oct 2023 11:05:13 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=ckyN04Jg; spf=pass (imf02.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697799914; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=9IZMHeTac8Kz4oLd5mHCdBq6mCMIqXMrNggWXrCufEg=; b=lWrCRH/A48jWwD54pXF7rx65NlVedkVapVy6wkDYknNzJwxnQZszpUr7x0D4i4JcCHS4ai ktdsww8YH/Xg90pudkA0EFSq4L4RRqS0nU52C7JfJo/+Lxf571k8YZadOSCXNA9FZkmyH9 O/e31u95/ifhpGmGJcCqAWoBJNsX+WU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697799914; a=rsa-sha256; cv=none; b=PGRshJfqTtFhobVFzPos2tUPGkSrdsKNpE5e9YTnXgTQ0UNZRljETD2eyUbPCtkVI0mCc8 ZvQ4I9RbM4x5ns2qTUph2tBcumg/50ix4QkwlHtzu8dBZw8sj5J+/ApogbSRz4KXhqftNw jaCg4Y60gst9fmBAoH4NZLAdBkT6vLk= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=ckyN04Jg; spf=pass (imf02.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6bd20c30831so184324b3a.1 for ; Fri, 20 Oct 2023 04:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1697799912; x=1698404712; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9IZMHeTac8Kz4oLd5mHCdBq6mCMIqXMrNggWXrCufEg=; b=ckyN04JgKORF9i+voOC5PxULqk8YjzvlxYxtsg7Ui2SNOkF4NFQ9k3lHE9oyVLK1kT mACzGSrnK6gyRZxs4OZ3dJF3pKVIKB9kDUyMVmB8ML3Z2GhrKuEEkIbLGHLBTD5dcNkK /pgyO/GXCK0ZhiT543SMseGj5LDJmjjr3TFdefN2eO9O7rTpvLiXF9rKzcMukbOsNgzx vL2AJ2lfDun7l3548LjGRJVCqYe/2x5SBvLMUT2omPVpqqdGdVJWmzgG0wka0He/Z6MF tDrynwstPo4246hkNYCEonSrx3VWjHhYdocR0HdZXJA17bH4q/K2g5j8EdC2DYqWkbqc yWBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697799912; x=1698404712; 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=9IZMHeTac8Kz4oLd5mHCdBq6mCMIqXMrNggWXrCufEg=; b=lwrCzIpcpp7zqmp5Ai92MA5nhF116ZjrsizLMoCz66LK6re8p6xYndRm5lhQsisQLY sGie24XDZfUoJIbVUXBkhGv5WxGYKj7GH1LJIquG9fslrYLwfjZ1ZF63bg52Vp+px6EO 2H8NDEajb5ifrpGY76Nm8RsUdYV2QwoZ2XaaO+xXZKAPKI6So9lMibs0OY0B3+dcDiku VB9tiYtyEYm9EbgK8gu5Xr35CrlKCnz9Sv5wBArBnWTSYfXvX9JnnZmywxTMDV5U53hF 7fRECe7QKOmH3DlIcthfr+c6DEjE7MKZzyu49o42gMu35J5JresrGu+FikOPbM4em8Ax SJ9Q== X-Gm-Message-State: AOJu0YyHgTEAkGeYZUvYHC9H+q3zrsJ+XIzbJsW9J5niWA406mO042xx f8+TvarYg2Vx81T9b/eajf/AkQ== X-Google-Smtp-Source: AGHT+IHv6H7nLejfTli7KNGHlJj4xUINzK1ZIqbutLEOGaZi/c0sQlHvctN3ARenTJLsJhd0f+DHSg== X-Received: by 2002:a05:6a00:1c86:b0:6bc:ff89:a2fc with SMTP id y6-20020a056a001c8600b006bcff89a2fcmr1399965pfw.2.1697799912055; Fri, 20 Oct 2023 04:05:12 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id z6-20020aa79f86000000b006be4bb0d2dcsm1323865pfr.149.2023.10.20.04.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:05:11 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, rppt@kernel.org, david@redhat.com, vbabka@suse.cz, mhocko@suse.com Cc: willy@infradead.org, mgorman@techsingularity.net, mingo@kernel.org, aneesh.kumar@linux.ibm.com, ying.huang@intel.com, hannes@cmpxchg.org, osalvador@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Qi Zheng Subject: [PATCH v4 0/2] handle memoryless nodes more appropriately Date: Fri, 20 Oct 2023 19:04:44 +0800 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Rspamd-Queue-Id: 8233280019 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: qouqfctncirb67bbx5e59k5bycao6mm5 X-HE-Tag: 1697799913-631902 X-HE-Meta: U2FsdGVkX18JzWL6NSWtS59xzXDttL5A/97lgLiNz8Q+EbGKz/dDpGa+zVd3bmiZp2ZyEuL1v+PIDHMqLTUtR6lwQT8j7kkP2qjFH51NWU9FE2iy3AF7VWUV8xTWwY1ZZCHv/ackY6yeFsNohrFs1Pl3TNM2CUoFjKeo2hhs5edWxGWbYzVqrTDTvZRhZh0GIaLXz1jdsveeVfduVBO0ZSNgMCyJWH+tdp8gkshT5TwKl3mPnV1NQF6Zr5Dl3T0IhOexGe4xCqqM5nxa/n+SdJ0TNTTohqTGo9ZXpPcQXU8+a4nla2g5CaRG6xWwnmNrcbsYdqsn489zfGMBlg+9b3fYQtv32KnocQ1yAafyrT4vXl5jvU0lnn57BmwUEc4mZ+gO8qkuh53GjqPYf6jYszS3mkmOdiS9d3Pn0n0UG8nGY/bvDYiTIDLaSib4x+8CtFcpJxUbKsaUUcD8gUc3VbUCA8C++1eutzlT7parayETkRfLGPkwM0tx7XdMbrMoBeRsCLtXKEJus6sPi7c/rSyv1vkk5k7G/tvHJs9BW74rRoF7kgN9RokEF/d6Ik75PRnRW3Hpi1H3NSg3ScjwP6dhZ2RBocQ5OAbH/mD00S4zQNRi3ZQL97fRkKsbZE+aJ7JR78Qq2hPItS91BnVutSIpYGixzVJq9KETEgDORbaiQDh30lKvYrqfTlt7SOnXE0uCOSFE6zJzIAVvcyeqav8ZfB71USuBi99mbvbk74bgGACkUBASpZGGTSF4BSmB9AukB4FprOdqaVu/ZDVP3dldUPWeSDWd33BJ/qoAzMNdu1h8HUT1N3pXnOnwQdFF+XlqbxAVPz2LJCoh/BM2hwxZAU7W22Gs3epAVVp3BAHyLdq3K+TdkhhKQFTKk/mWEe5yCFAVq1YmjRsRsfd9NqccxPU+2mmUoCsXToVFydVjzw4RuiX5PhgM35aZOmqRjyu+jnar3h7GB+rvrUn 6QJZjI7q N5/97X2fo1+0jUteFSW+u/LOE0qgb0EzKj3vG8HKCDZ+4SqUib8VvFRmQHrtjb7o2dO6EQwVvg24B2BCZ+stegqnoqBcmlhkQIrFdoLt5WLM7URpDvVRUwrZoJKdsYFd9FGkkfUuhwy7YExtvyyspWEgBBu4QeUq8bCv8sEgOzlaTkW3Jxxo7tP6KIq/GQ3IUYYW6Ql+a1JdCEBgShmxAERJ5U+YCnk7dvZpT9ZiIp4bzrIcEbW49L45d7+hIXZKneyqbLrbxBrI17qm7DGqQxzaYw8B1gQdc80eaZWZ9vnZsORpgwtKsqx+Ouv5QPNlpogTFGCCp6XCHAgZlWXN7G1r61rXWAcTDzRH7 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, Currently, in the process of initialization or offline memory, memoryless nodes will still be built into the fallback list of itself or other nodes. This is not what we expected, so this patch series removes memoryless nodes from the fallback list entirely. This series is based on the next-20231018. Comments and suggestions are welcome. Thanks, Qi Changlog in v3 -> v4: - fix typo in the commit messages and comment (pointed by Ingo Molnar) - collect Acked-bys Changlog in v2 -> v3: - add a comment in [PATCH v2 2/2] (suggested by David Hildenbrand) - collect Acked-bys Changlog in v1 -> v2: - modify the commit message in [PATCH 1/2], mention that it can also fix the specific crash. (suggested by Ingo Molnar) - rebase onto the next-20231018 Qi Zheng (2): mm: page_alloc: skip memoryless nodes entirely mm: memory_hotplug: drop memoryless node from fallback lists mm/memory_hotplug.c | 6 +++++- mm/page_alloc.c | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-)