From patchwork Thu Aug 18 09:04:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mawupeng X-Patchwork-Id: 12946858 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CECFC3F6B0 for ; Thu, 18 Aug 2022 09:05:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243711AbiHRJFE (ORCPT ); Thu, 18 Aug 2022 05:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239794AbiHRJFD (ORCPT ); Thu, 18 Aug 2022 05:05:03 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 804E85A2CA; Thu, 18 Aug 2022 02:05:00 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4M7f5X4djvzlWHh; Thu, 18 Aug 2022 17:01:52 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 18 Aug 2022 17:04:57 +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; Thu, 18 Aug 2022 17:04:57 +0800 From: Wupeng Ma To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH -next 0/2] watermark related improvement on zone movable Date: Thu, 18 Aug 2022 17:04:28 +0800 Message-ID: <20220818090430.2859992-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: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Ma Wupeng The first patch cap zone movable's min wmark 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. 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 +- include/linux/mmzone.h | 4 +-- kernel/sysctl.c | 2 -- mm/page_alloc.c | 41 +++++++++++++++++++------ 5 files changed, 41 insertions(+), 14 deletions(-)