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.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 BE42EC2D0C0 for ; Mon, 30 Dec 2019 03:32:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 72CE6207FD for ; Mon, 30 Dec 2019 03:32:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72CE6207FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3B9108E0005; Sun, 29 Dec 2019 22:32:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 36A228E0003; Sun, 29 Dec 2019 22:32:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 281598E0005; Sun, 29 Dec 2019 22:32:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0057.hostedemail.com [216.40.44.57]) by kanga.kvack.org (Postfix) with ESMTP id 13D788E0003 for ; Sun, 29 Dec 2019 22:32:50 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id A20B140CA for ; Mon, 30 Dec 2019 03:32:49 +0000 (UTC) X-FDA: 76320386058.01.help49_6fdf36bf1ec35 X-HE-Tag: help49_6fdf36bf1ec35 X-Filterd-Recvd-Size: 3311 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Dec 2019 03:32:48 +0000 (UTC) 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: quoted-printable 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) 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: > =D4=DA 2019=C4=EA12=D4=C229=C8=D5=A3=AC22:02=A3=ACChris Down = =D0=B4=B5=C0=A3=BA >=20 > Hi Hui, >=20 > 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. >=20 > 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? >=20 > 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 :-) >=20 > Thanks, >=20 > Chris Thanks! Agree with you. Best, Hui=