SlideShare a Scribd company logo
1 of 19
Download to read offline
vNUMA in Xen 
Wei Liu & Elena U
mtseva 
Chicago { August 18, 2014
Agenda Motives History and status Design Problems Benchmark Future Work 
Agenda 
I Motives 
I History and status 
I Design 
I Problems 
I Preliminary benchmark results 
I Future work 
Chicago { August 18, 2014 vNUMA in Xen 2 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Motives 
I Cross NUMA node memory access is expensive 
I Need to avoid cross node memory access 
I Xen is NUMA aware 
I NUMA aware scheduling 
I NUMA aware guest memory placement 
I Operating system like Linux is NUMA aware 
I NUMA aware scheduling 
I NUMA aware memory allocation / migration 
I The missing bits 
I Memory layout information 
I CPU topology 
Chicago { August 18, 2014 vNUMA in Xen 3 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
History and status 
I PV vNUMA presented in Xen Summit 2010 by Dulloor Rao 
http://slidesha.re/1AXsFbu 
I HVM vNUMA patches posted by Andre Przywara circa 2010 
I Elena U
mtseva has been working on upstreamable PV 
vNUMA since 2013 
Chicago { August 18, 2014 vNUMA in Xen 4 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Design: PV and PVH 
I Toolstack puts enlightenment information in hypervisor 
I Guest memory allocation in accordance with enlightenment 
information 
I Guest retrieves enlightenment information via hypercall during 
boot up 
Chicago { August 18, 2014 vNUMA in Xen 5 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Design: PV and PVH 
Enlightenment information structure 
struct vnuma_info 
{ 
nr_vnodes; 
vdistance[nr_vnodes * nr_vnodes]; 
vcpu_to_vnode[nr_vnodes]; 
vnode_to_pnode[nr_vnodes]; 
vmemrange[nr_vnodes]; 
} 
Chicago { August 18, 2014 vNUMA in Xen 6 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Design: HVM 
I Toolstack puts enlightenment information in hypervisor 
I Toolstack arranges ACPI tables 
I Guest memory allocation in accordance with enlightenment 
information 
I Guest retrieves layout information via ACPI tables during boot 
up 
Chicago { August 18, 2014 vNUMA in Xen 7 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Problems: vNUMA and other features 
PV PVH HVM 
Ballooning Y Y* N 
PoD N/A ? N 
Chicago { August 18, 2014 vNUMA in Xen 8 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Problems: CPU topology 
Chicago { August 18, 2014 vNUMA in Xen 9 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark 
I Host 
I 2 sockets, 12 PCPUs, HT disabled 
I 36GB RAM, 2 NUMA nodes 
I NUMA balancing enabled 
I Guest 
I 12 VCPUs 
I 16GB RAM, 2 virtual NUMA nodes 
I vnodes mapped to dierent pnodes, vcpu pinned to pnode 
I NUMA balancing enabled 
I Benchmarks to run 
I Autonuma 
I SPECJBB 
I STREAM 
Chicago { August 18, 2014 vNUMA in Xen 10 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: Autonuma 
Chicago { August 18, 2014 vNUMA in Xen 11 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: Autonuma 
Chicago { August 18, 2014 vNUMA in Xen 12 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: Autonuma 
Chicago { August 18, 2014 vNUMA in Xen 13 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: SPECJBB 
Chicago { August 18, 2014 vNUMA in Xen 14 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: SPECJBB 
Chicago { August 18, 2014 vNUMA in Xen 15 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: STREAM 
Chicago { August 18, 2014 vNUMA in Xen 16 / 19
Agenda Motives History and status Design Problems Benchmark Future Work 
Benchmark: Conclusion 
I vNUMA improves performance for PV guest 
I vNUMA has weird result in SPECJBB for PVH guest, but 
other two benchmarks have good results 
Chicago { August 18, 2014 vNUMA in Xen 17 / 19

More Related Content

More from The Linux Foundation

More from The Linux Foundation (20)

XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
 
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote:  Unikraft Weather ReportXPDDS19 Keynote:  Unikraft Weather Report
XPDDS19 Keynote: Unikraft Weather Report
 
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
 
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
 
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, BitdefenderXPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
 
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
 
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making... OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, CitrixXPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
 
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
 
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
 
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&DXPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
 
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM SystemsXPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
 
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
 
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
 
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
 
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSEXPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
 
XPDDS19: Implementing AMD MxGPU - Jonathan Farrell, Assured Information Security
XPDDS19: Implementing AMD MxGPU - Jonathan Farrell, Assured Information SecurityXPDDS19: Implementing AMD MxGPU - Jonathan Farrell, Assured Information Security
XPDDS19: Implementing AMD MxGPU - Jonathan Farrell, Assured Information Security
 
XPDDS19: Support of PV Devices in Nested Xen - Jürgen Groß, SUSE
XPDDS19: Support of PV Devices in Nested Xen - Jürgen Groß, SUSEXPDDS19: Support of PV Devices in Nested Xen - Jürgen Groß, SUSE
XPDDS19: Support of PV Devices in Nested Xen - Jürgen Groß, SUSE
 
XPDDS19: Application Agnostic High Availability Solution On Hypervisor Level ...
XPDDS19: Application Agnostic High Availability Solution On Hypervisor Level ...XPDDS19: Application Agnostic High Availability Solution On Hypervisor Level ...
XPDDS19: Application Agnostic High Availability Solution On Hypervisor Level ...
 

Recently uploaded

Recently uploaded (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

XPDS14 - vNUMA in Xen - Wei Liu, Citrix

  • 1. vNUMA in Xen Wei Liu & Elena U
  • 2. mtseva Chicago { August 18, 2014
  • 3. Agenda Motives History and status Design Problems Benchmark Future Work Agenda I Motives I History and status I Design I Problems I Preliminary benchmark results I Future work Chicago { August 18, 2014 vNUMA in Xen 2 / 19
  • 4. Agenda Motives History and status Design Problems Benchmark Future Work Motives I Cross NUMA node memory access is expensive I Need to avoid cross node memory access I Xen is NUMA aware I NUMA aware scheduling I NUMA aware guest memory placement I Operating system like Linux is NUMA aware I NUMA aware scheduling I NUMA aware memory allocation / migration I The missing bits I Memory layout information I CPU topology Chicago { August 18, 2014 vNUMA in Xen 3 / 19
  • 5. Agenda Motives History and status Design Problems Benchmark Future Work History and status I PV vNUMA presented in Xen Summit 2010 by Dulloor Rao http://slidesha.re/1AXsFbu I HVM vNUMA patches posted by Andre Przywara circa 2010 I Elena U
  • 6. mtseva has been working on upstreamable PV vNUMA since 2013 Chicago { August 18, 2014 vNUMA in Xen 4 / 19
  • 7. Agenda Motives History and status Design Problems Benchmark Future Work Design: PV and PVH I Toolstack puts enlightenment information in hypervisor I Guest memory allocation in accordance with enlightenment information I Guest retrieves enlightenment information via hypercall during boot up Chicago { August 18, 2014 vNUMA in Xen 5 / 19
  • 8. Agenda Motives History and status Design Problems Benchmark Future Work Design: PV and PVH Enlightenment information structure struct vnuma_info { nr_vnodes; vdistance[nr_vnodes * nr_vnodes]; vcpu_to_vnode[nr_vnodes]; vnode_to_pnode[nr_vnodes]; vmemrange[nr_vnodes]; } Chicago { August 18, 2014 vNUMA in Xen 6 / 19
  • 9. Agenda Motives History and status Design Problems Benchmark Future Work Design: HVM I Toolstack puts enlightenment information in hypervisor I Toolstack arranges ACPI tables I Guest memory allocation in accordance with enlightenment information I Guest retrieves layout information via ACPI tables during boot up Chicago { August 18, 2014 vNUMA in Xen 7 / 19
  • 10. Agenda Motives History and status Design Problems Benchmark Future Work Problems: vNUMA and other features PV PVH HVM Ballooning Y Y* N PoD N/A ? N Chicago { August 18, 2014 vNUMA in Xen 8 / 19
  • 11. Agenda Motives History and status Design Problems Benchmark Future Work Problems: CPU topology Chicago { August 18, 2014 vNUMA in Xen 9 / 19
  • 12. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark I Host I 2 sockets, 12 PCPUs, HT disabled I 36GB RAM, 2 NUMA nodes I NUMA balancing enabled I Guest I 12 VCPUs I 16GB RAM, 2 virtual NUMA nodes I vnodes mapped to dierent pnodes, vcpu pinned to pnode I NUMA balancing enabled I Benchmarks to run I Autonuma I SPECJBB I STREAM Chicago { August 18, 2014 vNUMA in Xen 10 / 19
  • 13. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: Autonuma Chicago { August 18, 2014 vNUMA in Xen 11 / 19
  • 14. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: Autonuma Chicago { August 18, 2014 vNUMA in Xen 12 / 19
  • 15. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: Autonuma Chicago { August 18, 2014 vNUMA in Xen 13 / 19
  • 16. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: SPECJBB Chicago { August 18, 2014 vNUMA in Xen 14 / 19
  • 17. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: SPECJBB Chicago { August 18, 2014 vNUMA in Xen 15 / 19
  • 18. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: STREAM Chicago { August 18, 2014 vNUMA in Xen 16 / 19
  • 19. Agenda Motives History and status Design Problems Benchmark Future Work Benchmark: Conclusion I vNUMA improves performance for PV guest I vNUMA has weird result in SPECJBB for PVH guest, but other two benchmarks have good results Chicago { August 18, 2014 vNUMA in Xen 17 / 19
  • 20. Agenda Motives History and status Design Problems Benchmark Future Work Future Work I basic vNUMA support for all guest types I Dom0 vNUMA I address vNUMA compatibility issues with PoD and ballooning for HVM guest I address performance issue for PVH Chicago { August 18, 2014 vNUMA in Xen 18 / 19
  • 21. Thank you! Chicago { August 18, 2014 vNUMA in Xen 19 / 19