Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp86426rwi; Wed, 2 Nov 2022 09:35:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55YEaFZL6MwpowKzNpptoUONSc72VEd0akVmNyRW3kCxbtUbCa9G/7Zx9o2qzuXD0ZuPmd X-Received: by 2002:a17:906:9bd5:b0:7ad:939d:79a9 with SMTP id de21-20020a1709069bd500b007ad939d79a9mr24145057ejc.479.1667406903403; Wed, 02 Nov 2022 09:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406903; cv=none; d=google.com; s=arc-20160816; b=yU7F/j7qlPwhpwk7LcYUdZ1qBbMEQsBSr3pKf7QRbthhHnAxJMj/SQvm9tl5kxLE78 e3d81vYVfvjJpj0Yyv8fjitnxn5IdRclH7Rsl/R5Yg0uimzhjPXf4ZzpYikHpPXRsWt/ QwHkRm1QuJUgnq/runVoW/mSw7q3Fu6SEfnCpQ40jsQDb4Ltr2tJji2k4HN5tf0f0viB KkExjt51qiTsX/eWUVHHngip2ZyZoLqUiCzF6Ek2ES4hxJdTJGZmuVJiiqteyx3NzsZJ R23ukNWNNW1LR3FT5BpsgUsHIOpodmsbXmOu6sLEnJwRQldJqAdOQJXjJxDaODONey6o AYkw== 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:dkim-signature; bh=0ltRSvD+MBT0/eZowW+t0lbg4zeEUtzQRQMUxfd+dLc=; b=GgnybanPez5Flk1TVq8lFA7QmV+wrCHJT5E9Y19w3hXZErmmwCe4w3AW88mITFYRn5 eR8xHEeer5oDLeXZ5k4mELx4vHjKYKxrcbGsvpSQYXnMDYe/CrAmSZhM2wu+9tKKabLa CLmBVnHU0cAp3Ya9ubSU3F0UUG9IsfKfZ2HHJbMhe3RvBLkgOKjIq0RzMdYhnRS95RqH U9cmr6jErEzbo9o9x9UWI6HQF4uqw3O4fts4nf5qHMmysS4MmVXkYCSupauAYvf/ehYG 27VIKFMUOenq4BEpLkprdCot+q8kAHkl7J78OVSZwHdJejyh1ik8RwXjPi8E0qnbpMT2 6eOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Ia+9q/A1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht16-20020a170907609000b0077cdcd4ed23si17018272ejc.498.2022.11.02.09.34.30; Wed, 02 Nov 2022 09:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Ia+9q/A1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbiKBQWl (ORCPT + 98 others); Wed, 2 Nov 2022 12:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbiKBQVe (ORCPT ); Wed, 2 Nov 2022 12:21:34 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FF131EC7 for ; Wed, 2 Nov 2022 09:15:21 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A42A221E9F; Wed, 2 Nov 2022 16:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667405714; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0ltRSvD+MBT0/eZowW+t0lbg4zeEUtzQRQMUxfd+dLc=; b=Ia+9q/A1gQ3ByrTl0c7R3Gle155cWOybT1S1hFJtgXPdv8N2weiwKkF/rr+4o+zEFBwAS+ iV7ltM6DkCGr0GibiXH08/I1Ud3U/nIWKHad3vLvlbFqAOEjJ5TmvZApoY/QhKhiCWiKNn cH1KqunG/vE62dAO92DdeJr4B6BHJd4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 871DA139D3; Wed, 2 Nov 2022 16:15:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PkbYHZKXYmNIHAAAMHmgww (envelope-from ); Wed, 02 Nov 2022 16:15:14 +0000 Date: Wed, 2 Nov 2022 17:15:13 +0100 From: Michal Hocko To: Yang Shi Cc: Zach O'Keefe , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: don't warn if the node is offlined Message-ID: References: <20221031183122.470962-1-shy828301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 02-11-22 09:03:57, Yang Shi wrote: > On Wed, Nov 2, 2022 at 12:39 AM Michal Hocko wrote: > > > > On Tue 01-11-22 12:13:35, Zach O'Keefe wrote: > > [...] > > > This is slightly tangential - but I don't want to send a new mail > > > about it -- but I wonder if we should be doing __GFP_THISNODE + > > > explicit node vs having hpage_collapse_find_target_node() set a > > > nodemask. We could then provide fallback nodes for ties, or if some > > > node contained > some threshold number of pages. > > > > I would simply go with something like this (not even compile tested): > > Thanks, Michal. It is definitely an option. As I talked with Zach, I'm > not sure whether it is worth making the code more complicated for such > micro optimization or not. Removing __GFP_THISNODE or even removing > the node balance code should be fine too IMHO. TBH I doubt there would > be any noticeable difference. I do agree that an explicit nodes (quasi)round robin sounds over engineered. It makes some sense to try to target the prevalent node though because this code can be executed from khugepaged and therefore allocating with a completely different affinity than the original fault. -- Michal Hocko SUSE Labs