Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933310AbdGSWyJ (ORCPT ); Wed, 19 Jul 2017 18:54:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38538 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932803AbdGSWyJ (ORCPT ); Wed, 19 Jul 2017 18:54:09 -0400 Date: Wed, 19 Jul 2017 15:54:07 -0700 From: Andrew Morton To: Davidlohr Bueso Cc: mingo@kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, jack@suse.cz, kirill.shutemov@linux.intel.com, ldufour@linux.vnet.ibm.com, mhocko@suse.com, mgorman@techsingularity.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v3 0/9] rbtree: Cache leftmost node internally Message-Id: <20170719155407.6002707adc68e8de833ffe49@linux-foundation.org> In-Reply-To: <20170629171553.2146-1-dave@stgolabs.net> References: <20170629171553.2146-1-dave@stgolabs.net> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 36 On Thu, 29 Jun 2017 10:15:44 -0700 Davidlohr Bueso wrote: > Changes from v2 (https://lkml.org/lkml/2017/6/8/857): > - Fixed 0day reported crash for drm_mm selftest program. We were > not correctly using the cached version of rbtree with the allocated > nodes. > - Added cfq patch to use internal rbtree caching. > - Added Christian's and Jan's reviews. > > Changes from v1 (https://marc.info/?l=linux-kernel&m=149611025616685): > - No longer rfc. > - Removed bogus semimcolon in rb_first_cached() > - Updated missing interval tree user drivers/infiniband/hw/hfi1/ > - Removed redundant @cached arg in when erasing a node. > - Added more patches that make use of rb_first_cached(), which I > thought might be worth it: procfs and epoll. > - Cc more people for patch 5, which touches drivers such as infiniband > and gpu. The rest of the changes are pretty covered with the current > Cc'ed maintainers and mm folks. > > Hi, > > Here's a proposal for extending rbtrees to internally cache the leftmost > node such that we can have fast overlap check optimization for all interval > tree users[1]. The benefits of this series are that: > > (i) Unify users that do internal leftmost node caching. That's nice. Except the series adds more lines than it removes. > (ii) Optimize all interval tree users. Was any attempt made to quantify the benefit? > (iii) Convert at least two new users (epoll and procfs) to the new interface. >