Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp927916pxf; Thu, 25 Mar 2021 18:23:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+j073osWRRUD+SNIMmvdu1O1szVLFH4hE94MNXk+w8jj4jSxBLwx4gv6CPLiU2zQEY9z X-Received: by 2002:aa7:ce16:: with SMTP id d22mr12098889edv.95.1616721802688; Thu, 25 Mar 2021 18:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616721802; cv=none; d=google.com; s=arc-20160816; b=Dyg7WQuXKajiZabEqh30IkKZoDoIm8yhiw8HqhLr/4PHFRZAfqdAms+tCcJJCVRB+E h77ZGyKYSmJtP2h4fE6xlZhAZwYzA4AQmyVey4iKfHpDOEJJmSv+gT2F6kG10/H9Mif3 880XC0rRNKsr2RDffl5wkKljfo79DPcKDdBU7xuQA/6jEeAvQwJiueiPtyCUYxU+tGhN Ic6LmlNkb/2fzVPlvEv4IUkN35I7n4pVMHEEdLqtsY4WRmlFv4lJnWjUjO/OMzMXvD3e TIdRaUkIFNfgBSUTbNoSZMyiSiCHcSPn9icnGDiEOMClX9AnW/TlKQ+/rTJTkMCj+RWF cCBQ== 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:dkim-signature; bh=pOPO+gWWylzXQnBmvvGLUKLgVKu695/EPgzVM/2ulyY=; b=YoZa2N/7vnRsHZ6tj3OmPUB1TDako8gbBzly2gpuj4OwLbDS4XOVsfIu6g5FUWgV+t TLwM+3FxNKwx69vF7PskWQtvOZjpehnujkFcRD5bVEHXGh+Gz163fq3Zr2PqP3Yo5wXe pbdO8kLQWx2E92SIgFSTO7HsW/dR+4eAkyNAUOIpzTlgXwwitIaOGMLlLT87lbR/3GYX TUryTwq+6freL6o7U4PeB+sg0UKxjj/18HuHXGudvZb5qMyDwj3aUv4+VlHP6XL2Qt2a y7pxkeJLL7u+w9S7HBsIHHmsvQYKxOpwtJqU5S7O9Pm398MYbhQQLBWiA0aHk3P6uF47 G9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u3d6uiA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si6242402edo.410.2021.03.25.18.23.00; Thu, 25 Mar 2021 18:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u3d6uiA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbhCZBVy (ORCPT + 99 others); Thu, 25 Mar 2021 21:21:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:43244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCZBVs (ORCPT ); Thu, 25 Mar 2021 21:21:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A3E2761A2D; Fri, 26 Mar 2021 01:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616721703; bh=as9lfFgV4XuY3YAN83h5LS2PkkRJHNNBOryPGMahbwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u3d6uiA4lOaJ3SjD2+BHhJnfl/ISiKpY88UwFM0Q2GVjLumusLC9TlN7iiTuoVZmA ums5J+cRcsFKuQk1jFcNcc8eAIxURe6A3Tvyee5jxrhYybIiHYBJGo/MFgHpaVBAup lSTyK/Gmtp7zHF15Kra2BmOz7Gc6VCtg1SCLA9p2FjKynlnt1O6WLk5K9Je5LChD0u aCRl24UcevvXalfNL/s/FRk/6HVUFgoq0GlVAMrD9d6KeuqvE0tHT6e4e/Zqjr+MIJ HAIIomqQPzpEX68j2PwoDv6f8OrJ5WkmPhJ4eoZ4GR2cvdqULMO2Cf6GYnIc/wN3HP hQw+hcfh0O0dA== Date: Thu, 25 Mar 2021 18:21:42 -0700 From: Jaegeuk Kim To: Sahitya Tummala Cc: Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] f2fs: allow to change discard policy based on cached discard cmds Message-ID: References: <1615886958-717-1-git-send-email-stummala@codeaurora.org> <3c453b72-892f-7044-2edd-224b82202608@huawei.com> <20210326011756.GE8562@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326011756.GE8562@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/26, Sahitya Tummala wrote: > Hi Jaegeuk, > > This latest v3 patch needs to be updated in f2fs tree. > The f2fs tree currently points to older version of patch. > > Please make a note of it. Ha, need more coffee. Thanks for pointing it out. :) > > Thanks, > Sahitya. > > On Tue, Mar 16, 2021 at 07:08:58PM +0800, Chao Yu wrote: > > On 2021/3/16 17:29, Sahitya Tummala wrote: > > >With the default DPOLICY_BG discard thread is ioaware, which prevents > > >the discard thread from issuing the discard commands. On low RAM setups, > > >it is observed that these discard commands in the cache are consuming > > >high memory. This patch aims to relax the memory pressure on the system > > >due to f2fs pending discard cmds by changing the policy to DPOLICY_FORCE > > >based on the nm_i->ram_thresh configured. > > > > > >Signed-off-by: Sahitya Tummala > > > > Reviewed-by: Chao Yu > > > > Thanks, > > -- > -- > Sent by a consultant of the Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.