Re: [PATCH v3] f2fs: allow to change discard policy based on cached discard cmds

From: Sahitya Tummala
Date: Thu Mar 25 2021 - 21:19:15 EST


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.

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 <stummala@xxxxxxxxxxxxxx>
>
> Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>
>
> Thanks,

--
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.