From patchwork Fri Aug 19 09:30:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mawupeng X-Patchwork-Id: 12948609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56E9FC32774 for ; Fri, 19 Aug 2022 09:31:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21AFB8D0005; Fri, 19 Aug 2022 05:31:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A3BC8D0002; Fri, 19 Aug 2022 05:31:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01F898D0005; Fri, 19 Aug 2022 05:30:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E80378D0002 for ; Fri, 19 Aug 2022 05:30:59 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C0DE680A24 for ; Fri, 19 Aug 2022 09:30:59 +0000 (UTC) X-FDA: 79815823038.10.DE46ADF Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf03.hostedemail.com (Postfix) with ESMTP id 472AC20012 for ; Fri, 19 Aug 2022 09:30:58 +0000 (UTC) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4M8Gbh4hHfzXdhf; Fri, 19 Aug 2022 17:26:40 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 19 Aug 2022 17:30:54 +0800 Received: from localhost.localdomain (10.175.112.125) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 19 Aug 2022 17:30:53 +0800 From: Wupeng Ma To: CC: , , , , , , , , , , , , , , , Subject: [PATCH v2 0/2] watermark related improvement on zone movable Date: Fri, 19 Aug 2022 17:30:23 +0800 Message-ID: <20220819093025.105403-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660901458; a=rsa-sha256; cv=none; b=vAHsxNqI2FzCj3GgH32ZZS0hO1kkXkhF/RA5rk0gLf9vL9U+zVSHPv8046Qpb4B9uW2Lfx DM5H4qmGr4q0LfDnT+0CCiDokvZCF9xMLJjaQmOZAuO9o3DnypBPN030B93v6B53qwdpe2 j91yWnX7b5sk0WMAAMttXibp0iUeINo= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660901458; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=4e2xrwycBqg5ohEv1Dhs7FU0OSrnYzyfUERn7KS6brA=; b=oWzUjaMhH2k5NlDQ35iMnRYlGMrQDQY4UQW1dg7JGo+UhqEqFB91zqys7YY4dgy4EFOuXs z6c4yD34SF9TCBFovTaaFT1oiJCn2JlBil+jZt1aquphQEvY8ytzLtZOvmza46YgMgJ59V VKYaAJ5AbH+dEsqDEmxid3bEW54Loqk= X-Stat-Signature: nojtd7uay5x5f8cbkooc3kaher1egxxi X-Rspamd-Queue-Id: 472AC20012 X-Rspam-User: Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com X-Rspamd-Server: rspam11 X-HE-Tag: 1660901458-454670 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: From: Ma Wupeng The first patch cap zone movable's min watermark to small value since no one can use it. The second patch introduce a per zone watermark to replace the vanilla watermark_scale_factor to bring flexibility to tune each zone's watermark separately and lead to more efficient kswapd. Each patch's detail information can be seen is its own changelog. changelog since v1: - fix compile error if CONFIG_SYSCTL is not enabled - remove useless function comment Ma Wupeng (2): mm: Cap zone movable's min wmark to small value mm: sysctl: Introduce per zone watermark_scale_factor Documentation/admin-guide/sysctl/vm.rst | 6 ++++ include/linux/mm.h | 2 +- kernel/sysctl.c | 2 -- mm/page_alloc.c | 41 +++++++++++++++++++------ 4 files changed, 39 insertions(+), 12 deletions(-)