From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FB58C4727D for ; Wed, 23 Sep 2020 02:35:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C528920725 for ; Wed, 23 Sep 2020 02:35:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.b="gpENJad7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C528920725 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 176B36B0072; Tue, 22 Sep 2020 22:35:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 128BD6B0073; Tue, 22 Sep 2020 22:35:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 016446B0074; Tue, 22 Sep 2020 22:35:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0001.hostedemail.com [216.40.44.1]) by kanga.kvack.org (Postfix) with ESMTP id DD4A46B0072 for ; Tue, 22 Sep 2020 22:35:43 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C6347181AC9CC for ; Wed, 23 Sep 2020 02:35:42 +0000 (UTC) X-FDA: 77292760524.25.dirt41_4105b5127152 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id A30FC1804E3A0 for ; Wed, 23 Sep 2020 02:35:42 +0000 (UTC) X-HE-Tag: dirt41_4105b5127152 X-Filterd-Recvd-Size: 4515 Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Wed, 23 Sep 2020 02:35:42 +0000 (UTC) Received: by mail-lf1-f68.google.com with SMTP id x69so20296907lff.3 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=KMjZlu9Xll6SLOdth/Vd6yj0lhPqcRZyYZdVfX4fLUXuuDeKvDITembAy7wJYviWuD JS5FAEadgHqGtOOv8Id5LVgLwMVIQ7L0zkNU8VSzWIRBxy3Epk7bDMMjDH7iYxnSTO7i LPuBVunnby9ZGLClNmOrEW3A22gIn3sSsA4hWJpU5C1P/wdysC1fcFGgVQMhBsTbNDCi qeResT88T5oBzBl68CAO/camD1qR3sP4hLILPTcWbPUwwCMc6b90SYt4XdHrmTjjNHtE 07WlmSZ2ugCEZ9f50rXgYQth1FtFEqitSkO3Dkz7lHrzL1ZMiUqE3xxhfGdINLfjREcx qWYw== X-Gm-Message-State: AOAM531iTyclFMaGQmZBKpCAp3sG9M74gT50+O/mehojyucY8qCsJZAf MiN2W7ZnuTCilMxSakDNFNLhoi5hgIN4k7ipmAOvng== X-Google-Smtp-Source: ABdhPJxyzcM22PrIegi03Dy1GMhdk2CcQ8TxOfp4CD5IlwC/YoSTAHHbEzvDZ3zvZGe7TGoUuOqs4yQ/LKXQgaUQgH8= 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" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000011, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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