SlideShare a Scribd company logo
Unikernels
Kubernetes
Security
OSv
Cloud
Redis
Benchmarks
Contents
# A small story
# What is the Unikernel?
# Is it easy or not to deploy our services?
# Redis Cluster Benchmark
OS
# Story
responsible for managing and coordinating the tasks
to proceed, as well resources allocation
Stack
# Story Users
Applications
Kernel
Hardware
OS
# Story
Server Model
# Story
Hardware
HYPERVISOR XEN, KVM etc.
Nikos Virtual Machine Virtual Machine Virtual Machine
Nikos now rent portions of the resources
Users
Application
Kernel
Hypervisor
# Story
responsible for managing and distributing hardware
resources to virtual machines and they offer
hardware virtualization.
Supervisor of Virtual Machines
Server Model
# Story
Hardware
HYPERVISOR is an OS e.g. Linux
Nikos Virtual Machine Virtual Machine Virtual Machine
Nikos now rent portions of the resources
Users
Application
KernelOS
Duplication
Containers
# Story
Better utilization less Virtual Machines with single OS
and multiple isolated Service Stacks
Hardware
HYPERVISOR XEN, KVM etc.
Containers
# Story
 Stand-Alone, executable package
 Includes only what our service need
 Isolated environment between containers
 e.g. development, staging, production
 Shared kernel e.g. Linux
Source: http://docker.com
Containers
# Story
Source: http://docker.com
Conclusion
# Story
 removing things that we don’t need e.g. libs
 we make sure we use shared resources
 e.g. containers, one Linux installation with multiple isolated
services.
there is a tendency to
get closer to the hardware and manage it efficient
# Unikernel
is an operating system which includes basic
hypervisor libraries + our service libraries
e.g. KVM libraries + Seastar framework.
Comparison
# Unikernels
Configuration
Application
Language Runtime
Threads
User Processes
Kernel
Hypervisor
Hardware
Hypervisor
Hardware
Configuration
Application
Unikernel Runtime
Classic OS Unikernel
What is?
# Unikernels
 Virtual Machine
 Runs only one process
 fork() will not work
 No Users
 => eliminate context switch
 No Shell (better security)
 Service has instant access to the virtual hardware
 Usually supports one language e.g. OCaml
 Fast Boot time.
 We don’t need to manage the hardware resources
 Small size (depends on design)
Unikernels
A specialized application image,
A custom built Virtual Machine.
Projects
LING
(Erlang)
2014
MirageOS
(OCaml)
2013
HalVM
(Haskel)
2008
RuntimeJS
(Javascript)
2015
Rumprun
(Ruby, GO, Python)
2015
IncludeOS
(C/C++)
2015
OSv
(anything)
2014
# Unikernels
Challenges
# Unikernels
 Orchestration Tools
 Debug Tools
 Libraries
 Languages Runtime
Appliances
# Unikernels
IoT / Embedded
W
Usages
Web services
Network Functions Virtualization
(NFV)
High-performance computing
(HPC)
# OSv  Written with C++
 POSIX support
 pThreads experimental
 TCP/IP Stack
 Network: Net Channels by Van Jacobson
 Linux Virtual File system
 Runs on XEN, KVM, VΒox, VMWare & ARM 64 bit
# OSv
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
Use Capstan for
the composition
Our .qemu
Image
Composing an application with OSv
Clone and Compile the
OSv base image
git clone https://github.com/cloudius-systems/osv.git &&
cd osv &&
sh ./scripts/build image=empty
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
gcc –c –fPIC –o foo.o foo.c &&
gcc –c –fPIC –o bar.o bar.c &&
gcc -shared –fPIC –Wl, -soname,libqux.so.1 – o libqux.so.1.5.0 foo.o bar.o -lc
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
Use Capstan for
the composition
capstan build –i fooImage –base=$OSV_IMG_LOCATION
&&
capstan run fooImage –e ./libqux.so
Composing an application with OSv
Clone and Compile
the OSv base image
Compile as shared
object
Use Capstan
for the
composition
Our .qemu
Image
Composing an application with OSv
Clone and
Compile the OSv
base image
Compile as
shared object
Use
Capstan for
the
composition
Our .qemu
Image
Source: www.mikelangelo-project.eu.
Composing an application with OSv
Clone and
Compile the OSv
base image
Compile as
shared object
Use
Capstan
for the
compositio
n
Our .qemu
Image
Source: www.mikelangelo-project.eu.
Redis
Redis an in memory “cache” store
# Benchmark
Redis
# Benchmark  Build Redis 3.x as a shared object
 Cluster Configuration
 Usage as mem-cache service
 Persist of storage requires fork()
 Benchmarking too
 redis-benchmark
 1, 2, 4 , 6 , 8, 10 concurrent client
