Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp129003imm; Thu, 13 Sep 2018 17:10:59 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3TV4u8qibjtX/Nz0a/+2XnCPzKQ+O4sD3b3OyzudGtmUMa420rwA9Zov1ZQTfEV/mGBgn X-Received: by 2002:a17:902:710c:: with SMTP id a12-v6mr9509575pll.310.1536883859298; Thu, 13 Sep 2018 17:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536883859; cv=none; d=google.com; s=arc-20160816; b=TJuUCQkspvrbYLp0k0ZcXiQwywrVwgO3fhw3NMTNfKpmGY0m1ah6fOEbu1f0tAkVzE 2wiFKTKnYgPu2a74eyjY74Hu4UOHLYipQAXQuYb8K0rxmiWRSB12IylipNNpo73aJjRO qB9yI6aE7Nooq1/djHBt6g34kXH4kjWtmH018cVwpubYEsJXr4T7H3hbA7SncVFUV8Ki qyB/LFb54miD0Pr2Pq+Ewh1uw3uHWRDJ1GA2esoFtdwZo9BGLP0wq5wCo8qyzvrKnVe5 lMPsei6kaThmJVfnCkyG1iJyURIGYW10AmEVX4fHGcTtMFIL9OhtRIInGtLXV1Rlp6Ev RUoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=w4l1CDPcsNGW2avQ+TjLgjrnWfAb84VsL92g4xR5UkE=; b=y38pab6AnIPoCOOkyLxQ9w+x+Aqarmm/9Bj6tezn2mG1l12M7V8F4/TWSu5Lo+cQyB i+gw1ZsuwHYEQ2yycLRumsYG3DvFt1FeMFlkTbkzfM8TZHMmcupSN376ttTA4SzuQlBT nd7Q/GuYvxAFNIjz6s2UXQ2EKSw/Te9Qw3wLIfceaTTdEVd0QVBbOVTHayvSNORNH6Mn iRbZrjlXhYpcj27oUfs5Of1u7UrfNvpkeFXns6JrzNALA6kSb+E0KWDnsuA28zDa7CYo krz3Z35bOtN/x18CK4Fkyn2vFFa+BH0nR1DqiBHbs1uJYgvhbTtSiT++gk0dOLFuvcXi GUjw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8-v6si5610133pgr.632.2018.09.13.17.10.43; Thu, 13 Sep 2018 17:10:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728169AbeINFWG (ORCPT + 99 others); Fri, 14 Sep 2018 01:22:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56782 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbeINFWG (ORCPT ); Fri, 14 Sep 2018 01:22:06 -0400 Received: from localhost.localdomain (c-24-4-154-175.hsd1.ca.comcast.net [24.4.154.175]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 42083C5C; Fri, 14 Sep 2018 00:10:18 +0000 (UTC) Date: Thu, 13 Sep 2018 17:10:16 -0700 From: Andrew Morton To: prakash.sangappa@oracle.com Cc: Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dave.hansen@intel.com, nao.horiguchi@gmail.com, kirill.shutemov@linux.intel.com, khandual@linux.vnet.ibm.com, steven.sistare@oracle.com Subject: Re: [PATCH V2 0/6] VA to numa node information Message-Id: <20180913171016.55dca2453c0773fc21044972@linux-foundation.org> In-Reply-To: <375951d0-f103-dec3-34d8-bbeb2f45f666@oracle.com> References: <1536783844-4145-1-git-send-email-prakash.sangappa@oracle.com> <20180913084011.GC20287@dhcp22.suse.cz> <375951d0-f103-dec3-34d8-bbeb2f45f666@oracle.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Sep 2018 15:32:25 -0700 "prakash.sangappa" wrote: > >> https://marc.info/?t=152524073400001&r=1&w=2 > > It would be really great to give a short summary of the previous > > discussion. E.g. why do we need a proc interface in the first place when > > we already have an API to query for the information you are proposing to > > export [1] > > > > [1] http://lkml.kernel.org/r/20180503085741.GD4535@dhcp22.suse.cz > > The proc interface provides an efficient way to export address range > to numa node id mapping information compared to using the API. > For example, for sparsely populated mappings, if a VMA has large portions > not have any physical pages mapped, the page walk done thru the /proc file > interface can skip over non existent PMDs / ptes. Whereas using the > API the application would have to scan the entire VMA in page size units. > > Also, VMAs having THP pages can have a mix of 4k pages and hugepages. > The page walks would be efficient in scanning and determining if it is > a THP huge page and step over it. Whereas using the API, the application > would not know what page size mapping is used for a given VA and so would > have to again scan the VMA in units of 4k page size. > > If this sounds reasonable, I can add it to the commit / patch description. Preferably with some runtime measurements, please. How much faster is this interface in real-world situations? And why does that performance matter? It would also be useful to see more details on how this info helps operators understand/tune/etc their applications and workloads. In other words, I'm trying to get an understanding of how useful this code might be to our users in general.