Received: by 10.192.165.148 with SMTP id m20csp1582934imm; Thu, 3 May 2018 01:46:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoaOv2nfpFcmopHciRFAVyj4+pmbpOcIkLGSvQq//uVUYtaJ37PGSm/g1sirem1mNaUu/q2 X-Received: by 10.98.106.10 with SMTP id f10mr21894247pfc.99.1525337200723; Thu, 03 May 2018 01:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525337200; cv=none; d=google.com; s=arc-20160816; b=TjN7UjbtimoFVWMoxzGz7YRvvu/7jvRoQ+9c30Jd6KA+w4WBAMBJgRBzn4oGaf4ENE XuS08Oxt8zzttBWNY4GR73u94PT6otwvK4wBBCXtrVT1bHwlxhbRZ77W76Txo0H/CmtF yxIb5WiVV2F2WdUyDfwn9qEwn6CWv+hw7uLC45vOZW3j0ixd+ekPOu64sWEL9+6bDg+3 Ynv0M9AXqFR1gwTK39rGX6XNDD5MAH+5gGVxDi5TAkHQbLxT2DnNMQXvaGNA630r2O1v 9Huun8WhzRPvnSVfaIRxV+MAYW71ZsPpzP/YBoo8qHeDqFUI8rlDGyoICVGjK3Hp6VsO dv5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:from:cc:references:to :subject:arc-authentication-results; bh=edtybFm7+Xxc1KbZ7VAnSOHbPLrt6lyrkNrgTF6oFcs=; b=MFlUEsVlA/cWEfzAWbEtHyFwwwGtZtO5WBVmXRrNyamKI3w4imBsEAKaT8X15l9kyF 08deOQDWWEl3KNrqjC26C/rQKimmOMZKGufIAExaCe/yW5updHq6raDoy/iZHTRaYnz4 mTErM2zaFIhDcFZfek2s9P8bMTDgyqAIjDFcUwTHCo+Mfn7iPMEYc0Ig8tA1GZG/8lwF RUNdm1qw1DK43buQxenSxO3s4w0qSe/r8ypvyWfbmK2SAlgw1NBAw5ZjIy/35zrNvcyS 1tGpQCov+SXo/gbh/cJWd/lIsJ9xaxx3aMEIaA2OkuQxrOFtwK+6iC7nnrHrLXBy9Kte gRlg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22-v6si145834pll.393.2018.05.03.01.46.26; Thu, 03 May 2018 01:46:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751508AbeECIqR (ORCPT + 99 others); Thu, 3 May 2018 04:46:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52806 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751317AbeECIqN (ORCPT ); Thu, 3 May 2018 04:46:13 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w438hp8s113427 for ; Thu, 3 May 2018 04:46:13 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hquv3qyr1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 03 May 2018 04:46:12 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 3 May 2018 09:46:11 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 3 May 2018 09:46:06 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w438k6cc1180122; Thu, 3 May 2018 08:46:06 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA43AAE051; Thu, 3 May 2018 09:35:39 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 331B1AE045; Thu, 3 May 2018 09:35:37 +0100 (BST) Received: from [9.202.15.56] (unknown [9.202.15.56]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 3 May 2018 09:35:36 +0100 (BST) Subject: Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information To: Dave Hansen , Andrew Morton , Prakash Sangappa References: <1525240686-13335-1-git-send-email-prakash.sangappa@oracle.com> <20180502143323.1c723ccb509c3497050a2e0a@linux-foundation.org> <2ce01d91-5fba-b1b7-2956-c8cc1853536d@intel.com> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, mhocko@suse.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, drepper@gmail.com, rientjes@google.com, Naoya Horiguchi From: Anshuman Khandual Date: Thu, 3 May 2018 14:16:02 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <2ce01d91-5fba-b1b7-2956-c8cc1853536d@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18050308-0008-0000-0000-000004F27562 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050308-0009-0000-0000-00001E869A7C Message-Id: <33f96879-351f-674a-ca23-43f233f4eb1d@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805030083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/2018 03:58 AM, Dave Hansen wrote: > On 05/02/2018 02:33 PM, Andrew Morton wrote: >> On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa wrote: >>> For analysis purpose it is useful to have numa node information >>> corresponding mapped address ranges of the process. Currently >>> /proc//numa_maps provides list of numa nodes from where pages are >>> allocated per VMA of the process. This is not useful if an user needs to >>> determine which numa node the mapped pages are allocated from for a >>> particular address range. It would have helped if the numa node information >>> presented in /proc//numa_maps was broken down by VA ranges showing the >>> exact numa node from where the pages have been allocated. > > I'm finding myself a little lost in figuring out what this does. Today, > numa_maps might us that a 3-page VMA has 1 page from Node 0 and 2 pages > from Node 1. We group *entirely* by VMA: > > 1000-4000 N0=1 N1=2 > > We don't want that. We want to tell exactly where each node's memory is > despite if they are in the same VMA, like this: > > 1000-2000 N1=1 > 2000-3000 N0=1 > 3000-4000 N1=1 I am kind of wondering on a big memory system how many lines of output we might have for a large (consuming lets say 80 % of system RAM) VMA in interleave policy. Is not that a problem ?