32
1 Introduction to the NI Real-Time Hypervisor

Introduction to Real-Time Virtualization (Hypervisor)

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Real-Time Virtualization (Hypervisor)

1

Introduction to the

NI Real-Time Hypervisor

Page 2: Introduction to Real-Time Virtualization (Hypervisor)

Agenda

1) NI Real-Time Hypervisor overview

2) Basics of virtualization technology

3) Configuring and using Real-Time Hypervisor systems

4) Performance and benchmarks

5) Case study: aircraft arrestor system

Page 3: Introduction to Real-Time Virtualization (Hypervisor)

NI Real-Time Hypervisor Overview

Page 4: Introduction to Real-Time Virtualization (Hypervisor)

NI Real-Time Hypervisor

• Run NI LabVIEW Real-Time

and Windows XP in parallel

• Partition I/O devices, RAM,

and CPUs between OSs

• Uses virtualization

technology and Intel VT

NI Real-Time Hypervisor

Windows XP LabVIEW Real-Time

I/O RAM CPUs

Page 5: Introduction to Real-Time Virtualization (Hypervisor)

Benefits of the Real-Time Hypervisor

• Capability: make use of real-time processing and

Windows XP services

Applications

Graphics

Services

Determinism

Real-Time I/O

Timing

Page 6: Introduction to Real-Time Virtualization (Hypervisor)

Benefits of the Real-Time Hypervisor

• Consolidation: reduce hardware costs, wiring,

and physical footprint

Virtualized System with NI Real-Time Hypervisor

Page 7: Introduction to Real-Time Virtualization (Hypervisor)

Benefits of the Real-Time Hypervisor

• Efficiency: take advantage of multicore

processors effectively

Quad-Core Controller with Virtualization

Windows XP LabVIEW Real-Time

Page 8: Introduction to Real-Time Virtualization (Hypervisor)

Basics of Virtualization Technology

Page 9: Introduction to Real-Time Virtualization (Hypervisor)

What Is Virtualization?

• The term: refers to abstraction of OSs from hardware

resources

• In practice: running multiple OSs simultaneously on a

single computer

Page 10: Introduction to Real-Time Virtualization (Hypervisor)

Virtualization Software Architectures

• Software: virtual machine monitor (VMM) or Hypervisor

• Two main variations: hosted and bare-metal

Hosted (VMWare) Bare-Metal (NI Real-Time Hypervisor)

Page 11: Introduction to Real-Time Virtualization (Hypervisor)

How Does Virtualization Software Work?

• OSs are “unaware” of being virtualized

• Hypervisor is called only when needed

• Various mechanisms for calling the hypervisor (hardware

assist with Intel VT or binary translation)

Hypervisor goal: facilitate simultaneous operation of OSs and

protect access to shared system resources

Page 12: Introduction to Real-Time Virtualization (Hypervisor)

Example: Accessing Shared I/O Devices

Note: NI Real-Time Hypervisor does not typically do this;

devices are partitioned rather than shared

Hypervisor

SoftwareOS 1

Intel VT

OS 2

Shared Device

(Disk)

Kernel Driver

CPU

• OS 2 attempts to transfer data to disk

• Processor with Intel VT calls hypervisor

• Hypervisor writes to disk using its own driver

Page 13: Introduction to Real-Time Virtualization (Hypervisor)

Example: Accessing Partitioned I/O Devices

NI Real-Time

HypervisorWindows

Intel VT

LabVIEW

Real-Time

DAQ

Board

Driver

CPU

• NI Real-Time Hypervisor allows OSs to communicate

directly with partitioned I/O boards

Driver

Ethernet

Board

Page 14: Introduction to Real-Time Virtualization (Hypervisor)

Configuring and Using Real-Time

Hypervisor Systems

Page 15: Introduction to Real-Time Virtualization (Hypervisor)

Using NI Real-Time Hypervisor Systems

• Configuration: NI Real-Time Hypervisor

Manager

• Communication: virtual Ethernet and virtual

console

• Development and Deployment: similar to

traditional real-time systems

