Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2462653rwr; Fri, 21 Apr 2023 09:10:32 -0700 (PDT) X-Google-Smtp-Source: AKy350YlBrPBfZEpNsuiMArDJ8Y2u+M5pO8bjsiagfTcx+GbGIe9hJhVIk6FdIa6ed7zWsTfOs+x X-Received: by 2002:a17:902:e802:b0:1a6:c366:1609 with SMTP id u2-20020a170902e80200b001a6c3661609mr6599007plg.0.1682093432232; Fri, 21 Apr 2023 09:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682093432; cv=none; d=google.com; s=arc-20160816; b=LZ6jTrdaOCUcNLMj4epBaBccoiPbugoc15y3mNVO98HKTng6oh5bnkRdNFVzrIOz4E IXkeRAytQC04taLP0bfkqaPv92lCyzk/+HV0rynQyg+e++L5/25dkqCfg2W+TtZlr6fG lgQkPotwFTxac6TNulAw60zMJY54eRJHVgMAnE/7Ufu7sox7T/mVtSs8Oed1hiD5cFzd luwPux6dNQsZAth0iuA/T+PT4XHi5yfm6eQ1s7nNLbhKYk8T4oVJ/vbS9RTl5+xvwNYj Y0IibsB+/0IG6R/hY0cXwfqAAK+zaYD6rmWGIJoS39EMScOTSI7HiEalzL0kJ1Nj9BXe jrQQ== 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=DmD+Rlrva5L6ZjhuHdQ1Fmnl5rso2AeW9qh+Rizq47I=; b=rZ4uVoom1AFY6dY3juF/aYCXI0mdwk+YjYz/0m4szuTem9qD3agCncIK5lkoWIqfOY d6zBK61j1gsC8Utb/IjO1k8KtEgjbLjJJ2kyU+dlirYJ02ukQwK8CRcQmbypTZA04Ety 1ZoB99AbgjFBsWn/PkBVh5tFYZ+jrvOoOktaGHHryfzeSGjhQ+OQVlXzUN+DPK1C82HO FhdRa5/aN+GwJMixH70IUwBkmIHrd1uCdNyv6rwWA1IIJNp7Eh7HnlJxqcfyrBOrTC/U Vb4HzEhsHef0mVmkunePbezgIX2mwwZFns6FWcIMI8hYseB7vEL6l2+uFF7s9JNCL9Yy w7cQ== 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 i2-20020a17090332c200b001a22d2336fesi1314388plr.584.2023.04.21.09.10.17; Fri, 21 Apr 2023 09:10:32 -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 S232648AbjDUQD0 (ORCPT + 99 others); Fri, 21 Apr 2023 12:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbjDUQDZ (ORCPT ); Fri, 21 Apr 2023 12:03:25 -0400 Received: from outbound-smtp07.blacknight.com (outbound-smtp07.blacknight.com [46.22.139.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20A1BE61 for ; Fri, 21 Apr 2023 09:03:24 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp07.blacknight.com (Postfix) with ESMTPS id AA4731C3D0F for ; Fri, 21 Apr 2023 17:03:22 +0100 (IST) Received: (qmail 14677 invoked from network); 21 Apr 2023 16:03:22 -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 16:03:22 -0000 Date: Fri, 21 Apr 2023 17:03:20 +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 12/26] mm: page_alloc: per-migratetype free counts Message-ID: <20230421160320.zz2he2iprq37vnl3@techsingularity.net> References: <20230418191313.268131-1-hannes@cmpxchg.org> <20230418191313.268131-13-hannes@cmpxchg.org> <20230421142841.parju3gmqmpefigq@techsingularity.net> <20230421153501.GE320347@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230421153501.GE320347@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 Fri, Apr 21, 2023 at 11:35:01AM -0400, Johannes Weiner wrote: > On Fri, Apr 21, 2023 at 03:28:41PM +0100, Mel Gorman wrote: > > On Tue, Apr 18, 2023 at 03:12:59PM -0400, Johannes Weiner wrote: > > > Increase visibility into the defragmentation behavior by tracking and > > > reporting per-migratetype free counters. > > > > > > Subsequent patches will also use those counters to make more targeted > > > reclaim/compaction decisions. > > > > > > Signed-off-by: Johannes Weiner > > > > Visibility into fragmentation behaviour is information that is > > almost certainly only useful to a developer and even then, there is > > /proc/pagetypeinfo. At minimum, move this patch to later in the series > > but I'm skeptical about its benefit. > > Having them available in the memory dump (OOM, sysrq) was essential > while debugging problems in later patches. For OOMs or lockups, > pagetypeinfo isn't available. It would be useful to have them included > in user reports if any issues pop up. > OOM+sysrq could optionally take the very expensive step of traversing the lists to get the count so yes, it helps debugging, but not necessarily critical. > They're used internally in several places later on, too. > I did see that for deciding the suitability for compaction. Minimally, put the patches adjacent in the series and later if possible so that the series can be taken in parts. There are a lot of patches that should be relatively uncontroversial so maybe make "mm: page_alloc: introduce MIGRATE_FREE" the pivot point between incremental improvements and "everything on and after this patch is relatively high risk, could excessively compact/reclaim, could livelock etc". -- Mel Gorman SUSE Labs