Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1943508imn; Mon, 1 Aug 2022 05:55:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR4nYrfm4JChK6E1YOmzS3PJqdTScjSY11v/qvfhJdRZq4CZzarZzZbVoaxxHK4Ofj1dNmTx X-Received: by 2002:a17:902:dac6:b0:16d:bdf5:7084 with SMTP id q6-20020a170902dac600b0016dbdf57084mr16539938plx.55.1659358512921; Mon, 01 Aug 2022 05:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659358512; cv=none; d=google.com; s=arc-20160816; b=I6dUGcKI4pDT7USETJ+expon0ZMwnxjos0bsXjgevkKWMLTYWaTp+o0qUFc1MPbzX+ 1BFMw6x5zl52oi/1S0WzFQkpTjvpm+uaBhpW73mCASXsPiVaabfTqGy3eMz5ykdcwmxo T8yppotjMuyh/FqQkb02Z3W009BtJV28n9t+kALdF+RwM/9lHyopm3e7/5I8CByhbwU+ zDTZcf6VzjNTEF15kQ3gnFEA8fWjtwlSFCcIbR37v58qpdL/9Qqdjefh3Rk1O9ElANA6 lglfq3OEDQVgBtHkpuhJnWVy9dCKbpjNI0avA2vrvDCeqBdgKSNhfAWwzHBeCVXy2iaW t7Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rYTN9YCGhgAb0pvlBWKJKxFzyrX5KxiMav1JmuhKTis=; b=lnkgARus4s11wVTrbfQ8UfIbSCTJ354RympbhwUO6ZZetMYPZFljZ481nUg0eZvVXt axmtjR1J4CTbCGDJroJcJ7NdjEq8yQ+sV7usxga1A+0mU50u0McwXW1qBK0VFXEUCWj8 LH6kWz9w9xP0lL+Gk/WJiTMj19CTU8UVBTuEi0yPQ1PUNiV/SZVJxEJF7VpcI0eZgr2H fE3nN+5ezguyptdyc9QuOEF8n2VCyhXh4tOHJGG/KZ9+qtLZ5HaNH71LkqvsnG/JfwAn Oz4XvL7eLs5RZ6Gv4N/p35Hy0Hm7rFYS+c1VuIClZ0lpDBn0glDXW/IdBY+FSrFMmvWs 55uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a17090322d200b0016d5fba1b26si13881910plg.98.2022.08.01.05.54.58; Mon, 01 Aug 2022 05:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234803AbiHAMi4 (ORCPT + 99 others); Mon, 1 Aug 2022 08:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234571AbiHAMiW (ORCPT ); Mon, 1 Aug 2022 08:38:22 -0400 Received: from out199-1.us.a.mail.aliyun.com (out199-1.us.a.mail.aliyun.com [47.90.199.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCBAE9EC71 for ; Mon, 1 Aug 2022 05:17:35 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=xhao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VL6DdII_1659356249; Received: from localhost.localdomain(mailfrom:xhao@linux.alibaba.com fp:SMTPD_---0VL6DdII_1659356249) by smtp.aliyun-inc.com; Mon, 01 Aug 2022 20:17:31 +0800 From: Xin Hao To: willy@infradead.org Cc: akpm@linux-foundation.org, adobriyan@gmail.com, keescook@chromium.org, xhao@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH V4 0/1] mm: add last level page table numa info to /proc/pid/numa_pgtable Date: Mon, 1 Aug 2022 20:17:26 +0800 Message-Id: <20220801121727.76186-1-xhao@linux.alibaba.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In many data center servers, the shared memory architectures is Non-Uniform Memory Access (NUMA), remote numa node data access often brings a high latency problem, but what we are easy to ignore is that the page table remote numa access, It can also leads to a performance degradation. So there add a new interface in /proc, This will help developers to get more info about performance issues if they are caused by cross-NUMA. V4 -> V3 1, Add some detects and spinlock when operating PMD page as Baolin Wang advised. V2 -> V3 1, Fix compile warning bug. V1 -> V2 1, As Matthew Wilcox advise, Simplify the code. 2, Do some codes format fix. V3: https://lore.kernel.org/linux-mm/20220801032704.64356-1-xhao@linux.alibaba.com/ V2: https://lore.kernel.org/linux-mm/20220731155223.60238-1-xhao@linux.alibaba.com/ V1: https://lore.kernel.org/linux-mm/YuVqdcY8Ibib2LJa@casper.infradead.org/T/ Xin Hao (1): mm: add last level page table numa info to /proc/pid/numa_pgtable fs/proc/base.c | 2 ++ fs/proc/internal.h | 1 + fs/proc/task_mmu.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) -- 2.31.0