Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4205920ybv; Mon, 10 Feb 2020 14:36:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxhMrxReW2VmtGuDQQzSkuHDpf+WF5z11xI41s2hG+xrLOeE3Bu3fOrRUCVOgqoS4B830He X-Received: by 2002:aca:534f:: with SMTP id h76mr939618oib.23.1581374173233; Mon, 10 Feb 2020 14:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581374173; cv=none; d=google.com; s=arc-20160816; b=GaIbHjvjammKp1GcqWIcmIq2Ur/ec90Ts4iXtK3b+aZvrfHbwxSB2w3JTVoicy+M9A 08RR58RkLl0/iDJnbSYYlrpLfw1FvcqOAMQaFIMbTxFgbipUv4Jjnmm2QUpKk79CoSnq 7VzgDbnrMQ7O5SmmQw+YtcMViZqAdxgm13k90ADL1gqrKMDYegminPpma2ciYpgRKfcK E0OuTMNCgit6T0yUjfe88A+sQSj32gfp7ydMjtAQfB5LgY62rxZzwQiZFbfYAvqPobsJ WaBwg4Jr/orNTM4Qmmcdb00ApLr24d8HHUr0/OFOER+Op588kWvhXFJG/ayTi1VspAtp 66gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Vuq7PIvFyG5/RiB84bEQInTIpmT2FEiyHxH6HlPJk8k=; b=ElpGoG2xPtP216A4UmyzuomxvGZdHYgYC4VAdYhgOLtG7SHCWNo/q4wiNzQMcKQ2aU Jn1MKhu3n5YS0JXuRr1chD0AkOFvOq3sPHveI4BiXLNXRCul1X67x3uBGt6W8o7ETU4Q f5Z8aXEEBbbohUlRRTeJAGDCvxO+ZSNfC5Zqmz8KRGqx0m8ocpr4owTXDMUFLWlG7fJa meIGO/4ChBvCVmu0kHv9nyAhS2JGrsgDQodwqL6PGmo96rZCuSKhFmBAnWfrhfBzXbWe BLQt9MSb17iSZ3sNhBJq156m0VlEAWvnMFmfdOcU3WTmYqRtoBWUlAEe+zdeNqM9+jTB yHyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="I3IdaBh/"; 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 t137si747609oif.61.2020.02.10.14.35.59; Mon, 10 Feb 2020 14:36:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b="I3IdaBh/"; 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 S1727490AbgBJWfs (ORCPT + 99 others); Mon, 10 Feb 2020 17:35:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:38468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbgBJWfr (ORCPT ); Mon, 10 Feb 2020 17:35:47 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E91792082F; Mon, 10 Feb 2020 22:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581374147; bh=82MflMcVGrmt5MUVdc81CJL6FsYuXLCsmLVCoby/PDA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I3IdaBh/8Z59OiKykBh+V8G/EgR798P7TPHUJGrBpd84Ff/TPO0S0VpOStU5xiec9 HH3/vLtUQ+LRx9b4atJDI6GHwGrBvRSj2OQujL9M/xSOe5L3JIfVPevKOQdrZKBg19 kjIpnVeFF7ypVxImosOnulkEEgUNmjdA/ludY4Po= Date: Mon, 10 Feb 2020 14:35:46 -0800 From: Andrew Morton To: Davidlohr Bueso Cc: linux-kernel@vger.kernel.org, mcgrof@kernel.org, broonie@kernel.org, alex.williamson@redhat.com Subject: Re: [PATCH -next 0/5] rbtree: optimize frequent tree walks Message-Id: <20200210143546.4491d9715f1c4a0a1de999ca@linux-foundation.org> In-Reply-To: <20200210155611.lfrddnolsyzktqne@linux-p48b> References: <20200207180305.11092-1-dave@stgolabs.net> <20200209174632.9c7b6ff20567853c05e5ee58@linux-foundation.org> <20200210155611.lfrddnolsyzktqne@linux-p48b> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Feb 2020 07:56:11 -0800 Davidlohr Bueso wrote: > On Sun, 09 Feb 2020, Andrew Morton wrote: > >Seems that all the caller sites you've converted use a fairly small > >number of rbnodes, so the additional storage shouldn't be a big > >problem. Are there any other sites you're eyeing? If so, do you expect > >any of those will use a significant amount of memory for the nodes? > > I also thought about converting the deadline scheduler to use these, > mainly benefiting pull_dl_task() but didn't get to it and I don't expect > the extra footprint to be prohibitive. > > > > >And... are these patches really worth merging? Complexity is added, > >but what end-user benefit can we expect? > > Yes they are worth merging, imo (which of course is biased :) > > I don't think there is too much added complexity overall, particularly > considering that the user conversions are rather trivial. And even for > small trees (ie 100 nodes) we still benefit in a measurable way from > these optimizations. > Measurable for microbenchmarks, I think? But what benefit will a user see, running a workload that is cared about?