Master thesis : Load time memory deduplication for unikernels
Wansart, Emilien
Promotor(s) : Mathy, Laurent ; Gain, Gaulthier
Date of defense : 4-Sep-2023/5-Sep-2023 • Permalink : http://hdl.handle.net/2268.2/18163
Details
Title : | Master thesis : Load time memory deduplication for unikernels |
Author : | Wansart, Emilien |
Date of defense : | 4-Sep-2023/5-Sep-2023 |
Advisor(s) : | Mathy, Laurent
Gain, Gaulthier |
Committee's member(s) : | Fontaine, Pascal
Donnet, Benoît |
Language : | English |
Number of pages : | 73 |
Keywords : | [en] unikernel [en] virtualization [en] virtual machine [en] operating system [en] linux [en] memory deduplication |
Discipline(s) : | Engineering, computing & technology > Computer science |
Target public : | Researchers Professionals of domain Student |
Institution(s) : | Université de Liège, Liège, Belgique |
Degree: | Master en sciences informatiques, à finalité spécialisée en "computer systems security" |
Faculty: | Master thesis of the Faculté des Sciences appliquées |
Abstract
[en] Memory deduplication is a crucial technique in virtualized environments to optimize memory usage and enhance resource allocation. Unikernels, lightweight single-purpose virtual machine images, present unique challenges in memory management due to their specialized design. This thesis explores the intricacies of memory deduplication in unikernels and introduces the Daemonless Kernel Same-page Merging (DKSM) mechanism, a novel approach to memory deduplication tailored for unikernel environments.
The primary objective of this thesis is to develop a load-time memory deduplication technique for Unikraft unikernels in the Linux kernel. DKSM is an alternative to Red Hat’s Kernel Same-page Merging (KSM), but it focuses exclusively on merging read-only pages. This distinction allows DKSM to operate during unikernel startup, reducing the ever-present processing overhead found in KSM.
One of DKSM’s notable contributions is its mitigation of the slow convergence issue, an inherent limitation of KSM. DKSM also demonstrates better performance on long-lived unikernels, while benefiting from the same memory gain as KSM. Additionally, due to its daemonless nature, DKSM offers the advantage of operating without an additional processor core, making it more resource-efficient compared to the traditional KSM approach.
This thesis presents an in-depth analysis of Daemonless Kernel Same-page Merging’s implementation, its integration into the Linux kernel, and its validation through performance testing using unikernels executed within the Firecracker hypervisor. Results demonstrate DKSM’s efficiency in memory deduplication and its potential to improve memory utilization in unikernel environments. The study concludes by discussing limitations and potential avenues for future research.
File(s)
Document(s)
Annexe(s)
Cite this master thesis
The University of Liège does not guarantee the scientific quality of these students' works or the accuracy of all the information they contain.