Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6066885imm; Wed, 12 Sep 2018 16:03:40 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbo1io61YgyXFyXliBvwlUDX3Cjc5tEtKk+8NQsgTOrpCsLuO93KZrd5fbdYi5z28mucG2H X-Received: by 2002:a17:902:292b:: with SMTP id g40-v6mr4407524plb.223.1536793419951; Wed, 12 Sep 2018 16:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536793419; cv=none; d=google.com; s=arc-20160816; b=wZy5c0ZU8N5tLVSCUVewZ/Yi2i96f3B1pFSlOiVzEJJESnxsRzgqa0B7ywSCC53wI2 It+xlbk5XNTWzcsOVYYxllsqubRcIbtK0wyqnGMZyp46VM2emoSwP6rAwUo9VnmBDNZZ px9EFrBy7Fu6uY8WTHh/mivvaIjeBu/F7m1nEv3wgDkCK1V1W/wggyqN3wu1b0gZc8GU iJNx5fknBZ5dqza/iUk6oGQjdN/X2hO32ep3As785KvS2+tu76vQLsZ57OvMXQK/QV9m 3lwXuLyXx8ACy9pVTSWBuzFNV4DmpDAlHt/YV8SDXQXHvqzO+uKvqgmEEhWjA2bwyGam VpqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=XlolwNdnXfu08pxexsrWwZrtMYsBrJu8y6D5Jo0DqZs=; b=VafLTQ6a8rTqFloZVxF4yDkBibNXPjjSN+lpfJy2Vj2Wmns5U8XTVJt8BUXq4pfRHh xqhJYkshPER9P2MsKfF1wl5P8wRlNofQ0z4djR0ew/USDrf3tvWVuMg6qdEwgpskx8nj 1bhsnKO9vVMnH6LAPkRceU4EIjbWnI6i1U0723J4E+CRp0kR+lKaQp1mdiFaPnqQzjOu G8F/GFP4rBqQjL/bKRb6BNPGOASO1BFf1+KOgK2I78O+ai32+wyvOcOe+J9g2lW3kgb7 siUf3U2H2lJhDvIhjDb1H4H89+MVAWqTCKvJlXJGb0KJvsOd6He0I8WvimqU9VCe+TLC rP7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XQZJwS8v; 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 f15-v6si2377421pli.194.2018.09.12.16.03.24; Wed, 12 Sep 2018 16:03:39 -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=XQZJwS8v; 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 S1726589AbeIMEI5 (ORCPT + 99 others); Thu, 13 Sep 2018 00:08:57 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:42196 "EHLO mail-wr1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbeIMEI5 (ORCPT ); Thu, 13 Sep 2018 00:08:57 -0400 Received: by mail-wr1-f47.google.com with SMTP id v17-v6so3670169wrr.9 for ; Wed, 12 Sep 2018 16:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=XlolwNdnXfu08pxexsrWwZrtMYsBrJu8y6D5Jo0DqZs=; b=XQZJwS8v/d8DwGaDa5rN9HBhBTCUC93UDZ2JeMAl/wSOjIHY4ci33H4EQiA+gxP5m4 v0L3S7bXleGAeIlNexuXwBVnvZNuRh99CWpmzRpSVqSiyN5/5d9Jq7vVQHPnPqBL12YP vCzuq5S439fjaAx4lm3sqox6dD9KQKN2UsTHcaCfu7loYw4G7K36XY1+6GL5bFBdhRAF JiHnD88aZGfucLgxOjCQWj+NMQD1qddC3OB68LmcRGgllHVnctNeKZncBx5q2sjtaWkG yey2dXZQmcmokJwblImTac7J+AJTrdnALzSfJs6qMEXfLoQL+dS3V6nWtR6CyRqQfGHx 2uOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=XlolwNdnXfu08pxexsrWwZrtMYsBrJu8y6D5Jo0DqZs=; b=tDEsHerrpmbAnZSBAAchacsuVzeHVPzVnPj/9wxeTccbInCuPZiAtcaKq5lIR8QekQ eKmALOXKMh/IGpd+4+NwpD+lbNli+Rg1H0OarSBgr+cUgGrWNE2BOO5QMzfaZZ6uuCct O+GUK0ylNDGGMOEKSeF7XdBV11Cq7HoRDYRhVp8h5/kfwcqL0V5AQJ+qsBE7UZWyYpTm vlVVPiGiE8IJPO9RbY9cbv06kkMDXfNGoBeU6cwDg18b0fxE4l9TzomC+oCVABqYNxcD EhvCOXg3iarF5G9mJ1wKkR685crYjKQozEjWIywdgC9CVarPWOl6YOpmtsbhvxCrI556 7BGw== X-Gm-Message-State: APzg51ClPIBSjf3SpOrB3Evf/nemGUcreINmGhtyeDh21QBFtVwn8tOA M93Q2AHdJpVUj3MQDsj5CA== X-Received: by 2002:a5d:62c2:: with SMTP id o2-v6mr3427980wrv.83.1536793335209; Wed, 12 Sep 2018 16:02:15 -0700 (PDT) Received: from avx2 (nat4-minsk-pool-46-53-177-92.telecom.by. [46.53.177.92]) by smtp.gmail.com with ESMTPSA id h82-v6sm1600873wme.11.2018.09.12.16.02.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 16:02:14 -0700 (PDT) Date: Thu, 13 Sep 2018 02:02:12 +0300 From: Alexey Dobriyan To: prakash.sangappa@oracle.com Cc: linux-kernel@vger.kernel.org, mhocko@kernel.org, dave.hansen@intel.com, cl@linux.com, khandual@linux.vnet.ibm.com Subject: Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information Message-ID: <20180912230212.GA6567@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The /proc/pid/numa_vamaps shows mapped address ranges to numa node id > from where the physical pages are allocated. All these files make the problem with useless dentry and /proc/*/* inode instantiations worse (unlike top level /proc/* files which are tolerable). > +address-range numa-node-id > + > +00400000-00410000 N1 > +00410000-0047f000 N0 > +0047f000-00480000 N2 > +00480000-00481000 - > +00481000-004a0000 N0 > +004a0000-004a2000 - > +004a2000-004aa000 N2 > +004aa000-004ad000 N0 > +004ad000-004ae000 - 'N' is useless data. Parsing with awk won't work because field #3 is separated with space but field #2 with '-'. %08lx-%08lx kind of sucks: 32-bit get aligned data so parsing can be faster by pointing to &p[8+1] but not on 64-bit. If scanf("%lx-%lx") is used then leading zeroes are useless. Text is harder than it looks. Please in the name of everything holy add new honest system call.