Received: by 10.192.165.148 with SMTP id m20csp3722285imm; Mon, 7 May 2018 18:14:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqV9WCuON4wumyuPTpI4mwkrylltl2IsfATtGYz0HcWNlH109SP6WMxYfZm4XFaNrb2fP5N X-Received: by 2002:a65:65d1:: with SMTP id y17-v6mr26689719pgv.270.1525742088394; Mon, 07 May 2018 18:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525742088; cv=none; d=google.com; s=arc-20160816; b=nla+pakGNAsAn53OVNwRK3vZmOHuPGH+8jPRkul2X07ucqD97lTmTbioEGVkPXTBcP dcOYs5j6Bu9Z+ETnr1g9xvgHrEMr+RA9YNXiAiKJ63Np7ILQu9vj99oruSeK7BOQaZ5D ZYCD7UFiWUdOVQ/XzPThn5o6t8jkeB/AapstQtogTS/Rmpp1nxrlwCBxjJKyRH/Q1SUn IvMX+39lEMTI+lM1t09zor/O/J1Vj7oWOoQPr1hG2F9HwYEBfIaanjkXkZERgENlFTWi 0g0PfYedHJdw1JqRTSMRVgW/oyoBUy9KSvfErF/FZBVhIraswnSsB8GBlyGsElpJvzdY 2AAQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:to:references :subject:reply-to:dkim-signature:arc-authentication-results; bh=73fYBYwR6TGkA3do7YCNdoJak6t0W1sK6aRlI4+2cn8=; b=xNFlgJh2/KVFCsiXWCeYhjoZuPt+2xNbBgum2Jbq+URecWRVyBbLJi6YGiBkrAnqkB pgatP/SFyyHqsQlWvCi6dY+l4v95K6tRhryqfJNoZN6UnZxdbJjhR3AZvdk0MKuCpeeZ K/OFgaetlvFnXQRo0+PJCSla8zzA389jZeKZqw4O41Ve1zfRWP6LgHsseS9XQAzOyTSn vP/SIJ8S9+33TqWbYrn4TfxJxrwNIAPNWGITAXe4am0PYZUD5JI+MZoAMFIpearJmxuB xFq+57IhR7t+F7qaFP53SqeGPMN7Ku82Ta3ZbhKR0+ZzAOKAFCxvyD8zxyvSoPxzp92S jNzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=aZOM/QLj; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si23164403plm.153.2018.05.07.18.14.34; Mon, 07 May 2018 18:14:48 -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=@oracle.com header.s=corp-2017-10-26 header.b=aZOM/QLj; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753730AbeEHBOO (ORCPT + 99 others); Mon, 7 May 2018 21:14:14 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:47996 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753581AbeEHBOM (ORCPT ); Mon, 7 May 2018 21:14:12 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w481BYfQ110515; Tue, 8 May 2018 01:13:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=reply-to : subject : references : to : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=73fYBYwR6TGkA3do7YCNdoJak6t0W1sK6aRlI4+2cn8=; b=aZOM/QLjEK0bxml84XsKWXxapwd0Hh6Rdc3Z2oUjbSHCtQGJMfF1mAixfcocHse6NUh4 T/KLO3VH7hRjvj7/Jv3fsKfFU5P9Qf/slbPDpTAsgtoWxZgcQsVXExTAMyfROCJhND16 KvKegnDQOA29Kmouoh6Fmxh2TyjVPvC93ZhOSQtJ28aJDFNeOUx/exn7qFJuBVNZOZji BacXnrupDJ+wwhvvqo7AvMbAHDrYEFwzJDpIiLaaiXaWd8V35KfNQ+SnX4DIt3L1YLB1 cT9ycjyXqBCZD+UrI2AKXHlkUUAIqXXDNUxyO8Oc7TnXUNCh7+FDJpyWVvLreZl6d8tK 3A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2hs24sem1f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 08 May 2018 01:13:58 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w481Dv10011616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 May 2018 01:13:57 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w481DuQA008755; Tue, 8 May 2018 01:13:56 GMT Received: from [10.132.92.130] (/10.132.92.130) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 07 May 2018 18:13:56 -0700 Reply-To: prakash.sangappa@oracle.com Subject: Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information References: <1525240686-13335-1-git-send-email-prakash.sangappa@oracle.com> <20180502143323.1c723ccb509c3497050a2e0a@linux-foundation.org> <2ce01d91-5fba-b1b7-2956-c8cc1853536d@intel.com> <33f96879-351f-674a-ca23-43f233f4eb1d@linux.vnet.ibm.com> <82d2b35c-272a-ad02-692f-2c109aacdfb6@oracle.com> <8569dabb-4930-aa20-6249-72457e2df51e@intel.com> <51145ccb-fc0d-0281-9757-fb8a5112ec24@oracle.com> To: Dave Hansen , Anshuman Khandual , Andrew Morton 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: "prakash.sangappa" Message-ID: Date: Mon, 7 May 2018 18:16:13 -0700 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8886 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=776 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805080009 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/07/2018 05:05 PM, Dave Hansen wrote: > On 05/07/2018 04:22 PM, prakash.sangappa wrote: >> However, with the proposed new file, we could allow seeking to >> specified virtual address. The lseek offset in this case would >> represent the virtual address of the process. Subsequent read from >> the file would provide VA range to numa node information starting >> from that VA. In case the VA seek'ed to is invalid, it will start >> from the next valid mapped VA of the process. The implementation >> would not be based on seq_file. > So you're proposing a new /proc/ file that appears next to and is > named very similarly to the exiting /proc/, but which has entirely > different behavior? It will be /proc//numa_vamaps. Yes, the behavior will be different with respect to seeking. Output will still be text and the format will be same. I want to get feedback on this approach.