From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09EE1C0219B for ; Mon, 10 Feb 2025 17:00:58 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1thX9U-0001b8-Bx; Mon, 10 Feb 2025 17:00:56 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1thX9T-0001b0-H8 for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Feb 2025 17:00:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; 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:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1DJUXCvBPlZGvBeVh14Hd9ifovvF++10f7KNgGStebc=; b=TgUgHqY/yOacEZgSFEeYrxbOdz jckx4taaqhdV6It0L/zkieZbeoVEB/mLPpjCRxxnDrNkeZqOPfWczRdKCowf2w4ptVo6OtxnTj/rZ HZk0He/Tq3XiIwVqy26rh72m2uUzSD25keZRyu6Tpf0NgjmzUuku3cZV/oLJ7EIUAB3E=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1DJUXCvBPlZGvBeVh14Hd9ifovvF++10f7KNgGStebc=; b=ROIyXXu+uBpl9g4HXGN5RpC6gZ xCAZeGce2S+5uDp9701SXs5JXzV+WSwkC9/omyFpm1r0iTZ9dyrWMRp1OWWeQf6oIgBfSJh3DZ9Su jcrmP9S0blnQIPjYzuWZKeV1qDU5V1KkeH2vxPAVIt8jFbFIcySXIW9VuCa6Nv6lddKE=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1thX9T-00033S-BN for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Feb 2025 17:00:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 63FC55C5578; Mon, 10 Feb 2025 17:00:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70775C4CEE5; Mon, 10 Feb 2025 17:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739206849; bh=tpsTov6Qr/s5OOulL+UdOsWM2lAtGYCZxb/IGeVYfOQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DLdwuFKfXyQYohVa5/G0tTRg6Koz6o8MJ0B3SPXOH3WjJTcE8wOX9ogcbysaONH6O NvIDNmOvJu+h7qhw7Shh/0hRivKcrP2ri4yhbXYEFLZHJlHmk5aRc9xmNNK6iD4UQv 7SNBm27KcvwtFaVVePvTIx6eC7KX6c4QHKmIwRGRAU7sx4iXGdd5KD5ZvylYUkBbZ8 K+M+5vmeXJeDuG/AdJAix0fhxM86Lga74z3pr4GmcGN0TH66qGwJdVm1WzwrvqF4ET gY6KtdW7Qm/jvO4kM7/0fI7HzYqigY+mHLyxheqOmz7uGXprnNyGtkQS2WCzl6jYis JpJKNhQaveRZw== Date: Mon, 10 Feb 2025 17:00:47 +0000 To: Matthew Wilcox Message-ID: References: <20250117164350.2419840-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1thX9T-00033S-BN Subject: Re: [f2fs-dev] [PATCH 0/2 v6] add ioctl/sysfs to donate file-backed pages X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jaegeuk Kim via Linux-f2fs-devel Reply-To: Jaegeuk Kim Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 02/04, Jaegeuk Kim wrote: > On 01/17, Jaegeuk Kim wrote: > > On 01/17, Matthew Wilcox wrote: > > > On Fri, Jan 17, 2025 at 06:48:55PM +0000, Jaegeuk Kim wrote: > > > > > I don't understand how this is different from MADV_COLD. Please > > > > > explain. > > > > > > > > MADV_COLD is a vma range, while this is a file range. So, it's more close to > > > > fadvise(POSIX_FADV_DONTNEED) which tries to reclaim the file-backed pages > > > > at the time when it's called. The idea is to keep the hints only, and try to > > > > reclaim all later when admin expects system memory pressure soon. > > > > > > So you're saying you want POSIX_FADV_COLD? > > > > Yeah, the intention looks similar like marking it cold and paging out later. > > Kindly ping, for the feedback on the direction. If there's demand for something > generalized api, I'm happy to explore. If there's no objection, let me push the change in f2fs and keep an eye on who more will need this in general. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 36C66256C88; Mon, 10 Feb 2025 17:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739206850; cv=none; b=tIiuWcRnQmzrISkho8fEWJlFdt5TRbIIBhsEfP814r/KGFTkbUdcQ27PiAH4eLkD0YY3HlPz+lAY0uyQEVaouAudbzLHh3T1q5I5r+iBerilKd2aSwEz7pkoiL4jQ2qx0no9vl6DtKgGC788UBrPEvk11GwgOY+9fiUDTpsB5kU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739206850; c=relaxed/simple; bh=tpsTov6Qr/s5OOulL+UdOsWM2lAtGYCZxb/IGeVYfOQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FvZ7B/lDcw9XxMpV+rnbSjLliDvbjB76CqdK4FTod6xUWgWB6IjkzIiaStCXyRjUwGcVbQ4PewvHK6wPIQm9FkhC3BuvawkHF9CyYAXfE1H0+DPHKnBoPktH16V9OJYBcNJA7rTjVJP/temi/HVqNtXOb8jy6Oq8DpUhqnQBOA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DLdwuFKf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DLdwuFKf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70775C4CEE5; Mon, 10 Feb 2025 17:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739206849; bh=tpsTov6Qr/s5OOulL+UdOsWM2lAtGYCZxb/IGeVYfOQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DLdwuFKfXyQYohVa5/G0tTRg6Koz6o8MJ0B3SPXOH3WjJTcE8wOX9ogcbysaONH6O NvIDNmOvJu+h7qhw7Shh/0hRivKcrP2ri4yhbXYEFLZHJlHmk5aRc9xmNNK6iD4UQv 7SNBm27KcvwtFaVVePvTIx6eC7KX6c4QHKmIwRGRAU7sx4iXGdd5KD5ZvylYUkBbZ8 K+M+5vmeXJeDuG/AdJAix0fhxM86Lga74z3pr4GmcGN0TH66qGwJdVm1WzwrvqF4ET gY6KtdW7Qm/jvO4kM7/0fI7HzYqigY+mHLyxheqOmz7uGXprnNyGtkQS2WCzl6jYis JpJKNhQaveRZw== Date: Mon, 10 Feb 2025 17:00:47 +0000 From: Jaegeuk Kim To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/2 v6] add ioctl/sysfs to donate file-backed pages Message-ID: References: <20250117164350.2419840-1-jaegeuk@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@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: On 02/04, Jaegeuk Kim wrote: > On 01/17, Jaegeuk Kim wrote: > > On 01/17, Matthew Wilcox wrote: > > > On Fri, Jan 17, 2025 at 06:48:55PM +0000, Jaegeuk Kim wrote: > > > > > I don't understand how this is different from MADV_COLD. Please > > > > > explain. > > > > > > > > MADV_COLD is a vma range, while this is a file range. So, it's more close to > > > > fadvise(POSIX_FADV_DONTNEED) which tries to reclaim the file-backed pages > > > > at the time when it's called. The idea is to keep the hints only, and try to > > > > reclaim all later when admin expects system memory pressure soon. > > > > > > So you're saying you want POSIX_FADV_COLD? > > > > Yeah, the intention looks similar like marking it cold and paging out later. > > Kindly ping, for the feedback on the direction. If there's demand for something > generalized api, I'm happy to explore. If there's no objection, let me push the change in f2fs and keep an eye on who more will need this in general.