From patchwork Fri Mar 26 09:44:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xunlei Pang X-Patchwork-Id: 12166145 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham 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 9924DC433E0 for ; Fri, 26 Mar 2021 09:45:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EE1B361A38 for ; Fri, 26 Mar 2021 09:45:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE1B361A38 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 F23396B0036; Fri, 26 Mar 2021 05:45:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DBD6C6B0072; Fri, 26 Mar 2021 05:45:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B73816B0071; Fri, 26 Mar 2021 05:45:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0210.hostedemail.com [216.40.44.210]) by kanga.kvack.org (Postfix) with ESMTP id 840446B0036 for ; Fri, 26 Mar 2021 05:45:04 -0400 (EDT) Received: from smtpin40.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 37B90180ACEF3 for ; Fri, 26 Mar 2021 09:45:04 +0000 (UTC) X-FDA: 77961541728.40.3340103 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by imf13.hostedemail.com (Postfix) with ESMTP id F1855E0001B4 for ; Fri, 26 Mar 2021 09:45:01 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R541e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=xlpang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UTMtOfu_1616751898; Received: from localhost(mailfrom:xlpang@linux.alibaba.com fp:SMTPD_---0UTMtOfu_1616751898) by smtp.aliyun-inc.com(127.0.0.1); Fri, 26 Mar 2021 17:44:58 +0800 From: Xunlei Pang To: Andrew Morton , Alexander Duyck , Mel Gorman Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Xunlei Pang Subject: [PATCH 0/4] mm/page_reporting: Some knobs and fixes Date: Fri, 26 Mar 2021 17:44:54 +0800 Message-Id: <1616751898-58393-1-git-send-email-xlpang@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Stat-Signature: 1ju5bbbqhcgqwwhawcydq1mt8951tzjy X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: F1855E0001B4 Received-SPF: none (linux.alibaba.com>: No applicable sender policy available) receiver=imf13; identity=mailfrom; envelope-from=""; helo=out30-132.freemail.mail.aliyun.com; client-ip=115.124.30.132 X-HE-DKIM-Result: none/none X-HE-Tag: 1616751901-848356 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000011, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Add the following knobs in PATCH 1~3: /sys/kernel/mm/page_reporting/reported_kbytes /sys/kernel/mm/page_reporting/refault_kbytes /sys/kernel/mm/page_reporting/reporting_factor Fix unexpected user OOM in PATCH 4. Xunlei Pang (4): mm/page_reporting: Introduce free page reported counters mm/page_reporting: Introduce free page reporting factor mm/page_reporting: Introduce "page_reporting_factor=" boot parameter mm/page_reporting: Fix possible user allocation failure Documentation/admin-guide/kernel-parameters.txt | 3 + include/linux/mmzone.h | 3 + mm/page_alloc.c | 6 +- mm/page_reporting.c | 268 ++++++++++++++++++++++-- 4 files changed, 260 insertions(+), 20 deletions(-)