From patchwork Tue Mar 24 14:22:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 11455619 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29458159A for ; Tue, 24 Mar 2020 14:22:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EB680208CA for ; Tue, 24 Mar 2020 14:22:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="c5NN+lHy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB680208CA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EC7936B0008; Tue, 24 Mar 2020 10:22:57 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E9DF66B000A; Tue, 24 Mar 2020 10:22:57 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8D5F6B000C; Tue, 24 Mar 2020 10:22:57 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id C25726B0008 for ; Tue, 24 Mar 2020 10:22:57 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 9DF5C1C943 for ; Tue, 24 Mar 2020 14:22:57 +0000 (UTC) X-FDA: 76630472394.12.time61_711e731357b25 X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,bhe@redhat.com,,RULES_HIT:30012:30054:30075,0,RBL:63.128.21.74:@redhat.com:.lbl8.mailshell.net-62.18.0.100 64.10.201.10,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: time61_711e731357b25 X-Filterd-Recvd-Size: 2684 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Mar 2020 14:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585059776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=JCJHy18k9QJc+GlupAj+Hwcwpa9SELMxiXWh1QeV9l4=; b=c5NN+lHyAuEoqPOcxRgx/NUbQ94dLRWykAvEbVN2Sdmv+/ie4giJ4NQSGoKnmElRsLtXno ctZQp8uWefa06knVwygcBafJryJf5lTbNHelFll9vMsLVhZYxzzNVjLEJqZjQetzdcHgci OFc6TjZK51dpBbO2vwIedqVhfzt89Ho= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-160-ZVGxS3XOMIKJBlzaNmo8yg-1; Tue, 24 Mar 2020 10:22:36 -0400 X-MC-Unique: ZVGxS3XOMIKJBlzaNmo8yg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2F53B13F6; Tue, 24 Mar 2020 14:22:35 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-69.pek2.redhat.com [10.72.12.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE6015C1B2; Tue, 24 Mar 2020 14:22:31 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, hannes@cmpxchg.org, mhocko@kernel.org, vbabka@suse.cz, bhe@redhat.com Subject: [PATCH 0/5] improvements about lowmem_reserve and /proc/zoneinfo Date: Tue, 24 Mar 2020 22:22:24 +0800 Message-Id: <20200324142229.12028-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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: When tried to review below patchset from Joonsoo, I found out there's some space to improve about lowmem_reserve and /proc/zoneinfo printing. So made this patchset to do it. [PATCH v3 0/2] integrate classzone_idx and high_zoneidx http://lkml.kernel.org/r/1584693135-4396-1-git-send-email-iamjoonsoo.kim@lge.com Baoquan He (5): mm/page_alloc.c: only tune sysctl_lowmem_reserve_ratio value once when changing it mm/page_alloc.c: clear out zone->lowmem_reserve[] if the zone is empty mm/vmstat.c: do not show lowmem reserve protection information of empty zone mm/vmstat.c: move the per-node stats to the front of /proc/zoneinfo mm/vmstat.c: remove the useless code mm/page_alloc.c | 13 +++++++++++-- mm/vmstat.c | 44 +++++++++++++++++--------------------------- 2 files changed, 28 insertions(+), 29 deletions(-)