Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3332211ybb; Sun, 22 Mar 2020 21:52:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuWBpfY6/XhW8uF04XFkzeqOHoi/6zob8a6Y4qGglcXVX1+UEEQEHrVLMzEmJ6jC5X3npmP X-Received: by 2002:a9d:7cda:: with SMTP id r26mr16003625otn.64.1584939167246; Sun, 22 Mar 2020 21:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584939167; cv=none; d=google.com; s=arc-20160816; b=VK8ojuED2TcV2w0mmAdCzKDfGDHQl9XDo47+9GU5g0OndIKZnf6Re7dPTSLD26/2ZA NGy5kndxmM6tlHYw0elY7Khkpi8DgQ1Zmet8Yv4A3wzIlaTjCwxA769i+PKjM3c80H/D vtbXcrcf9cNGPuBGp/Nzn47Sl+VZRc6tJ3dcG2NoWqvFBvL06QPTqc7ucC04ycRf1I2F 07yCSCjL9w0j93zT2lhdzv9bAb7vx9A6DETxDtIL0USmYgqPS+iIt2/Gkk+y6d3Q2eHJ iPk71P4LpKicbAjxRZ9Vd9YwejY5YcJkGUm5T15xUH2ovUO6wbBNyxiCPDDYCuyrfk8n gxGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Y/459EwXnBvPbqygYeTsHrFpUlzAedqw1w+1NWhovRY=; b=AuXZazfWC0otmCrDkvcJV8U9OjIjcyjF0kKEL0l/8E201lFluAOy8fo+7gby8hyhJA ElVuPai2bsqy5LbtWZ1B0VnLnm6lXXUYjLCaNeb8Q5qYopFVXx+ykzr6yEC5MsIWQ1J/ /Lffqzl1ESltJTN+YMXUG7QapwatumOOaqhg6SZ0nhl9v3iHGCm4qKN/E2a1Ms+M/TMM cH/vZTmvvCvT0yL13yH1azOavrGf4AphiV4ZU+0ZsR1G7Zy8aZIzUwsL70sf1iME9t73 iVv53xdLuk8k0WwJtJqBlMuDecWSeZlIQb8bLUHLSI0vhp+O8f9r0yvJmNXSS2eoL7BJ fRxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="tVlWs/nV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y64si6949887oiy.12.2020.03.22.21.52.35; Sun, 22 Mar 2020 21:52:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="tVlWs/nV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725897AbgCWEtx (ORCPT + 99 others); Mon, 23 Mar 2020 00:49:53 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41796 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbgCWEtw (ORCPT ); Mon, 23 Mar 2020 00:49:52 -0400 Received: by mail-pg1-f194.google.com with SMTP id b1so6572734pgm.8 for ; Sun, 22 Mar 2020 21:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Y/459EwXnBvPbqygYeTsHrFpUlzAedqw1w+1NWhovRY=; b=tVlWs/nVHFjAm8J2CE1FECmJZQGp7Xh2vmJNNgf5wUWk4Ms7NQGd5CT7TDXZEZxHAc W+FgzMmlWK2HJODlIahQPm705O6/dwpJldotkNCrC9f61tr8b+ulnd1Omsgua0U84D0R qiOd4Beoc6wNDZWhcryPgDDhpDLB78x+tDKT3S9g9cpD49MX40TTDATB14Y765KKElIE rARADHvIFvY1h2c/TbtSmUn3Oa+T0Oz5gfPc2B8837IazW5YxhoNFnOoKq0bJmFWhrLv D/Hqk7cJO7J+rntkMZNl0XAHIANABpl5IXxrd7vQ5kWMbI/X5/GSWaIaY+0eNSKnlPJv xbug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Y/459EwXnBvPbqygYeTsHrFpUlzAedqw1w+1NWhovRY=; b=jU7oQnIcV3skEV0C+J/G+uQhY3+1cpnbg7VBYQQpKVSC/u0X0nG6UwjkW1j5mIbwjB evBhjNvhsas7Csi20bhNCoWjGvrZczqXei15NkOgSvJyzMtMXvCSF5FczxAOZo5ZB0TB JT9hpyAgQC921TRCL5G8Qc083IZ/LwQHu/+8Q8kq8z68KJGntevBIqgmQtbgfkOiT/Im TYPWNB+qqNULF3GreaPrZ3px5dokkNWx2PVcOiHbbtovQa4wSf72TlFdT9tZ0w8X33fU W4VntZpIFVb+7Cl28NLAskBtcLqoYRZcoRKQxuXkMqojuaHXJGGIzQaLbfkOSoMfo/dr hV0w== X-Gm-Message-State: ANhLgQ3c/FGQNqByYeSIacLT27VVGPjBuXDImqFcfkgDJT8YiJhsK0Bm UNkZfql2ZVyEZfUHYaOEoSrDzD3FY1g= X-Received: by 2002:a62:2b8a:: with SMTP id r132mr23767799pfr.56.1584938989309; Sun, 22 Mar 2020 21:49:49 -0700 (PDT) Received: from localhost.localdomain ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id c207sm11903982pfb.47.2020.03.22.21.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Mar 2020 21:49:48 -0700 (PDT) From: js1304@gmail.com X-Google-Original-From: iamjoonsoo.kim@lge.com To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Michal Hocko , Minchan Kim , Vlastimil Babka , Mel Gorman , kernel-team@lge.com, Ye Xiaolong , David Rientjes , Baoquan He , Joonsoo Kim Subject: [PATCH v4 0/2] integrate classzone_idx and high_zoneidx Date: Mon, 23 Mar 2020 13:49:30 +0900 Message-Id: <1584938972-7430-1-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joonsoo Kim Hello, This patchset is follow-up of the problem reported and discussed two years ago [1, 2]. The problem this patchset solves is related to the classzone_idx on the NUMA system. It causes a problem when the lowmem reserve protection exists for some zones on a node that do not exist on other nodes. This problem is reported two years ago, and, at that time, the solution got general agreements [2]. But, due to my laziness, it's not upstreamed. Now, I tried again. This patchset is based on next-20200317 git tree. Thanks. Changes on v4 - improve the commit message again Changes on v3 - improve the commit message - remove useless accessor, ac_classzone_idx() [1]: http://lkml.kernel.org/r/20180102063528.GG30397@yexl-desktop [2]: http://lkml.kernel.org/r/1525408246-14768-1-git-send-email-iamjoonsoo.kim@lge.com Joonsoo Kim (2): mm/page_alloc: use ac->high_zoneidx for classzone_idx mm/page_alloc: integrate classzone_idx and high_zoneidx include/linux/compaction.h | 9 ++-- include/linux/mmzone.h | 12 ++--- include/trace/events/compaction.h | 22 ++++---- include/trace/events/vmscan.h | 14 +++-- mm/compaction.c | 64 +++++++++++------------ mm/internal.h | 21 +++++--- mm/memory_hotplug.c | 6 +-- mm/oom_kill.c | 4 +- mm/page_alloc.c | 60 +++++++++++----------- mm/slab.c | 4 +- mm/slub.c | 4 +- mm/vmscan.c | 105 ++++++++++++++++++++------------------ 12 files changed, 175 insertions(+), 150 deletions(-) -- 2.7.4