Machine Specs 3 Machines x
CPU
2 vCPU -> 2.6 GHz Intel Xeon
E5
RAM
7.5Gb
Google Compute Engine
0,5 sec
Boottime
Redis
# Benchmark
33 32.5
33
36.8
36.375
42.2
30
30
27
29
32
38
0
5
10
15
20
25
30
35
40
45
50
1 2 4 6 8 10Time(sec)
Concurrent connected clients
Total benchmark time (sec) / No. Clients
UBUNTU OSV
Total execution time per concurrent clients
=> target 200.000 requests each client.
- 6sec faster
e.g. 4 concurrent clients
Redis
# Benchmark
5994
6023
5992
5321 5419
4701
6571 6611
7185
6565
6300
5556
0
1000
2000
3000
4000
5000
6000
7000
8000
1 2 4 6 8 10
Requests/sec
Concurrent connected clients
AVG Queries per sec. / No. Clients
UBUNTU OSV
AVG requests per concurrent connected clients
=> targeting 200.000 requests each.
+1193 qps
Redis
# Benchmark
e.g. 4 concurrent clients
Conclusion
 Tricky parts when we are in a POSIX-able unikernel
 Don’t assign many vCPUs
 NUMA is not well supported
 Notice the synchronous mmap() on a single process environment
 Usage of 0-copy feature when we can apply it
 OSv looks great as FAAS "container"
 Small size
 Small boot time
 Immutable potentially better security
 We need more mature ecosystem for the Unikernels
 Remote debugging
 Monitoring
 Orchestration tools
Are you interested?
 Learn more about Unikernels
 An Infrastructure with unikernels (Mikelangelo EU)
 OSv – Unikernel (Run Linux Services)
 http://osv.io/
 OSv - Examples:
 https://github.com/cloudius-systems/osv-apps
 Running OSv on Kubernetes (e.g. with Apache Spark)
Dive into
 UNIK
 The Unikernel Compilation and Deployment Platform
 Supported Unikernels
 OSv (Almost everything)
 Rumprun (Python Node.js, GOlang)
 IncludeOS (C++)
 MirageOS (OCaml)
 Run your first Java unikernel
 on Virtualbox with UniK
Dive into
Dive into
 UNIK
 The Unikernel Compilation and Deployment Platform
 Supported Provides
 Google Cloud
 Amazon Web Services
 Openstack
 Virtualbox
 vSphere
 QEMU
 UKVM
 XEN
 Photon Controller
Thank you

More Related Content

PDF
You Call that Micro, Mr. Docker? How OSv and Unikernels Help Micro-services S...
PPTX
The HaLVM: A Simple Platform for Simple Platforms
PPTX
Serverless technologies with Kubernetes
PDF
OSv presentation from Linux Foundation Collaboration Summit
PDF
DCSF 19 Accelerating Docker Containers with NVIDIA GPUs
PPTX
Unikernels
PDF
OSv at Cassandra Summit
PDF
Présentation d'Unikernel
You Call that Micro, Mr. Docker? How OSv and Unikernels Help Micro-services S...
The HaLVM: A Simple Platform for Simple Platforms
Serverless technologies with Kubernetes
OSv presentation from Linux Foundation Collaboration Summit
DCSF 19 Accelerating Docker Containers with NVIDIA GPUs
Unikernels
OSv at Cassandra Summit
Présentation d'Unikernel

What's hot (20)

