Skip to main content
QUICK REVIEW

[Paper Review] PI : a Parallel in-memory skip list based Index

Zhongle Xie, Qingchao Cai|arXiv (Cornell University)|Jan 2, 2016
Distributed systems and fault toleranceComputer Science32 references4 citations
TL;DR

PI is a latch-free, parallel in-memory index built on a skip list data structure, designed for high scalability on multi-core systems. It uses batched query processing, SIMD acceleration, NUMA-aware partitioning, and workload redistribution to eliminate latches and achieve up to 3x higher query throughput than Masstree in in-memory database workloads.

ABSTRACT

Due to the coarse granularity of data accesses and the heavy use of latches, indices in the B-tree family are not efficient for in-memory databases, especially in the context of today's multi-core architecture. In this paper, we present PI, a Parallel in-memory skip list based Index that lends itself naturally to the parallel and concurrent environment, particularly with non-uniform memory access. In PI, incoming queries are collected, and disjointly distributed among multiple threads for processing to avoid the use of latches. For each query, PI traverses the index in a Breadth-First-Search (BFS) manner to find the list node with the matching key, exploiting SIMD processing to speed up the search process. In order for query processing to be latch-free, PI employs a light-weight communication protocol that enables threads to re-distribute the query workload among themselves such that each list node that will be modified as a result of query processing will be accessed by exactly one thread. We conducted extensive experiments, and the results show that PI can be up to three times as fast as the Masstree, a state-of-the-art B-tree based index.

Motivation & Objective

  • To address the poor scalability of B+-tree indices in in-memory, multi-core databases due to coarse-grained access and latch contention.
  • To explore skip lists as a more scalable alternative to B-trees for in-memory indexing in concurrent, many-core environments.
  • To design a high-performance, latch-free index that supports efficient point and range queries using SIMD and workload redistribution.
  • To optimize for NUMA architecure and cache locality to reduce memory access latency and improve throughput.

Proposed method

  • Queries are grouped into batches and processed in parallel across multiple threads to avoid latch contention.
  • Each query is traversed in a breadth-first manner using SIMD instructions to accelerate key comparisons and reduce memory access overhead.
  • A lightweight communication protocol dynamically redistributes query workloads to ensure each index node is accessed by only one thread, enabling latch-free updates.
  • The index is partitioned across NUMA nodes based on access patterns to minimize remote memory access latency.
  • High-level index nodes are grouped into entries to improve cache locality and enable efficient SIMD processing.
  • Prefetching and query grouping further reduce latency by overlapping memory access with computation.

Experimental results

Research questions

  • RQ1Can a skip list-based index outperform B+-tree variants like Masstree in in-memory, multi-core database workloads?
  • RQ2How does the use of SIMD and NUMA-aware partitioning affect the performance of a parallel in-memory index?
  • RQ3To what extent can latch-free query processing via workload redistribution improve scalability and throughput?
  • RQ4How does query skewness impact the performance of the proposed index compared to traditional B-tree indices?
  • RQ5What is the performance impact of combining optimizations such as prefetching, grouping, and SIMD on index throughput?

Key findings

  • PI achieves up to 3x higher query throughput than Masstree across all YCSB workloads, demonstrating superior scalability on multi-core systems.
  • The use of SIMD processing improves search query throughput by 1.3x and insert throughput by 1.0x compared to a baseline skip list.
  • NUMA-aware partitioning contributes a 1.2x performance gain for both search and insert queries by minimizing remote memory access.
  • Group query processing and prefetching provide incremental gains of 0.05x and 0.2x in search throughput, respectively.
  • The performance of PI remains stable under varying query skewness (zipfian parameter θ from 0 to 0.9), indicating robustness to workload skew.
  • Throughput degrades linearly with increasing range query granularity, but remains significantly higher than Masstree, especially for smaller datasets with better cache utilization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.