Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp90567imu; Wed, 19 Dec 2018 14:13:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVxwmUuQpZ2x7wTPGwVEO1cWg9b2waXqZAI1LEK/cTwHhVv7FIpEILnksB1BzYaB8A+aG8 X-Received: by 2002:a63:b94c:: with SMTP id v12mr4427586pgo.221.1545257632707; Wed, 19 Dec 2018 14:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545257632; cv=none; d=google.com; s=arc-20160816; b=Y6AVPh2ZDORiYrvku2827kymlOiu2NrJ/9xNV7fK6WzFVcRMq1rJUXpL+oxyvR/X6G GNxv6RmMZX7GrBnlIFWrqDQTrrBYdTl6IcQ3yX/3Ns/lloSxXQM5V441Z3itjHH8zIlI ODVXR7OnXfBn+JglWPE35IOJzdmEnru4vDE2P1EQondVLtFjkZFuthuPQhidQRJBPxvm TnXgLsfREF4Ok/VQbMr9kE9quA4zACyYqj+y0OpWy0eu1A1OmKJFAnJZepo/ejgZfdbr 4LSiIvWlf9v29T/rB6B/FqQt2HPn5KGiDZMNze7hQCOhtFOW+0X2dJBcPT5cHRVMU35P cY4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BKFUAPR4mb/TyLc/p5RCsQM4OspeTxLVgv/7OKQcEfE=; b=XmYXiH90MV9wuLjMNLK3/Jp/uAju62bq5UizqcIxrmGwJvWZOdG9pUcjtNVteS7rG8 MtSRjVhF7s9W0cOxXOEYGiBsPQ6tRu8sKxT5mZ2Q/IV6JiOXvivtZOs3mXen0uKzJCsu O40fMGTHWop/wn9NeZK0JvXghsRRnLliVuBacS6wBXH5phE6YLLvnxDvqGYLGzj84soc T9lgx05wCD+Gnx0r8nOOPv9bKWlXS3ivWMtpJh8hAg5vXM6FNLzcZVzvpOL16H66C4Hg Vw9Pn537WhIBRdi4hkcZJGURaUBjs9q3E0C4pMIdHFIdfkcM9LS80/KM/M1sPzW+H5hD T61w== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si17853259pfa.80.2018.12.19.14.13.36; Wed, 19 Dec 2018 14:13:52 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730368AbeLSUwT (ORCPT + 99 others); Wed, 19 Dec 2018 15:52:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:54244 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727644AbeLSUwS (ORCPT ); Wed, 19 Dec 2018 15:52:18 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BCFF4AEDB; Wed, 19 Dec 2018 20:52:16 +0000 (UTC) Date: Wed, 19 Dec 2018 21:52:15 +0100 From: Michal Hocko To: "prakash.sangappa" Cc: Steven Sistare , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dave.hansen@intel.com, nao.horiguchi@gmail.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, khandual@linux.vnet.ibm.com Subject: Re: [PATCH V2 0/6] VA to numa node information Message-ID: <20181219205215.GC5689@dhcp22.suse.cz> References: <1536783844-4145-1-git-send-email-prakash.sangappa@oracle.com> <20180913084011.GC20287@dhcp22.suse.cz> <375951d0-f103-dec3-34d8-bbeb2f45f666@oracle.com> <20180914055637.GH20287@dhcp22.suse.cz> <91988f05-2723-3120-5607-40fabe4a170d@oracle.com> <20180924171443.GI18685@dhcp22.suse.cz> <41af45a9-c428-ccd8-ca10-c355d22c56a7@oracle.com> <79d5e991-d9f6-65e2-cb77-0f999fa512fe@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Tue 18-12-18 15:46:45, prakash.sangappa wrote: [...] > Dave Hansen asked how would it scale, with respect reading this file from > a large process. Answer is, the file contents are generated using page > table walk, and copied to user buffer. The mmap_sem lock is drop and > re-acquired in the process of walking the page table and copying file > content. The kernel buffer size used determines how long the lock is held. > Which can be further improved to drop the lock and re-acquire after a > fixed number(512) of pages are walked. I guess you are still missing the point here. Have you tried a larger mapping with interleaved memory policy? I would bet my hat that you are going to spend a large part of the time just pushing the output to the userspace... Not to mention the parsing on the consumer side. Also you keep failing (IMO) explaining _who_ is going to be the consumer of the file. What kind of analysis will need such an optimized data collection and what can you do about that? This is really _essential_ when adding a new interface to provide a data that is already available by other means. In other words tell us your specific usecase that is hitting a bottleneck that cannot be handled by the existing API and we can start considering a new one. -- Michal Hocko SUSE Labs