Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2812052imm; Mon, 24 Sep 2018 10:17:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV62a3uRmmCwzFOHGHD1tsILEEEylR52+7By1/DkoWtCPmh0Qc8RezT4U/apm94Pg+gOWvkxs X-Received: by 2002:a63:d00b:: with SMTP id z11-v6mr10593102pgf.317.1537809464619; Mon, 24 Sep 2018 10:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537809464; cv=none; d=google.com; s=arc-20160816; b=Gt+6duwTZrt+rcfeaeTidwolWYN18UdCCsxWc1ARChQA6eYeocdpKkFmZR4O6Uwpuc WAksYx8/Nt/T61Q38dHgfphleBTTqptP3LEB5YMfzO6anMUUHgkRKXaoBCz2fUqkBYyS yzX73Lv8ezpt6wDr2tSdF40R83pPt6q/eryu0BQolINoYNWogOqVZjg7UDe5UVsq60EY IlDnr08yLy9mm8zEkUjuqZ5o3fZ3bjHtp3xbZIa1Uag/GxZMjz73hnWzBpGqUPDfJoJ2 6Fb3v6BmpuRyw8EDvaPtGuAzb8lP1PcOLQRIY0JYy1k1B3g/9ydN8D7ReJ3+3cgz5c1E DMnw== 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=npnlL3+NFZuyOfqGnXO0fC7iWoso5JEICsWEnPS1SOM=; b=YBdqXKoRZF38MHOqxOZP4oc/7aYhqR3u2oQsJBe7RmHn9fhGhaRLGsZ4A+IPECxe0d p6AMoq6uHqny2tpIZQj0y7ijIJv8lp/PhoSo4O4QWLkdEtPUlnyAd5AKnpay9ePspxqD iejGd4N4EfDaELTslh+PcodxLwVYm56cichMIy9YDoP4ve/Day//zKts8oCso5Zk1n+q h2SCrIezN651ey2G78jGhIoOFXz3QgMs3spzf6NRWQCmmx3VD0YbYBgJIbsN3iQNMinT T6ACF5OYfndEKWUGqJCBK7lruP4L2sVEefwalWsqgn4qpD3aEY3MwwTrSbFJ5W6+TjoD DxOg== 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 12-v6si6107378pgq.337.2018.09.24.10.17.28; Mon, 24 Sep 2018 10:17:44 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732970AbeIXXRy (ORCPT + 99 others); Mon, 24 Sep 2018 19:17:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:38400 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728758AbeIXXRx (ORCPT ); Mon, 24 Sep 2018 19:17:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5CCF0AD66; Mon, 24 Sep 2018 17:14:44 +0000 (UTC) Date: Mon, 24 Sep 2018 19:14:43 +0200 From: Michal Hocko To: Steven Sistare Cc: "prakash.sangappa" , 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: <20180924171443.GI18685@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91988f05-2723-3120-5607-40fabe4a170d@oracle.com> 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 Fri 14-09-18 12:01:18, Steven Sistare wrote: > On 9/14/2018 1:56 AM, Michal Hocko wrote: [...] > > Why does this matter for something that is for analysis purposes. > > Reading the file for the whole address space is far from a free > > operation. Is the page walk optimization really essential for usability? > > Moreover what prevents move_pages implementation to be clever for the > > page walk itself? In other words why would we want to add a new API > > rather than make the existing one faster for everybody. > > One could optimize move pages. If the caller passes a consecutive range > of small pages, and the page walk sees that a VA is mapped by a huge page, > then it can return the same numa node for each of the following VA's that fall > into the huge page range. It would be faster than 55 nsec per small page, but > hard to say how much faster, and the cost is still driven by the number of > small pages. This is exactly what I was arguing for. There is some room for improvements for the existing interface. I yet have to hear the explicit usecase which would required even better performance that cannot be achieved by the existing API. -- Michal Hocko SUSE Labs