Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2196863rwr; Fri, 21 Apr 2023 05:55:37 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+xBMzJr3jEkTFh/mn6kQ+O8zupQ1HRepbOiB1CaA5s6ja9cmBnzVJ3zrAFKEIJsJikO6Q X-Received: by 2002:a17:902:e5c3:b0:1a6:5f92:3ba with SMTP id u3-20020a170902e5c300b001a65f9203bamr6111753plf.0.1682081737605; Fri, 21 Apr 2023 05:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682081737; cv=none; d=google.com; s=arc-20160816; b=YfvbvHZjgyanhDN0n9G2Y6LGipjW9irQywnoE6Vm/IPsdL8JzJ0ppU/NC9GkaX2K8j Jlz/yvlLPaoAD0mIKMCUFqUTs1cjn5xgxNroVseHhfGSy/KLvmoz8KUfaT0U3RAmV+OJ hFInVg+OCCE1q02FVeAE0GcFG6oA/pET1RwE6aGgZtpz8JQrDfspR7tdHUKG4tsbbI1Q p3H9zee4tNX0b2mC2k9aavDAXEs9VgjIA2OoloX4Rb7wcf+B7GBBsuu6aujqR11Dz3u+ zS2+O2xxhiLGyqxQVj60B5dD4j0Dmq5BbiZUibhabAfrcSe/+3Gib1l85IIjQFZYimNr chTw== 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; bh=If/X/eDbRrxNL+qc+fIPwEuxcgUldPaVFAl+JFs/Ihc=; b=f+zsaeEyDw/U+SUiKij5qyQgFymdpoFexRqIWgr3194tzZh4y3/V8boESa6fQo8DbU EgB7h6GRUY8ls7QdZyzTg3B4K+r74FqLMeiR+MeSRChMpiraM2455dwP0p4VX3VLVsGV F2cTDUgP97/Inwdce2Ld2sNDz4ysqkuDd9WzINoaWe/XTMC7iQ0BMMC8/ZwJur9W54wq lmUVyqVhft4jVe328kSUGZmd4Ik38bj2frIu/FZW5mVuVQO+uVjeSyu3+Reejp7cGe7i lqb4EJMX2Qkc2QMuTYPcE2Xhj2E2fhXOmN6eOsdXy9iPu62NGQrw0883+xHQqjXHGu5N ssyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a170902d41100b001a6f94a0f41si3986780ple.645.2023.04.21.05.55.17; Fri, 21 Apr 2023 05:55:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231636AbjDUMy6 (ORCPT + 99 others); Fri, 21 Apr 2023 08:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbjDUMy5 (ORCPT ); Fri, 21 Apr 2023 08:54:57 -0400 Received: from outbound-smtp15.blacknight.com (outbound-smtp15.blacknight.com [46.22.139.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8794D1B1 for ; Fri, 21 Apr 2023 05:54:56 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp15.blacknight.com (Postfix) with ESMTPS id 26F031C3F46 for ; Fri, 21 Apr 2023 13:54:55 +0100 (IST) Received: (qmail 6123 invoked from network); 21 Apr 2023 12:54:55 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.21.103]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 21 Apr 2023 12:54:54 -0000 Date: Fri, 21 Apr 2023 13:54:53 +0100 From: Mel Gorman To: Johannes Weiner Cc: linux-mm@kvack.org, Kaiyang Zhao , Vlastimil Babka , David Rientjes , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [RFC PATCH 06/26] mm: page_alloc: consolidate free page accounting Message-ID: <20230421125453.np6b5hirktkj6ji5@techsingularity.net> References: <20230418191313.268131-1-hannes@cmpxchg.org> <20230418191313.268131-7-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230418191313.268131-7-hannes@cmpxchg.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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, Apr 18, 2023 at 03:12:53PM -0400, Johannes Weiner wrote: > Free page accounting currently happens a bit too high up the call > stack, where it has to deal with guard pages, compaction capturing, > block stealing and even page isolation. This is subtle and fragile, > and makes it difficult to hack on the code. > > Push the accounting down to where pages enter and leave the physical > freelists, where all these higher-level exceptions are of no concern. > > Signed-off-by: Johannes Weiner I didn't look too closely at this one as I'm scanning through to see how the overall series works and this is mostly a mechanical patch. However, it definitely breaks build > @@ -843,7 +843,7 @@ static int __init debug_guardpage_minorder_setup(char *buf) > early_param("debug_guardpage_minorder", debug_guardpage_minorder_setup); > > static inline bool set_page_guard(struct zone *zone, struct page *page, > - unsigned int order, int migratetype) > + unsigned int order > { > if (!debug_guardpage_enabled()) > return false; Here -- Mel Gorman SUSE Labs