Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3993040imc; Thu, 14 Mar 2019 09:46:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0GHt2l+iMgHlqq02x2xXjxUde/zDtV8Ij5ghpvVAEqXamGY1115bN7kgSbti8yrarJo8k X-Received: by 2002:a62:fb04:: with SMTP id x4mr14983237pfm.83.1552581978018; Thu, 14 Mar 2019 09:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552581978; cv=none; d=google.com; s=arc-20160816; b=k9C9yqmbvWE9IQyr23wZK1W33ih0fn3KxJk/LSrBNdSsXwUkczJnScoAtkJEU5eGKb ORynQl0hsTLkdG6/8EhO9A03Cf/YFFI0OFzsA2DKSfBABSaFquN3bb1pVfbcmpYG+Rtx mpKyXVvknp/gUt4HeNa2/m2Jcw6DoiOOmdkCaIk3Cdks/QEP6CYaxYDgpNxd28HMNQko Czx6Bdu374tP0QxwJpDvAX7T4HsgEejTsAuvVMrludunzxYzrcAKivDtF+zzLW0NEjSC Joa1ciCGuApUWkSE/TjkYtOx0l2TtAv+bhkU9m42TsfMiD+kEIxjf/tBz1Ej6wnnZNik 8ugg== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=j3+cSXtcbpwvKI0AIoJ3mZijnYhBZ0fSqG5Jodf821I=; b=AmtjGDqPzPa/jesUPASFCk9xiN8T108L19X/g2e4736KtQpQipMaRzqDgZQe4YPw9/ E2nzCXwOMI3R2o8VsHXFvBJLHn/tZrGVjhf0JsF2FeguAFVSGkkVS8+OSycekzu93Ovh waoLYY8ribMyXwHlHo6SxOv3Yrb82x/OJnVqv9cPjYIY+Oyj8GXN2HMD+PzUup1ldEDD ApqE8qY94IC1fWq+7iuKzEO1t05viarVYor0IwkfRN3zqpiPD9Tsye0oaEM6D2xlljEv 8sgTgziz+RobzNUxrdeKTfSd4URedXQ2BqXTBh0mVbvS9nxkFuazV6/w47dZVBPdO3OC KswQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si13056493pgi.20.2019.03.14.09.46.02; Thu, 14 Mar 2019 09:46:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727399AbfCNQnu (ORCPT + 99 others); Thu, 14 Mar 2019 12:43:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:39660 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726564AbfCNQnu (ORCPT ); Thu, 14 Mar 2019 12:43:50 -0400 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 4C784AD78; Thu, 14 Mar 2019 16:43:49 +0000 (UTC) Date: Thu, 14 Mar 2019 09:43:43 -0700 From: Davidlohr Bueso To: Matthew Wilcox Cc: Laurent Dufour , lsf-pc@lists.linux-foundation.org, Linux-MM , linux-kernel@vger.kernel.org Subject: Re: [LSF/MM TOPIC] Using XArray to manage the VMA Message-ID: <20190314164343.owsgnldxk7qr363q@linux-r8p5> Mail-Followup-To: Matthew Wilcox , Laurent Dufour , lsf-pc@lists.linux-foundation.org, Linux-MM , linux-kernel@vger.kernel.org References: <7da20892-f92a-68d8-4804-c72c1cb0d090@linux.ibm.com> <20190313210603.fguuxu3otj5epk3q@linux-r8p5> <20190314023910.GL19508@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190314023910.GL19508@bombadil.infradead.org> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Mar 2019, Matthew Wilcox wrote: >It's probably worth listing the advantages of the Maple Tree over the >rbtree. I'm not familiar with maple trees, are they referred to by another name? (is this some sort of B-tree?). Google just shows me real trees. > > - Shallower tree. A 1000-entry rbtree is 10 levels deep. A 1000-entry > Maple Tree is 5 levels deep (I did a more detailed analysis in an > earlier email thread with Laurent and I can present it if needed). I'd be interested in reading on that. > - O(1) prev/next > - Lookups under the RCU lock > >There're some second-order effects too; by using externally allocated >nodes, we avoid disturbing other VMAs when inserting/deleting, and we >avoid bouncing cachelines around (eg the VMA which happens to end up >at the head of the tree is accessed by every lookup in the tree because >it's on the way to every other node). How would maple trees deal with the augmented vma tree (vma gaps) trick we use to optimize get_unmapped_area? Thanks, Davidlohr