Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1270521imm; Wed, 19 Sep 2018 15:26:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYUmWArnO3dj3mtfuEjwjoNL5cQ9/jyyGpW2NEiE1m8bgRLFPD3walzF9i45vYUoDK6w1Mt X-Received: by 2002:a63:10c:: with SMTP id 12-v6mr33758360pgb.62.1537395986989; Wed, 19 Sep 2018 15:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537395986; cv=none; d=google.com; s=arc-20160816; b=OEhpIWr4w1eOk5YMbxroIvZCHigMQ/NJNL8TO6wvvlYaIx7MvSFs4C0g7evfF3Af5Q XEyPyiN9LrTkhpLPgDUsVA3QlHv+k80W1r6tetxUjSQwDBRW84ZqKjcIIlT/+ajy1ThG 16cNLTOZDK3Emq0LRoZdFD8U1JMb4KsQokN8qXXTPSptGMRVpDRMOI3xbGmQlS95FpJ6 qx8D2UJzX+kv86Js9rYEbNaAqszQ9/+0cYuHaue4l0N7vCd0D76/ngh3vyj33qIZw+sM xRvH4j7pLJlgS2oXqHQw1kMq3pAtbYMPevNXPZ2zzwVZH6ruNoPx7Td05MTmpNDq/Alf 4/zw== 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=KiZFjWzZJDLryMAvQ2RkMvDNWqAHKkwsHeYqumPhE4Y=; b=z2R+Rv6LNeEm2Q70nbxgXokttCagEHyoGpiCky58B4+OgRl7ksybrVldXpuhzL9ESf ss3MquzZd0eBU/1Ql7k//sm/+uczG+PTi4MLt4lrRziNgHk8cCQu+7vVXgF437HRR8pS N8zWB3NDNnKGVUzI3eMN6JIbDhU8hHK8rMDWE5z5CvVcejYdvRLuuK4C/BAlHfvB8Hf5 +U/vOYxJHNug/zMXiI4iXnmvqxk9PBV1GEdWR7HIJyc3WGtBnOOgFBTiU1vYrhy/qEAo wqPHHwTm5Fis6U7MyvD5bn7GB2JCExrh1vG0UZxaWpEpWFMxvV+Ox26/jrI3X7rWmx4t t94A== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si22498068pgi.328.2018.09.19.15.26.11; Wed, 19 Sep 2018 15:26:26 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbeITEGI (ORCPT + 99 others); Thu, 20 Sep 2018 00:06:08 -0400 Received: from mga06.intel.com ([134.134.136.31]:6642 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbeITEGH (ORCPT ); Thu, 20 Sep 2018 00:06:07 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 15:26:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,395,1531810800"; d="scan'208";a="84965431" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga003.jf.intel.com with ESMTP; 19 Sep 2018 15:24:27 -0700 Date: Wed, 19 Sep 2018 16:26:22 -0600 From: Keith Busch To: Dave Hansen Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kirill Shutemov , Dan Williams Subject: Re: [PATCH 0/7] mm: faster get user pages Message-ID: <20180919222621.GA29003@localhost.localdomain> References: <20180919210250.28858-1-keith.busch@intel.com> <40b392d0-0642-2d9b-5325-664a328ff677@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40b392d0-0642-2d9b-5325-664a328ff677@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 19, 2018 at 02:15:28PM -0700, Dave Hansen wrote: > On 09/19/2018 02:02 PM, Keith Busch wrote: > > Pinning user pages out of nvdimm dax memory is significantly slower > > compared to system ram. Analysis points to software overhead incurred > > from a radix tree lookup. This patch series fixes that by removing the > > relatively costly dev_pagemap lookup that was repeated for each page, > > significantly increasing gup time. > > Could you also remind us why DAX pages are such special snowflakes and > *require* radix tree lookups in the first place? Yeah, ZONE_DEVICE memory is special. It has struct page mappings, but not for online general use. The dev_pagemap is the metadata to the zone device memory, and that metadata is stashed in a radix tree. We're looking up the dev_pagemap in this path to take a reference so the zone device can't be unmapped.