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=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 246DDC2D0CE for ; Sun, 29 Dec 2019 14:14:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D135B20722 for ; Sun, 29 Dec 2019 14:14:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.b="QYExPAle" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D135B20722 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 54B768E0005; Sun, 29 Dec 2019 09:14:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FBBD8E0003; Sun, 29 Dec 2019 09:14:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C3D38E0005; Sun, 29 Dec 2019 09:14:46 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id 25CF28E0003 for ; Sun, 29 Dec 2019 09:14:46 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id AB4D4181AEF09 for ; Sun, 29 Dec 2019 14:14:45 +0000 (UTC) X-FDA: 76318374930.06.FC2AF26 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 812AC10062CE5 for ; Sun, 29 Dec 2019 14:02:44 +0000 (UTC) X-HE-Tag: slave52_17d80a1857238 X-Filterd-Recvd-Size: 4471 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Sun, 29 Dec 2019 14:02:43 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id 20so12235967wmj.4 for ; Sun, 29 Dec 2019 06:02:43 -0800 (PST) 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; bh=tVdSh5eigGfpfZbcGPOwFmTu1bT8ccSTdspsY1KsgDw=; b=QYExPAlecIZL1gnZxQC2xAYNOQMYgcCITRyrl9YRy7vqXB90bkcdXQ0PNNPKj+EfIY XbxHnw6z/MYyt8nlFYs49bKYSGMGMdpvYQ4QZkCFEDPLndQdvuyJElvqaxMHi909zBA1 Yn5uZ2Ws6avDpxFA76+O6cfBw5jIPVmBer4XQ= 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; bh=tVdSh5eigGfpfZbcGPOwFmTu1bT8ccSTdspsY1KsgDw=; b=d3cD9848wq3mLDprYF5VMHfqcUqJO4GpiueF/F+ee2aRkEA9R5cuIyxi/Pn4hI1xUA EhB/XmQAA9TyfdZ2c4wbXxURGtOBaJPJ5+nwQ5Qa9g3q0iXB1/HmGeFf7zfsfgEVsuZI cQr2kGUO5zQ1z+/QA1/yM08nrqqIHF6PI3aAblHI9GRNxlqpAuC4n75ZjR89JCePe+JI t7O4uT3WLjwR60DGvosMmPBk6aOHvd4xPOnHrjoTmeQLkxJ8uByuuE7wjqnwhJ8JMryw /ux1cegofKnP+d1/ylXYRVrUXHqWws6pjQjZ0S8jvbue143bNmwFOwKAWPTBMamx7UOb QeDg== X-Gm-Message-State: APjAAAUsem6sh99t1DcvShw9SFVlAVXzytM4PIHV/ozGedSyT7Q3wjOd 8xo8vk+7nU2MUvy3ocx02jnDBA== X-Google-Smtp-Source: APXvYqzNnjbex6gASub1IyimjZc4FxGDCLJz7YROfS76oah0trC8AF8rFLAB3RLixdYFxjp7xmhazg== X-Received: by 2002:a1c:5444:: with SMTP id p4mr28918356wmi.33.1577628162525; Sun, 29 Dec 2019 06:02:42 -0800 (PST) Received: from localhost ([185.69.145.27]) by smtp.gmail.com with ESMTPSA id d16sm44864362wrg.27.2019.12.29.06.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 06:02:41 -0800 (PST) Date: Sun, 29 Dec 2019 14:02:40 +0000 From: Chris Down To: teawater Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Roman Gushchin , Shakeel Butt , Yang Shi , tj@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: vmscan: memcg: Add global shrink priority Message-ID: <20191229140240.GB612003@chrisdown.name> References: <1576662179-16861-1-git-send-email-teawaterz@linux.alibaba.com> <20191218140952.GA255739@chrisdown.name> <25AA9500-B249-42C2-B162-2B8D4EE83BB0@linux.alibaba.com> <20191219112618.GA72828@chrisdown.name> <1E6A7BC4-A983-4C65-9DA9-4D3A26D4D31D@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1E6A7BC4-A983-4C65-9DA9-4D3A26D4D31D@linux.alibaba.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Hui, teawater writes: >In the memory-constrained and complex multitasking environment such as an Android system may require more complex performance priority. >For example, the tasks of app in the font, they need high priority because low priority will affect the user experience at once. >The tasks of app in background should have lower priority than the first one. And sometime, each app should have different priority. Because some apps are frequently used. They should have high priority than other background apps. >The daemons should have lower priority than background apps. Because most of them will not affect the user experience. In general I don't think it's meaningful to speculate about whether it would help or not without data and evidence gathering. It would really depend on how the system is composed overall. Is this a real problem you're seeing, or just something hypothetical? If there is a real case to discuss, we can certainly discuss it. That said, at the very least I think the API needs to be easier to reason about rather than just exposing mm internals, and there needs to be a demonstration that it solves a real problem and existing controls are insufficient :-) Thanks, Chris