Dynamic Index Management in Log-Structured Merge Storage

dc.contributor.authorNi, Mingkun
dc.date.accessioned2026-09-23T14:27:48Z
dc.date.issued2026-09-23
dc.date.submitted2026-09-09
dc.description.abstractMany modern key–value stores adopt Log-Structured Merge-trees (LSMs) to support high write throughput. A critical component of an LSM is the memtable, and its internal index structure (memtable type) affects system performance as the memtable serves all writes and a substantial fraction of reads. Existing systems are generally designed with a static memtable index structure. However, such a static design cannot adjust to workload shifts as it is unable to consider workload-dependent characteristics of different memtable types, leading to performance degradation. To address this shortcoming, we propose Dynamic Memtable Index Organization (DIO), a cost-driven framework that dynamically adapts the memtable type according to workload characteristics. DIO models query costs by dissecting queries into primitive memory operations, predicts the workload cost under multiple memtable types, and selects a memtable type that minimizes cost. DIO performs memtable (type) transitions at meaningful memtable lifecycle boundaries, enabling efficient adaptation with minimal disruption to system execution. DIO incorporates mechanisms for early workload-shift detection and on-the-fly memtable conversion, allowing the system to rapidly converge to the most suitable memtable type after workload changes. We implement DIO in RocksDB and show that, across diverse dynamic workloads, it improves post-transition throughput by up to several orders of magnitude over unmodified RocksDB with negligible runtime overhead.
dc.identifier.urihttps://hdl.handle.net/10012/24393
dc.language.isoen
dc.pendingfalse
dc.publisherUniversity of Waterlooen
dc.subjectlog-structured merge-tree
dc.subjectmemtable management
dc.subjectadaptive data structures
dc.subjectkey-value store
dc.subjectLSM tree
dc.subjectstorage engine
dc.subjectworkload adaptation
dc.subjectmemtable index
dc.titleDynamic Index Management in Log-Structured Merge Storage
dc.typeMaster Thesis
uws-etd.degreeMaster of Mathematics
uws-etd.degree.departmentDavid R. Cheriton School of Computer Science
uws-etd.degree.disciplineComputer Science
uws-etd.degree.grantorUniversity of Waterlooen
uws-etd.embargo.terms1 year
uws.contributor.advisorDaudjee, Khuzaima
uws.contributor.affiliation1Faculty of Mathematics
uws.peerReviewStatusUnrevieweden
uws.published.cityWaterlooen
uws.published.countryCanadaen
uws.published.provinceOntarioen
uws.scholarLevelGraduateen
uws.typeOfResourceTexten

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Mingkun_Ni.pdf
Size:
1.37 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
6.4 KB
Format:
Item-specific license agreed upon to submission
Description:

Collections