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 B9716C02185 for ; Fri, 17 Jan 2025 20:37:16 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1tYt5f-0003Ge-Cy; Fri, 17 Jan 2025 20:37:14 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tYt5e-0003GX-B9 for linux-f2fs-devel@lists.sourceforge.net; Fri, 17 Jan 2025 20:37:13 +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=w++UGgo2wLEUMrrXJM3B57QPax+Q8fFD/YpLag3dxkA=; b=fkRN91QjPPldv2rzRjnEY74OwH DULh4ippDeolbglmWxJRQT+JM96+SzZHYLrmoTkPF1LUpCylO+Z6CKzX/TEkjpzx+40PJ8Jfg5Hth z7DCAW0FBhNUJDSw5GXV5jsn52n6/aXv+kww5004TUmLn/OJL1FJyE6F18syOEtTkGHo=; 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=w++UGgo2wLEUMrrXJM3B57QPax+Q8fFD/YpLag3dxkA=; b=VrEdK0JsFF4Ey7yUfXpM4GczhC gZV9h3yEiRt16vB9S/dT+Z/vL6nWm/5q07G3obgo5l6g3BzJ00CMMvKVXmqU4R+pc3LG+WecgPElj sBBw620hWa2r9geqDwf4p9H3LZtf6dMldcDsTA2lgfIdjy3PTzbr2tKLDiXrTuyL7Ask=; Received: from nyc.source.kernel.org ([147.75.193.91]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1tYt5d-0004nF-4I for linux-f2fs-devel@lists.sourceforge.net; Fri, 17 Jan 2025 20:37:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 82036A43301; Fri, 17 Jan 2025 20:35:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC88FC4CEDD; Fri, 17 Jan 2025 20:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737146227; bh=rT1bqZdwVFd/2xyZ7/+BbcEOFeWh4PZPt3GS1lV3PbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YvC/ZXmQy/UI/n7UEmqmFhKXCQqFLoft41IaIEt96y8IYO/kIq26qxnidq1YP6Ek7 fPPvEYvIZvip5712h5y5P9whbfeukKXnoHdQVbP8erZtDZzIHh4fZ0gjStkuswJ08y dR18apYB5mqA2QKdTt43zg/7WHGAWIO4H1LLZ0mQZ+JnoYFrzFs1/dN5tCylPNWJ3s NFKVrVz5SGhi3+tcN/5ozF46va10ge2x2+WKwdRxcsXuHN46LVe8sKENXmerYWWUql 3NqexdFJbzAGOHCxO+AdowcAHITO+j86ZKbHU5CmG9ebVAX/ra4hQ5F6G87r9bRQi1 NzpTUGQp2xNig== Date: Fri, 17 Jan 2025 20:37:05 +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: 1tYt5d-0004nF-4I 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 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. _______________________________________________ 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 91A5B1A8413; Fri, 17 Jan 2025 20:37:07 +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=1737146229; cv=none; b=U8Iq+oX9A8GxqZ1htcq7TCQ+gYBwJgS6Tb0k7gSkXkIh9E1zLYLbkT7WFbv+9DeBkxlbSwgPVoFfPHvO/Z8P32R/n4LLh9FHheUQeHxtc0I591/Ym7RFifF2AcRhTq5MRSN2e8y8+RpkFdqzTjUEXFk9BNngJcTzTS/M/rBMb2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737146229; c=relaxed/simple; bh=rT1bqZdwVFd/2xyZ7/+BbcEOFeWh4PZPt3GS1lV3PbQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ijQsShYYhNuq4UbXDLGrEQ28w4vzSFTbZ/IuWiZAV5/5ovtXn4t5LfCKxJAueMtPLLOTWd8P/Jfw1hxccH2iZAesk3xG6Lkbn+rMKsF3c7NjLs9fv8uirJs+PGgeNc0fpVuUsiEwdwD5GqF9JZge0/mLOp1hXccDIrIc1Qiahe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YvC/ZXmQ; 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="YvC/ZXmQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC88FC4CEDD; Fri, 17 Jan 2025 20:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737146227; bh=rT1bqZdwVFd/2xyZ7/+BbcEOFeWh4PZPt3GS1lV3PbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YvC/ZXmQy/UI/n7UEmqmFhKXCQqFLoft41IaIEt96y8IYO/kIq26qxnidq1YP6Ek7 fPPvEYvIZvip5712h5y5P9whbfeukKXnoHdQVbP8erZtDZzIHh4fZ0gjStkuswJ08y dR18apYB5mqA2QKdTt43zg/7WHGAWIO4H1LLZ0mQZ+JnoYFrzFs1/dN5tCylPNWJ3s NFKVrVz5SGhi3+tcN/5ozF46va10ge2x2+WKwdRxcsXuHN46LVe8sKENXmerYWWUql 3NqexdFJbzAGOHCxO+AdowcAHITO+j86ZKbHU5CmG9ebVAX/ra4hQ5F6G87r9bRQi1 NzpTUGQp2xNig== Date: Fri, 17 Jan 2025 20:37:05 +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 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.