Messages in this thread | | | Subject | Re: [PATCH v3] f2fs: allow to change discard policy based on cached discard cmds | From | Chao Yu <> | Date | Tue, 16 Mar 2021 19:08:58 +0800 |
| |
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@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Thanks,
| |