From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 617BA1FD4; Sat, 11 Jul 2026 03:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783741764; cv=none; b=F5MbHtUXcfWI311bflSWtEKcfykOGNuTxsRrIRziHRutcRwcMGlnwmEhraUY+C4Dk4QrKrA78Zizd+t+bwygXKek63FTe8Xdj7BFJCiI/JC9iq9ECFMfZhSJlUgab+sWWdDMt0k8KTgRZneIpb9RCZlUoE+vsVIyZse3VJBgkZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783741764; c=relaxed/simple; bh=3AeSIPFTHInpFBZex7sCRQVC5oe9krpzogwOZ2qz3KI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tXE14gxSa9gf1yAUz6mfVnupgBA3CRRReoHP2ZgaeYsJExPVrvOx0fTX4eNrTKYa+/VGUOh7DRKnxtSS2Ykei6oYl2VR172YvxhqabDiuJA84to6Quur//CIQV37rBnP3eUupFTjEHJDS3WUeNCQtQtG/X8gqSWMaTs7b+gMDq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=MqY76b6M; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MqY76b6M" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3AeSIPFTHInpFBZex7sCRQVC5oe9krpzogwOZ2qz3KI=; b=MqY76b6MbAqA/boBB3v5Q+UuUY +xaCarOav7d93r03GHytHuTX+u9FR6ey0PCLSmCnT97Pk+93F3MBLOURRTD4y4B5Hw8jRRExGJKu9 CFD5Ve3FADeTmdy0K7zVqXGZEXb2/na9TP3gBaQLhdkRP6QZTXYPkcvj8ZunJ4vSJnnJKom9XojmA sWXV0Egq+8Z2uGcX4j8XBNqLkGaaVMgTvd7gAJ29OZj0Pqv7/yzEgwa1L2j9fyHexLKmbTVS5907S bnHFPHWT5/uS5z0CG4ggS//HPPhk8hHerRZTzqJ88VSVdhKpQkvTtc1wjb+AaiM+3rLm3GKQqokXE vY7MdXNA==; Received: from willy by casper.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wiOiC-00000008aSw-1nnc; Sat, 11 Jul 2026 03:49:08 +0000 Date: Sat, 11 Jul 2026 04:49:08 +0100 From: Matthew Wilcox To: Yury Norov Cc: Eliot Courtney , Greg KH , Burak Emir , John Hubbard , Alice Ryhl , "Liam R . Howlett" , Andrew Ballance , Alexandre Courbot , Alistair Popple , Andreas Hindborg , Benno Lossin , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Boqun Feng , Daniel Almeida , Danilo Krummrich , David Airlie , Gary Guo , Miguel Ojeda , Onur =?iso-8859-1?Q?=D6zkan?= , Simona Vetter , Tamir Duberstein , Timur Tabi , Trevor Gross , Yury Norov , Zhi Wang , maple-tree@lists.infradead.org, linux-kernel@vger.kernel.org, nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH] lib: test bitmap vs Maple Tree performance for region allocations Message-ID: References: <20260711013910.349586-1-ynorov@nvidia.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260711013910.349586-1-ynorov@nvidia.com> On Fri, Jul 10, 2026 at 09:39:09PM -0400, Yury Norov wrote: > Compare the cost of allocating and freeing variable-sized regions using > a bitmap and a Maple Tree. Both implementations process the same randomly > generated sequence of region sizes, ranging from 1 to 32 entries, until > the configured capacity is exhausted. I'd suggest the IDA might be a better comparison than the maple tree. Essentially it's a sparse bitmap which plays some fun tricks to lower the cost. Eventually, I expect the IDA to be reimplemented on top of the maple tree data structure instead of the XArray.