Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3899221pxk; Tue, 22 Sep 2020 05:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOkxg0z+5wngGjAT71daTOf6aZ6kbh/EU/O+/3GrlDHGF/sh9xcwX8vPuXqKjch7edpO6L X-Received: by 2002:a50:ec10:: with SMTP id g16mr3738684edr.214.1600778705858; Tue, 22 Sep 2020 05:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600778705; cv=none; d=google.com; s=arc-20160816; b=gkou+rWZSWyDXb7TaQuIYbBtOkoPnE0uFFHA29SArrZU3ez1nWkB6Z0f7KWF0rLwVX qOpaz2PiPqj0fCkFJF5VWPr2289i0+tj0VxMyfdOLnWDrFXDfKq8l8GY3J7nKPPDhkrv 7uXjG33UP/0+fzuiESzkT4wgJcDXE90phDLePQLtOyLjIROb4TUv95XHOqNu+sIFWh8s a87l9pALUkeuST/VHiTGDWUPcseV/KegqiuMSMawdMoz4lCg5hQLR7tDq8Zrt5DMnkyd KheLnUjV9GT1EIpWaSH2IF28dBvexLFr78HdvIfvDqes4SNmvHELYWdJ8CCEpMu3lcVM Shhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EZVYPQDM745h290MwDvoCECH4RGR18nCNuRmCWFdNCw=; b=C5KQX1tiwHYb8ks9wJ3psyz3LOC/95tGLyJT3thB4PJDkGPQfC1yKf8Bahz+Trdced W2BkJs0D2o0rHae8KVlNYEmIb6ai2kB4gFN1J407ufO1U2MBuT24qjZAJoOm6YU3DDD8 IvZ8yy0XCrwOZ4TTXWP9uQj3ca8b8pE1lwPigtXph18OlqFvcIpXS+Bd975CiuJPQn2Q 40lUMCWkLbBp9sKRqqmya9aFDOjHIWZ48TwKqr9B9fnlyYGE+t1z5kdoAybtRlbEbPss dWBMcgUsQLaq5wvBEV6EG4gbPNvI6WT1dJqoEYe9RsMaek/XX18jnE1n3kkw9aHV3C35 62JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=u3lMp8Ty; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si10618731ejq.262.2020.09.22.05.44.42; Tue, 22 Sep 2020 05:45:05 -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=@chrisdown.name header.s=google header.b=u3lMp8Ty; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgIVMns (ORCPT + 99 others); Tue, 22 Sep 2020 08:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbgIVMnr (ORCPT ); Tue, 22 Sep 2020 08:43:47 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E2BC0613D0 for ; Tue, 22 Sep 2020 05:43:47 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id i26so22598126ejb.12 for ; Tue, 22 Sep 2020 05:43:47 -0700 (PDT) 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= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EZVYPQDM745h290MwDvoCECH4RGR18nCNuRmCWFdNCw=; b=lBgEy7Ob4HWCP1i8uTSMb9GdtRHdOnUIWCfGhQP1e/c02ZX9qhLkinPrSrgZMqXyYS /D5xtkU9wmsape2e2aaaEhu+CWC7K3AbzguBvlRXAuAjROVJlezUawYV/mh+aHbWchle nFfIwvC49lw1hnG4HjcgtwQTux+CXuXWKlB0uOLW2N+iFeSbdUgfGZlqTU/iDV8KMqg/ Xzfrat+f/TnY9hmFlrf24iUOYvWUGfwT/8G+95e819bRBTtzBhHeyvzD/QZjm2dJ8kH3 WPe4MTv5KNvE2BH29A8eKnZNjansMAHtJ3PIHsGr7x6M+GyyiS0iuCKR1iJLqttszIOL X0Rw== X-Gm-Message-State: AOAM5304Q/MshRIoLu03+EGXF6y97AJkWbqf1IYYgyv2nlJ3CW5t99qF bK0O1JzllmPneo76AkqHSA0f4w== X-Received: by 2002:a17:907:408e:: with SMTP id nt22mr4584356ejb.169.1600778625780; Tue, 22 Sep 2020 05:43:45 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:e90b]) by smtp.gmail.com with ESMTPSA id v17sm11272766ejj.55.2020.09.22.05.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 05:43:45 -0700 (PDT) Date: Tue, 22 Sep 2020 13:43:44 +0100 From: Chris Down 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 Subject: Re: [External] Re: [PATCH] mm/memcontrol: Add the drop_cache interface for cgroup v2 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.7 (2020-08-29) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 :-)