Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

A Journey Through Supporting VMs with Dedicated CPUs on Kubernetes - Lecture

DevConf via YouTube

Overview

Explore a comprehensive journey through supporting virtual machines with dedicated CPUs on Kubernetes in this DevConf.CZ 2023 conference talk. Delve into the Kubernetes resource allocation model, including abstract concepts like resource requests, limits, and container QoS, and learn how these are converted to cgroup configurations. Discover the challenges of implementing true CPU pinning for VMs running on Kubernetes using Kubevirt, an add-on that enables cloud-native VM execution. Gain insights into Kubernetes and Cgroup resource allocation models, and understand how they can be further utilized. Examine the interactions between various technologies in the ecosystem, including Cgroups, KVM, libvirt, Kubevirt, and Kubernetes, through different use cases. Follow the speaker's journey in supporting dedicated CPUs for VMs, covering topics such as container basics, Cgroups, thread models, CPU allocation in Kubernetes, namespaces, and Kernel-based VMs. Analyze multiple attempts to support dedicated CPUs, including compute container approaches, emulator isolation, housekeeping methods, and dedicated-cpu cgroup solutions. Conclude with a summary of key takeaways and implications for improved collaboration between ecosystem technologies.

Syllabus

Intro
Introduction to Kubevirt
VMs with dedicated CPUs
What are containers?
Introduction to Cgroups
Threads model in v2
How is CPU allocation implemented in k8s?
Kubernetes CPU allocation: requests
Kubernetes and dedicated CPUs
Introduction to Namespaces
Sharing PID namespace in a Pod
A word about VM (Kernel-based VM)
st attempt to support dedicated CPUs
Inside the compute container
nd attempt: IsolateEmulatorThread
rd attempt: housekeeping approach
Problems with housekeeping approach
th attempt: emulator container approach
3rd attempt: dedicated-cpu cgroup approach
Summary & Takeaways

Taught by

DevConf

Reviews

Start your review of A Journey Through Supporting VMs with Dedicated CPUs on Kubernetes - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.