Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4437580iog; Tue, 21 Jun 2022 21:02:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tWPuLTqMvafefaK6meA1odbK3c0QpWlHbDkhOpJs7VVEcQkOW84cvkTabRP/LGvwfqxcxa X-Received: by 2002:a17:902:efc4:b0:16a:133a:b20d with SMTP id ja4-20020a170902efc400b0016a133ab20dmr19252654plb.45.1655870545011; Tue, 21 Jun 2022 21:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655870545; cv=none; d=google.com; s=arc-20160816; b=tnGuLx4oBMIjXhgxi2H0l3WuC0PqEPhxibnAjXQMshm3bh95pUNbquTIAzZRBrTh33 VcWVZ/+6s6eGnuP9n7BrTtLo+1akEfj571geWcaRoreZWjZHWGIzY8b1FtXSd/zZPbRi G4MlUEcUmAfmggLozIn73d1IzxqwewKUpGko/NgxRhVGNx0dCyKHfNZyaZjegJlv3hTS ToeSvnc61KcCTpWy7qohxPeNs5W9fDf9TEHWJhZU5VolPaVcIEXXX4oFvyzMU0yUGWqz +m044MKTZAviv3ikM2Ge1gCvwm+Mv4o7TfXd1b0PdTwVZ7CH0UKFpAhA5T++5kVLxpM2 cBxg== 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 :dkim-signature; bh=cE0rQjAA42eU80dv5qRJXXM0yGtnKl5fWjJdWhwMZOs=; b=ch+Yk//NxrxbdirCClv1NnBmTbpzMMOqao8bvTpqk506nlpv7Tvk8dFuSaZVsLYgd1 K5aNqMhu5k0KH8xqLRNWN2cyOWn3Vpcxw4f+pshakzOppXYhtTwD1WXTOnXesZa9XjRU o29j9QSud3vyn0v/YlK9ioVmMTVfmZ778qo6sV7ApuUcb9taVvpKRBt5M2yBne3zRTeD C+dNfpVsxWhtP8MisX/v662uWktwGc6H5Y5S0vjGs/PgXUJR/wqHXFSphQuviilmMURx 32jGZVASmgj60bTwp+/MS1HKRtqfhd7j46gncuT7gQILF7Rf4AqVxlIWPrB4f2P4lmlS XgWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=wyzwtDz8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="26jW/p2h"; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020aa78e12000000b00522c9732f7dsi19871613pfr.322.2022.06.21.21.02.05; Tue, 21 Jun 2022 21:02:25 -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.de header.s=susede2_rsa header.b=wyzwtDz8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="26jW/p2h"; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356125AbiFVDr3 (ORCPT + 99 others); Tue, 21 Jun 2022 23:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbiFVDr1 (ORCPT ); Tue, 21 Jun 2022 23:47:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 944DC19C03 for ; Tue, 21 Jun 2022 20:47:25 -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-out2.suse.de (Postfix) with ESMTPS id 51DDB1F985; Wed, 22 Jun 2022 03:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1655869644; 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=cE0rQjAA42eU80dv5qRJXXM0yGtnKl5fWjJdWhwMZOs=; b=wyzwtDz8nUgOOSUThBQLx/THMAKUiRlAZDiQFl9VFGiUenMabY0x2WFp1dTCiOc59o0s52 8sUvx9LCwIZ5wu2+VwZIG7agReZu4oMZx+oRdk/McQ0NmCTBISGPHOnOf/uyFnIwcUHMQO AxlMCAAT56ew/JQprKMjXPo81/XUHTk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1655869644; 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=cE0rQjAA42eU80dv5qRJXXM0yGtnKl5fWjJdWhwMZOs=; b=26jW/p2hSSQdrcX8rpve2Sq/al99Jctb0vc9NvLsDVipsyzYA6iLcVOllw+6CLRXN4SO9f pnXWkcHl1Qu2yIBA== 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 EC955134A9; Wed, 22 Jun 2022 03:47:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id M0jQNsuQsmJSEAAAMHmgww (envelope-from ); Wed, 22 Jun 2022 03:47:23 +0000 Date: Wed, 22 Jun 2022 05:47:22 +0200 From: Oscar Salvador To: David Hildenbrand Cc: Andrew Morton , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] mm/page_alloc: Do not calculate node's total pages and memmap pages when empty Message-ID: References: <20220621041717.6355-1-osalvador@suse.de> <20220621041717.6355-2-osalvador@suse.de> <506203e3-1de0-1187-5234-7afc66d4ddfe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <506203e3-1de0-1187-5234-7afc66d4ddfe@redhat.com> 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,T_SCC_BODY_TEXT_LINE 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 Tue, Jun 21, 2022 at 09:44:47AM +0200, David Hildenbrand wrote: > > > It's worth noting that the check in pgdat_is_empty() is slightly > different. I *think* it doesn't matter in practice, yet I wonder if we > should simply fixup (currently unused) pgdat_is_empty(). I guess we could change it to static inline bool pgdat_is_empty(pg_data_t *pgdat) { return node_start_pfn(pgdat->node_id) == node_end_pfn(pgdat->node_id) } ? And maybe even rename it to to node_is_empty (not sure why but I tend to like that more than pgdat) I could squeeze a "fixup" patch for that before this one. > > Anyhow > > Reviewed-by: David Hildenbrand Thanks! -- Oscar Salvador SUSE Labs