eBPF-mm: Userspace-guided memory management in Linux with eBPF
Fuente:
arXiv
Guardado en:
| Autores principales: | , , |
|---|---|
| Formato: | Preprint |
| Publicado: |
2024
|
| Materias: | |
| Acceso en línea: | |
| Etiquetas: |
Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
|
| _version_ | 1866917778466799616 |
|---|---|
| author | Mores, Konstantinos Psomadakis, Stratos Goumas, Georgios |
| author_facet | Mores, Konstantinos Psomadakis, Stratos Goumas, Georgios |
| contents | We leverage eBPF in order to implement custom policies in the Linux memory subsystem. Inspired by CBMM, we create a mechanism that provides the kernel with hints regarding the benefit of promoting a page to a specific size. We introduce a new hook point in Linux page fault handling path for eBPF programs, providing them the necessary context to determine the page size to be used. We then develop a framework that allows users to define profiles for their applications and load them into the kernel. A profile consists of memory regions of interest and their expected benefit from being backed by 4KB, 64KB and 2MB pages. In our evaluation, we profiled our workloads to identify hot memory regions using DAMON. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2409_11220 |
| institution | arXiv |
| publishDate | 2024 |
| record_format | arxiv |
| spellingShingle | eBPF-mm: Userspace-guided memory management in Linux with eBPF Mores, Konstantinos Psomadakis, Stratos Goumas, Georgios Operating Systems Hardware Architecture We leverage eBPF in order to implement custom policies in the Linux memory subsystem. Inspired by CBMM, we create a mechanism that provides the kernel with hints regarding the benefit of promoting a page to a specific size. We introduce a new hook point in Linux page fault handling path for eBPF programs, providing them the necessary context to determine the page size to be used. We then develop a framework that allows users to define profiles for their applications and load them into the kernel. A profile consists of memory regions of interest and their expected benefit from being backed by 4KB, 64KB and 2MB pages. In our evaluation, we profiled our workloads to identify hot memory regions using DAMON. |
| title | eBPF-mm: Userspace-guided memory management in Linux with eBPF |
| topic | Operating Systems Hardware Architecture |
| url | https://arxiv.org/abs/2409.11220 |