From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB89838E8C4; Wed, 27 May 2026 06:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779863602; cv=none; b=Ks7CGirkdxJ8WUXTzOLd2TjDGtpCpPpfS1RGbQNCyq5fdqPcOEkg65j5pH/27q2A6qHkweT9ACV9Dx8BhCmjxjcjUmvIB72dpqYgR0V0XRXLMlteqp3DYjISn2pTyY//z4oeheYesjmEAbt18SHUYODMmp9Nsb06GlzzfB5TLUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779863602; c=relaxed/simple; bh=fdRmZD2Cv322lhZGYTbAvFMKibkIUUzeeQCV4GXWDb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZuWVuwgm7j6IPH/18Qcis5MP4b0M5W/pjeMVMKjogjrDd+41CddV0vKnDNg7N7qaS8IRWEGUsg1ggC17/HCTlLoHYyrueO5G1vcT/tZhhg0k0H8X/p+19smWtc8xDL6SNdCpCBp5FIgZyJNrCFroDeoi0mQGpRU2WbNyFSz+X6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=L292o9Bd; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="L292o9Bd" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eEdEkrkWD4PUlydL5ruu4HP9SQ8xgA8dkqdrg8+Pz5w=; b=L292o9BdhdzRX7dwCnyh8lXw/Q aInv3spzoL36ml6byXQJAIP6c9rHzdAI5XAEMaBYcWQ5td2NKk7V0VE8JKmrjzq8K62svpG9FXk+c TFZvUtfQPoTtDUuw2y7XIsGGA/r5AtmGWBqsmyTKCqbeS3wZjw+Ih11M0mxzTfHQRUa+vlwVSIcUc wbRyatrxwjWJ6C/55O3pN/OePsPXDeFlSRao18JdofJn3iJZRz7Rr3oLIEmwxK6SU/Fsbruyfp+YJ BUdSW/zV0p8QL1lTXQMNKb89ugT8wK+V4ePi1SkXf/I6ET/GgcXt4J5GTQ0YYHd1Igil+9vMYCg0t eLerb5vA==; Received: from hch by bombadil.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wS7pQ-00000003PH6-0KFC; Wed, 27 May 2026 06:33:20 +0000 Date: Tue, 26 May 2026 23:33:20 -0700 From: Christoph Hellwig To: Jaegeuk Kim Cc: Matthew Wilcox , Theodore Tso , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Christoph Hellwig , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Akilesh Kailash , Christian Brauner Subject: Re: [f2fs-dev] [PATCH v2] f2fs: another way to set large folio by remembering inode number Message-ID: References: <20260521155748.GA79343@macsyma-wired.lan> Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, May 26, 2026 at 03:47:46AM +0000, Jaegeuk Kim wrote: > Thanks for the feedback. Actually, I tried to do compact_memory before doing > read() for AI loading, but I got complaints where it took hundreds milliseconds > to run that compact_memory. Is there a good way to secure high-order pages before > that read()? It was quite hard to project when it will happen. Make sure that all files use large folios as much as possible so that you have a lot of clean pagecache to reclaim.. Same for any other easily reclaimable memory through shrinkers.