Page 16: Introduction to Real-Time Virtualization (Hypervisor)

Assigning I/O and RAM between OSs

Page 17: Introduction to Real-Time Virtualization (Hypervisor)

Demo: Configuring a Real-Time

Hypervisor System

Page 18: Introduction to Real-Time Virtualization (Hypervisor)

Booting Into the Hypervisor

Page 19: Introduction to Real-Time Virtualization (Hypervisor)

Accessing the Real-Time Target in

NI Measurement & Automation Explorer (MAX)

Page 20: Introduction to Real-Time Virtualization (Hypervisor)

Communicating between OSs

Virtual Console (COM 4)Virtual Ethernet

Page 21: Introduction to Real-Time Virtualization (Hypervisor)

Demo: Exploring Real-Time Hypervisor

Features

Page 22: Introduction to Real-Time Virtualization (Hypervisor)

LabVIEW Development and Deployment

• Extremely similar to traditional NI real-time systems

Page 23: Introduction to Real-Time Virtualization (Hypervisor)

Demo: Deploying an Example LabVIEW

Real-Time Application

Page 24: Introduction to Real-Time Virtualization (Hypervisor)

Performance and Benchmarks

Page 25: Introduction to Real-Time Virtualization (Hypervisor)

Interrupt Latency and Performance Impact

I/O Device or

Communication

Request

NI Real-Time

Hypervisor

Windows XPLabVIEW

Real-Time

Interrupt

Page 26: Introduction to Real-Time Virtualization (Hypervisor)

I/O Channels

(with PID)

Maximum Loop Rate with

Hypervisor (kHz)

Maximum Loop

Rate without

Hypervisor (kHz)

1 11.5 25.4

4 9.3 22.6

16 7.0 12.4

Benchmarks for Single-Point DAQ

Application (Interrupts)

Use polling to improve I/O performance on hypervisor systems

Page 27: Introduction to Real-Time Virtualization (Hypervisor)

Benchmarks for Typical Large DAQ

Application (Polling)

ApplicationMaximum Loop Rate with

Hypervisor (kHz)

Maximum Loop

Rate without

Hypervisor (kHz)

Large DAQ App. 12.0 14.5

Most LabVIEW Real-Time applications running between 1 and 5 kHz will be

able to run at full rate on a Real-Time Hypervisor system

Page 28: Introduction to Real-Time Virtualization (Hypervisor)

Communication Benchmarks

0

10000

20000

30000

40000

50000

60000

70000

0 1000 2000 3000 4000 5000 6000 7000 8000 9000

Th

rou

gh

pu

t (k

b/s

)

Packet Size (Bytes)

Throughput on Hypervisor and Nonhypervisor Systems

Physical Ethernet (w/ hypervisor) Virtual Ethernet (w/ hypervisor) Physical Ethernet (no hypervisor)

Page 29: Introduction to Real-Time Virtualization (Hypervisor)

Case Study

Page 30: Introduction to Real-Time Virtualization (Hypervisor)

Process Automation: Aircraft Arrestor

Test System

• Dynamically testing a system to rapidly decelerate jet aircraft

• Combining real-time simulation, I/O, and user interface on one controller

• Reducing cost and footprint using the Real-Time Hypervisor

“By consolidating the components of our real-time test system onto one controller, the NI Real-Time

Hypervisor will reduce our hardware cost and lower our application footprint.”

– Greg Sussman, Process Automation

Page 31: Introduction to Real-Time Virtualization (Hypervisor)

NI Real-Time Hypervisor Ordering

Information

• Real-Time Hypervisor and OS software preinstalled

• Supported hardware

NI PXI-8108 and PXI-8110

NI 3110 industrial controller

• $499 USD (Real-Time Hypervisor Deployment License only)

Page 32: Introduction to Real-Time Virtualization (Hypervisor)

Additional Resources

• NI virtualization portal (ni.com/virtualization)

Background on virtualization technology

Real-Time Hypervisor virtual tour

Architecture details, benchmarks, and programming

recommendations

Notice: All trademarks are the property of their respective owners