libgomp Optimizations for Scheduler Guided OpenMP Execution in Cloud VMs
GSoC submission introduces new environment variables to libgomp for paravirtualized OpenMP optimizations using eBPF-based Phantom Tracker.
This is a submission for a GSoC project focused on optimizing libgomp for cloud VMs. The project reimplemented Phantom Tracker using eBPF and introduced two new environment variables, GOMP_WAIT_POLICY and GOMP_DYNAMIC_POLICY, to enable paravirtualized OpenMP optimizations. The proposer plans to add performance evaluation results soon and is committed to addressing review feedback.
- proposer
Submits GSoC project deliverables, including eBPF-based Phantom Tracker and new environment variables for libgomp optimizations. Mentions that performance evaluation is forthcoming.
“The project had two main deliverables: reimplementing Phantom Tracker using eBPF and, building on this new implementation, introducing two new environment variables to libgomp, GOMP_WAIT_POLICY and GOMP_DYNAMIC_POLICY, to enable paravirtualized OpenMP optimizations guided by Phantom Tracker. One thing worth mentioning is that the current patch series does not yet include an evaluation section de…”
In Details
This submission details a GSoC project aimed at improving libgomp's performance within virtualized environments, particularly on oversubscribed cloud VMs. It leverages eBPF for host-level monitoring (Phantom Tracker) to inform libgomp's runtime decisions regarding thread synchronization (wait policy) and degree of parallelism (dynamic policy). This aims to mitigate performance degradation caused by independent host and guest OS scheduling.
- libgomp
- The GNU Offloading and Modular Parallelism (GOMP) library, which implements the OpenMP API for GCC.
- OpenMP
- An API that supports multi-platform shared-memory parallel programming of C, C++, and Fortran in the areas of high performance computing and embedded systems.
- Cloud VMs
- Virtual Machines running on cloud computing infrastructure, often subject to resource oversubscription and dynamic scheduling by the cloud provider.
- eBPF
- Extended Berkeley Packet Filter, a technology that allows sandboxed programs to be run in the Linux kernel without changing kernel source code or loading kernel modules. Used here for monitoring host scheduling.
- Phantom Tracker
- A system that monitors host scheduling decisions and vCPU preemption to provide paravirtualized scheduling metrics for guest VMs.
- GOMP_WAIT_POLICY
- A new environment variable for libgomp that allows customization of thread synchronization behavior (e.g., spin vs. block) based on host-side scheduling metrics.
- GOMP_DYNAMIC_POLICY
- A new environment variable for libgomp that enables dynamic adaptation of the degree of parallelism (number of threads) based on host-side scheduling metrics.