Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2309274rwr; Fri, 21 Apr 2023 07:16:04 -0700 (PDT) X-Google-Smtp-Source: AKy350bMSwibuR3sqnt226Mwy57kiYNMDACMW7y4aNA41WZd2xOEnMiFH1J9bQGifeT7YVmED64Q X-Received: by 2002:a17:90a:1d3:b0:245:eb4c:3df8 with SMTP id 19-20020a17090a01d300b00245eb4c3df8mr4888384pjd.2.1682086564413; Fri, 21 Apr 2023 07:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682086564; cv=none; d=google.com; s=arc-20160816; b=GhQdb3ubh5o3v0t13rh7KLFMs9eNkC6NbvN7F1RKPFY+hdeAjV6bM/WCZeYHnIJFjI fydkqUCANghJ+lDbuOqQN1LAe5GypaTJ2hMK5/VPNtwuyD7icLog7YGbLiYIe/Pm+kL1 3RsSwOCD10+w0gTlUYVvC8DUanO0FHOQxEoRMykk4lQqaX767oSB5BZX6EhA9/STxH3h NZk5DHwfiqgag7t5bNcTGatq32+HUzZaypgNbcAScWeVdNrqAMQwarml7MBXMoF/wVWb ENUAQ20Wmk3rqWk4vK2v9NihgzLOIHxPFHp391K9tuBR4Tf2bh+sNJwPokIn9H8EMoG4 CQkw== 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=yBAprSIdl8RUOcpHJ3jBMFqJq2EB0vneqb3DpOW9e4w=; b=XVt2I+s3Ujz/vbpmZVM4+ucDOWCJfQ4VNlVa9/nWW+VAbFY2h7wvlHN2bz3D0cZESJ KVpeL7t7VgZWn4wH9ksRXpe2GbhziYclZgAfxX4AVV0Rxl13LKJYCu6b5HZjo3Flm2M+ QxzQWVBKEcMLJqVh7CGwbPjU2W/D3hyD+iTXiSSId35+x6FHCoqKUtdZPBOaD4GyKJFu Jkd4TnWf7NnLlT5n+4sP/57Art4Ls12pEatsKasZOS9CjgErWeVN4M5wE9WxjYzipVoP LjD9fJ4N2NiQBq5Z+kXdt5rRrxTu0FG8uM/Ar6+RxPkTm3oEHuBsmFApjdqvvtF3rxkS YWNA== 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 f21-20020a63f755000000b00517a4a75528si4224191pgk.162.2023.04.21.07.15.47; Fri, 21 Apr 2023 07:16:04 -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 S232079AbjDUOPA (ORCPT + 99 others); Fri, 21 Apr 2023 10:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbjDUOO7 (ORCPT ); Fri, 21 Apr 2023 10:14:59 -0400 Received: from outbound-smtp62.blacknight.com (outbound-smtp62.blacknight.com [46.22.136.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2179B2106 for ; Fri, 21 Apr 2023 07:14:51 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp62.blacknight.com (Postfix) with ESMTPS id A27CBFA739 for ; Fri, 21 Apr 2023 15:14:49 +0100 (IST) Received: (qmail 14279 invoked from network); 21 Apr 2023 14:14:49 -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 14:14:49 -0000 Date: Fri, 21 Apr 2023 15:14:47 +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 10/26] mm: page_alloc: allow compaction capturing from larger blocks Message-ID: <20230421141447.2cw5cfwibb7jxf6n@techsingularity.net> References: <20230418191313.268131-1-hannes@cmpxchg.org> <20230418191313.268131-11-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230418191313.268131-11-hannes@cmpxchg.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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:57PM -0400, Johannes Weiner wrote: > Currently, capturing only works on matching orders and matching > migratetypes. However, if capturing is initially skipped on the > migratetype, it's possible that merging continues up to a full > pageblock, in which case the migratetype is up for grabs again. > > Allow capturing to grab smaller chunks from claimed pageblocks, and > expand the remainder of the block back onto the freelists. > > Signed-off-by: Johannes Weiner No objections other than we're still in the preparation phase and the series needs to be split. Out of curiousity, how often does this actually trigger in practice? I ask because superficially, I would expect capture to happen while pages are being merged and I'm not sure how much this actually helps. If anything the anomaly would be merging !MOVABLE types, capturing one pageblock and leaving the adjacent block eligible for splitting as UNMOVABLE/RECLAIMABLE which is not necessarily desirable. I nagged about the splitting already but ideally there would be supporting data for all the incremental improvements before a major modification is made to fragmentation avoidance. That way, even if the fragmentation avoidance changes have side-effects, the incremental changes stand alone. -- Mel Gorman SUSE Labs