PPTX
Microservices in Unikernels
PDF
KubeCon EU 2016: Killing containers to make weather beautiful
PDF
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
PDF
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
PDF
Secure your K8s cluster from multi-layers
PDF
Virtualization inside kubernetes
PPTX
Optimizing VM images for OpenStack with KVM/QEMU
PDF
Erlang on OSv
PPTX
Unikernels and Cloud Computing
PDF
Kubernetes 架構與虛擬化之差異
PDF
64-bit ARM Unikernels on uKVM
PDF
XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...
PDF
Docker Orchestration at Production Scale
PDF
Secure Containers with EPT Isolation
PDF
DevOps in AWS with Kubernetes
PDF
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
PDF
Making cloud native platform by kubernetes
ODP
Disk Performance Comparison Xen v.s. KVM
PDF
QEMU Disk IO Which performs Better: Native or threads?
PPTX
迎接嶄新的Windows容器叢集架構:Kubernetes
Microservices in Unikernels
KubeCon EU 2016: Killing containers to make weather beautiful
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
Secure your K8s cluster from multi-layers
Virtualization inside kubernetes
Optimizing VM images for OpenStack with KVM/QEMU
Erlang on OSv
Unikernels and Cloud Computing
Kubernetes 架構與虛擬化之差異
64-bit ARM Unikernels on uKVM
XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...
Docker Orchestration at Production Scale
Secure Containers with EPT Isolation
DevOps in AWS with Kubernetes
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Making cloud native platform by kubernetes
Disk Performance Comparison Xen v.s. KVM
QEMU Disk IO Which performs Better: Native or threads?
迎接嶄新的Windows容器叢集架構:Kubernetes
Ad

Similar to Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Architecture for the cloud (20)

PDF
Next Generation Cloud: Rise of the Unikernel V3 (UPDATED)
PDF
SCALE13x: Next Generation of the Cloud - Rise of the Unikernel
PDF
Unikernel User Summit 2015: The Next Generation Cloud: Unleashing the Power o...
PDF
CPOSC2014: Next Generation Cloud -- Rise of the Unikernel
PDF
The Next Generation Cloud: Unleashing the Power of the Unikernal
PPTX
Unik Slides
PDF
Lightning talk unikernels
ODP
Unikernels
PDF
CIF16: Unikernels: The Past, the Present, the Future ( Russell Pavlicek, Xen ...
PDF
OSCON: Unikernels and Docker: From revolution to evolution
PDF
OSAC16: Unikernel-powered Transient Microservices: Changing the Face of Softw...
PDF
Unikraft: Fast, Specialized Unikernels the Easy Way
PDF
Unikernels: in search of a killer app and a killer ecosystem
PPTX
Unik: Unikernel Backend to Cloud Foundry
PPTX
OSv: probably the best OS for cloud workloads you've never hear of
PDF
Docker Online Meetup #31: Unikernels
PPTX
Craft april17
PDF
Build, Ship and Run Unikernels
PDF
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
Next Generation Cloud: Rise of the Unikernel V3 (UPDATED)
SCALE13x: Next Generation of the Cloud - Rise of the Unikernel
Unikernel User Summit 2015: The Next Generation Cloud: Unleashing the Power o...
CPOSC2014: Next Generation Cloud -- Rise of the Unikernel
The Next Generation Cloud: Unleashing the Power of the Unikernal
Unik Slides
Lightning talk unikernels
Unikernels
CIF16: Unikernels: The Past, the Present, the Future ( Russell Pavlicek, Xen ...
OSCON: Unikernels and Docker: From revolution to evolution
OSAC16: Unikernel-powered Transient Microservices: Changing the Face of Softw...
Unikraft: Fast, Specialized Unikernels the Easy Way
Unikernels: in search of a killer app and a killer ecosystem
Unik: Unikernel Backend to Cloud Foundry
OSv: probably the best OS for cloud workloads you've never hear of
Docker Online Meetup #31: Unikernels
Craft april17
Build, Ship and Run Unikernels
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Electronic commerce courselecture one. Pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Spectroscopy.pptx food analysis technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Electronic commerce courselecture one. Pdf
MYSQL Presentation for SQL database connectivity
sap open course for s4hana steps from ECC to s4
Spectroscopy.pptx food analysis technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
A Presentation on Artificial Intelligence
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Architecture for the cloud

Editor's Notes

  • #32: Xaraktiristika tou GCE, kai posa nodes
  • #33: Artillery how it works. Shmeia / sec / Na valw velakia and eixnw mia tasi