Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13739018ybl; Sun, 29 Dec 2019 19:34:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzY1iEYcWUzMcnb5+vXkNIDWmm81qEh8/j558hAKqxvklRo2SdPTC7AK8ZXtP7uEUxqLZC8 X-Received: by 2002:a9d:23b5:: with SMTP id t50mr69006185otb.122.1577676842892; Sun, 29 Dec 2019 19:34:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577676842; cv=none; d=google.com; s=arc-20160816; b=jU7r57f3FRI7G5HkVcQBVXUc8SLBFdeefa3taBvt0BKOWhsmmyo9mHc/esJqFp1jgi thZFvjNdETvmbyrIXMK26WbNJfVZ9uZ/nJLOj/y0Om22ljV243lfxBHmfvP8VQK9zhFa /4APd7Ra7TFtedkYlw3EN+8GRLOH2bLrenq2GlkWwTu7O0jcQOl4FR20kiu/AQ4s7Zkm A8VA/cpSVAT1yJkR8TY2pWHOqhR19X18hA45bcKZAmujZS+c45PDGmo3ckrB37pOrddS nvFl2dplOJGLaJuiVGbFtQkVq840p2Q5+BGCCYnzWkuEn6bhQNGP0BKLZZ0VfNWODdDz F/GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=OJpfk1eavtgd9DH8ZHu/AFGBZ3T+nVEPdmW+uEQSuxw=; b=ufEtLmSE1V2+uSc8KP9t5J9tKiDRz3Zsc9XtcSQm2iTsA9Gupicljw6PTo4Hd7nIsa 0UDn+G27SeZ/hKXo/zdST08X1UGj7dm2ZMnzwI4/oWiv2DGLDIfpeO9c9MpskKNlm8Cv nP02MPJH1G3wDH04ZUM0sHAc6BoazS2Ovl2b8/UX0Lg/DRYxmFase/7bkqpYZR35c0DF 9svhMYpgghzf34RgFicSi+qWOlc+noPzZU72hDuOSXiKnb+X+zrH+kFhrC2dLCbj8bCu cimkg+3Sp3JJVddixet4Emj7B25bHpigLuGMsDD2kX4ZpOjtzFZrl4CGrIpHzogLIQnu ai0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si24117960otq.78.2019.12.29.19.33.51; Sun, 29 Dec 2019 19:34:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727136AbfL3Dcr convert rfc822-to-8bit (ORCPT + 99 others); Sun, 29 Dec 2019 22:32:47 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:54162 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbfL3Dcr (ORCPT ); Sun, 29 Dec 2019 22:32:47 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04427;MF=teawaterz@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0TmDf8Rf_1577676757; Received: from 127.0.0.1(mailfrom:teawaterz@linux.alibaba.com fp:SMTPD_---0TmDf8Rf_1577676757) by smtp.aliyun-inc.com(127.0.0.1); Mon, 30 Dec 2019 11:32:43 +0800 Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] mm: vmscan: memcg: Add global shrink priority From: teawater In-Reply-To: <20191229140240.GB612003@chrisdown.name> Date: Mon, 30 Dec 2019 11:32:36 +0800 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 Content-Transfer-Encoding: 8BIT Message-Id: <07AF5F95-23CB-4A7E-A9DA-8F67E22A7195@linux.alibaba.com> 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> <20191229140240.GB612003@chrisdown.name> To: Chris Down X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > ?? 2019??12??29?գ?22:02??Chris Down д???? > > 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 Thanks! Agree with you. Best, Hui