Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp93097pxk; Tue, 22 Sep 2020 20:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi0Vugb9PRqmLZwP7H0TlEYUpY+qy0cHotu1E52HLINek6q+odx3/2BYypWs7ZbQLS1yr1 X-Received: by 2002:a50:aa94:: with SMTP id q20mr7161792edc.119.1600830144845; Tue, 22 Sep 2020 20:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600830144; cv=none; d=google.com; s=arc-20160816; b=I/0v4CXMQLkXkgLZilHpj69ohgP1FE7a/eglwt1pCD472lUF0099d6pMTHysGNCWNk JdHMkoLk9ebpjTVVNCbuZ0btgWGTX+9n0DMTIeixWrMF6XLNBlNwRzNb0Tc2I4DI+Yab YJCQkIZDghSnKyDSWfiTlM35jslFZM+WCOLrEHVF0rUxkFbB5qmjyhhN7ZK+3r7jYv9u ulaOjl7Q8Y5UluhriZjPFnAeksei4rxg6bs4OP7p/OGx/eNetaxe/sSQwXuKQAC0c8sK KC3mD/3BRZG6N3SS6Q9gHtxSQA0nl90+sPcok+N3ZkXPYrS8cz7KTMPdDDD1mkZbiAq8 Zpmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HNLILPO9KGBr2EiE7fPnteeqqVFqeTm0/utbd5V0UfM=; b=xVIXnZU8XhWBLTShBGaTFYqYqTpMOo2uq/dbBTTl8K+HEKbz0yKZkZzkgXnojigD9A k0eHhvYvMM/UauT2S6+LNdngB/M8KIcN1uZFGxMGNbcVqmmpdQBSK5ruCuHcNRh6FaPh 0BhmSNBUnuODEFzRs/yghNlbuWs9rTHsDHUMvC9gBjnRfAv+JyKGHrBic+gMoO+m80fc ZiG6AOJc4hq5U2d71q5zci9lsF3JV84momfpL+PjtqY0yP+N0+3r5M0TnZ7yUnmrHzva /axZg4i1hWoNuEEhEQI2zznike8CWi7RY7Q/Y3rJjqix7/JJ7lX79W54sEYhsKd01djE bJsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=gpENJad7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh24si11748632ejb.283.2020.09.22.20.02.01; Tue, 22 Sep 2020 20:02:24 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=gpENJad7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbgIWCfm (ORCPT + 99 others); Tue, 22 Sep 2020 22:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbgIWCfm (ORCPT ); Tue, 22 Sep 2020 22:35:42 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7AAFC061755 for ; Tue, 22 Sep 2020 19:35:41 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id u8so20321366lff.1 for ; Tue, 22 Sep 2020 19:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HNLILPO9KGBr2EiE7fPnteeqqVFqeTm0/utbd5V0UfM=; b=gpENJad7aIY/S5kBL5o8YVttNP6P373hhEXKz6ErBwsU/D+zf22imm1nkW4ERBaSHD zpAbAVk6UoSZYDLYJDZkFGLPhDVWGMO30j0pUcW7h49Tryqf3NzJu4RZcL1iD02GoqA6 MG4REMrV1LplGXzEGHcMfLHjAQZ1DpNK4aAMFIQctSZ6kzBGbm0dg2ZTVSIvvckdxqRX A8p1DU39WBmIgc/L4nnjM4X9tMLRq8LvlGdaeOQbqxSz6Ff+SemO4COh6UTnhUpLf6VS txktKu+z0qVosUhE2kp0VE8x0/fTRFl8/cXeYa/Z0ziyNv7xI9D9QFTcZQvRCBscssRC /Uug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HNLILPO9KGBr2EiE7fPnteeqqVFqeTm0/utbd5V0UfM=; b=Mtgu7/b2UqYfdKCgOFnrVK96yYb8hAeQ9nQtnQ6vXXlrfHWZ0rT/67Ny4SvU88eFQU qCUaNoxpd/NT4Q7EHnAC6yl+PjrgkMTudnIOCCKsepHjfHlJk+lsLxAkMpZ5Nv3RJ2hF 0wD8TDArdE4VNYzR53fbLiA3/LaGvM9KVabirW7DPmsRlfz/o7AX4YS+dKMExrkseRmc nngSdHk5cT1BUh7X2j9ypnbHNMNsbxSiaL6v7zKvhfly0acDV5WzF9vt80O5LNMDPzQa qOmHGgaHpAlqEpK6+kwCu70RcV+nTgBmPE6CD9b+FGQEfKsipC9ByF2hDffNNPM21oPU 0x3w== X-Gm-Message-State: AOAM533/zprMCsw81XT60cp2narj9V74/gOEE3uUl+VOThaqh1z6uG6Y 5oVqFGfn5Z2/6pQTfGCbdNgz1mGzjIV2wuRKifleqA== X-Received: by 2002:a19:8789:: with SMTP id j131mr2439699lfd.90.1600828540307; Tue, 22 Sep 2020 19:35:40 -0700 (PDT) MIME-Version: 1.0 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> <20200922124344.GA34296@chrisdown.name> In-Reply-To: <20200922124344.GA34296@chrisdown.name> From: Chunxin Zang Date: Wed, 23 Sep 2020 10:35:29 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] mm/memcontrol: Add the drop_cache interface for cgroup v2 To: Chris Down 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 8:43 PM Chris Down wrote: > > 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 :-) Thanks for these suggestions, I will give it a try. Best wishes Chunxin