From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-128.mta1.migadu.com [95.215.58.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59A732765DF for ; Wed, 19 Aug 2026 03:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.128 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787108580; cv=none; b=BYuKzlGFT4bTAr0gYQYTDLmdB+DP0mwAUJ0W+xQzkuzm2TK+0e9ouVAsvdK0eDEvL9Zf+fBIv6DKPCp9Ma3uXA+rs73EQE5KJ+V6PaY9vpByPx5jd/GH1+n/jNr/KUh/Q4goSs8jEYzM2cvf3RwsjT0YxE3WwOfagy9g+vJLFwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787108580; c=relaxed/simple; bh=IRZQaGjJQtn0dDu7VssqvMPb2YwnLqTZZKLH7W11Xyk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=I0lRNyi308z5wSgj0Q5R4m9OSP9tUOWRBli9Jur5OBeuQ6TqcqeWyooK3nI1elJ3LLYmVLyDIPZ6AEnjTbcKpXgEDvi4SkpYjk79lQQwgWV5isJmjbXQSn03AnZgwmX3QXlvDNt1vXbJZ9XwNIMOuMefkbcFOTwq+PpJ3JwlEkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=DtKIy20N; arc=none smtp.client-ip=95.215.58.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="DtKIy20N" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=IRZQaGjJQtn0dDu7VssqvMPb2YwnLqTZZKLH7W11Xyk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787108577; v=1; x=1787713377; b=DtKIy20NuesmRtb0pNmaNhQx/15KOSQK/Gmd0Rae5f+wEs57e2dkmF9e4gOZrm+8StED2wc4 RsvfiGg2bdtglp3dut6Y6nrf2CAHQd/lhMdgpvrequ0XFqxzmqm5JGyynuyBHxJQua8LEXd/SoV N14+PewkyOGEolGdOHFfNcQ4= X-Envelope-To: linux-kernel@vger.kernel.org Received: from localhost (2602:fce1:44f:115e::) by smtp.migadu.com with ESMTPS id 3a28c889ab346ce6; Wed, 19 Aug 2026 03:02:56 +0000 X-Migadu-Flow: FLOW_OUT From: Lance Yang To: baohua@kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, baolin.wang@linux.alibaba.com, david@kernel.org, dev.jain@arm.com, lance.yang@linux.dev, liam@infradead.org, linux-kernel@vger.kernel.org, ljs@kernel.org, mhocko@suse.com, npache@redhat.com, rppt@kernel.org, ryan.roberts@arm.com, surenb@google.com, vbabka@kernel.org, ziy@nvidia.com, hughd@google.com, ackerleytng@google.com, usama.arif@linux.dev, joannelkoong@gmail.com, hannes@cmpxchg.org Subject: Re: [RFC PATCH v3 0/4] mm: enable lru cache for smaller large folios Date: Wed, 19 Aug 2026 11:02:49 +0800 Message-Id: <20260819030249.96570-1-lance.yang@linux.dev> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20260818225904.55236-1-baohua@kernel.org> References: <20260818225904.55236-1-baohua@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Wed, Aug 19, 2026 at 06:59:00AM +0800, Barry Song (Xiaomi) wrote: [...] > >-RFC v3: > * Rather than hard-coding `< COSTLY_ORDER` to enable the lru_cache, > allow the lru_cache for larger orders as long as the folio contains > fewer than `FOLIO_BATCH_LRU` pages. Also limit the total number of Tiny typo ... should FOLIO_BATCH_LRU be FOLIO_BATCH_SIZE here?