From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Down Subject: Re: [External] Re: [PATCH] mm/memcontrol: Add the drop_cache interface for cgroup v2 Date: Tue, 22 Sep 2020 13:43:44 +0100 Message-ID: <20200922124344.GA34296@chrisdown.name> References: <20200921080255.15505-1-zangchunxin@bytedance.com> <20200921081200.GE12990@dhcp22.suse.cz> <20200921110505.GH12990@dhcp22.suse.cz> <20200922095136.GA9682@chrisdown.name> <20200922104252.GB9682@chrisdown.name> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EZVYPQDM745h290MwDvoCECH4RGR18nCNuRmCWFdNCw=; b=u3lMp8TydI2QP6QNm/pAfrLJ7GK81BNOYZKPoUBMxHXf4Zv6JaWyqYjI6FQPcXhjzp 1zO/CvtrgtTa4Fi3WVskIRg9vs7l9p0r8mVyusxvjIvYBobSb98S1lsxHtK9IV8Sz0n5 D5Vu7pA2LMs/XlZnl0jLCRk7QR2nUmaVMGDC8= Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: Chunxin Zang Cc: Michal Hocko , Yafang Shao , Johannes Weiner , Vladimir Davydov , Andrew Morton , Tejun Heo , lizefan@huawei.com, Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , kafai@fb.com, Song Liu , Yonghong Song , andriin@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, Cgroups , linux-doc@vger.kernel.org, Linux MM , LKML , netdev , bpf@vger.kernel.org Chunxin Zang writes: >Please forgive me for not being able to understand why setting >memory.low for Type_A can solve the problem. >In my scene, Type_A is the most important, so I will set 100G to memory.low. >But 'memory.low' only takes effect passively when the kernel is >reclaiming memory. It means that reclaim Type_B's memory only when >Type_A in alloc memory slow path. This will affect Type_A's >performance. >We want to reclaim Type_B's memory in advance when A is expected to be busy. That's what kswapd reclaim is for, so this distinction is meaningless without measurements :-)