Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2165966rwr; Fri, 21 Apr 2023 05:26:32 -0700 (PDT) X-Google-Smtp-Source: AKy350aG5bftimLFN7NV4V5RvJz1fkD4VR5RW27MQ5FnQ8WuyHCEMEdo8TG5csx6W3QMc+UQa044 X-Received: by 2002:a17:90a:1994:b0:244:b4ea:add4 with SMTP id 20-20020a17090a199400b00244b4eaadd4mr4561593pji.3.1682079992470; Fri, 21 Apr 2023 05:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682079992; cv=none; d=google.com; s=arc-20160816; b=foFp8lU8QpwCYP5lykWwAAaldkghTY6AVeQqXpqgjLtNu85+un/BwEcb5Vz3G3Gx2e P/EzyCDppYvEEnNrxUiC5r0tdPvfo9RyOjRAPhPATUnHdZ/GqJ0roOeBB8RFQeNq74Zd zQhWXDHbekgbKIIm/9XHFXlxNrCnywEZsqRKqcNPRLZ/dG5kAGUJMw0ucLrR4RmBNCcZ +RDh6MOxgjmWMmhtxSYb57olhEGczuFmrUibjwRug/LI4MCZACjV7tct1zXhF32Fgy/4 Ymmk7pMk+oEQoUjyGnoEqt6k5Ej6mfgVliss1mZjPCKppc1N8M7nGt/FEkjSBX9X2OlS w++Q== 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=+j/ntna8bgWt2iAvRmNAy5F27FgHWyBYXRwL+cr9F8k=; b=a/0pC4ENVoOSdT+xSncqQSkN0n86Tb1orwPWVehlpj43rNXpCckLcuJH+ibgtsCR1n kU+GLEY5LsdfORZFPaEXVEao7P5qjwKoOa0OyE+su4mnoedDdQZXjz5D+xRNp8DbpU7y 3R6NldpL7+Xv9fFparZWGBD5id0gb8ggCkvlaaik/sLfybD8cjIZWHjIrT4nM7oE/4Dg u06IyOVyIDbRQRv5p9PhsKtu9ljVwuTvjN2RH2zt2w8YLUg1pJBfxR/djHFI+hfByfns JS6e73cqrV2DgydJdito02lHmVafqb4I5YaHaCWtC5jBZ6g/lHs3vXFBQVwi9bHfkyOV 1ncA== 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 lr17-20020a17090b4b9100b0023b481b8dcesi7758956pjb.102.2023.04.21.05.26.20; Fri, 21 Apr 2023 05:26: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 S231226AbjDUMZg (ORCPT + 99 others); Fri, 21 Apr 2023 08:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjDUMZf (ORCPT ); Fri, 21 Apr 2023 08:25:35 -0400 Received: from outbound-smtp51.blacknight.com (outbound-smtp51.blacknight.com [46.22.136.235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 186F28A53 for ; Fri, 21 Apr 2023 05:25:11 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp51.blacknight.com (Postfix) with ESMTPS id A4E78FACCD for ; Fri, 21 Apr 2023 13:25:09 +0100 (IST) Received: (qmail 25223 invoked from network); 21 Apr 2023 12:25:09 -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:25:09 -0000 Date: Fri, 21 Apr 2023 13:25:04 +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 01/26] block: bdev: blockdev page cache is movable Message-ID: <20230421122504.pq76pj6hka2xdbpu@techsingularity.net> References: <20230418191313.268131-1-hannes@cmpxchg.org> <20230418191313.268131-2-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230418191313.268131-2-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:48PM -0400, Johannes Weiner wrote: > While inspecting page blocks for the type of pages in them, I noticed > a large number of blockdev cache in unmovable blocks. However, these > pages are actually on the LRU, and their mapping has a .migrate_folio > callback; they can be reclaimed and compacted as necessary. > > Put them into movable blocks, so they don't cause pollution, and > subsequent proliferation, of unmovable blocks. > > Signed-off-by: Johannes Weiner Deserves to be split out and needs careful treatment. I don't recall exactly but I believe I encountered a problem with these allocations in the very distant past. Some of the allocations were movable and others weren't or had very long lifetimes. Something like being superblock-related or directory inodes being pinned for very long lengths of time. This is a *long* time ago and the picture almost certainly has changed but it's very possible that a high percentage, but not 100% of these allocations are not movable in practice. -- Mel Gorman SUSE Labs