9-11 September 2019
Europe/Lisbon timezone

Maple Tree

9 Sep 2019, 12:00
45m
Floriana-room-III (Corinthia Hotel Lisbon)

Floriana-room-III

Corinthia Hotel Lisbon

100
Kernel Summit talk Kernel Summit Track

Speaker

Mr Liam Howlett (Oracle)

Description

The Red-Black tree and Radix tree are used in many places in the kernel to store ranges. Both of these trees have drawbacks when used for ranges. The Red-Black tree requires writing your own insertion & search code. It is also designed with the assumption that memory accesses are cheap, which is no longer true. The Radix tree performs acceptably well when ranges are aligned to a power of 2, but has awful worst-case performance.

The Maple tree is a fast, cache efficient tree with a simple API. It supports contiguous ranges efficiently, while suffering only minor penalties for discontiguous ranges. Single entries are also supported as a range of length one.

The Maple tree can optionally track free ranges to allow for more efficient allocation. In order to allow it to be used as the basis for the page cache, it will need support for search marks as well as handling reclamation of shadow entries. Other potential users of the Maple tree want more than the three search marks currently supported by the Radix tree.

We want to discuss requirements with potential users of the Maple tree, and to present development since the last Plumbers conference where the broad outlines of the tree were first presented.

I agree to abide by the anti-harassment policy Yes

Primary author

Mr Liam Howlett (Oracle)

Co-author

Mr Matthew Wilcox (colleague)

Presentation Materials

Your browser is out of date!

Update your browser to view this website correctly. Update my browser now

×