Doğan Fennibay MS Thesis Presentation - June 7th, Supervisor: Assoc. Prof. Arda Yurdakul

Size: px
Start display at page:

Download "Doğan Fennibay MS Thesis Presentation - June 7th, Supervisor: Assoc. Prof. Arda Yurdakul"

Transcription

1 Doğan Fennibay MS Thesis Presentation - June 7th, 2010 Supervisor: Assoc. Prof. Arda Yurdakul

2 Motivation System-level Modeling More integrated systems HW & SW modeled together Models larger but more abstract Component-based strategies Trends in embedded systems More connected with others Increasing use of off-the-shelf components Real/implemented components become important for developing models Slide Fennibay Hardware-in-the-Loop (HiL) DO NOT model real subsystems Integrate real and virtual worlds Avoid modeling complex systems Avoid modeling effort for implemented/ off-the-shelf components Increase modeling accuracy More realistic test beds

3 Achievements Published work: Fennibay, D., Yurdakul, A. and Sen, A., Introducing Hardware-in-Loop Concept to the Hardware/Software Co-design of Real-time Embedded Systems, Proceedings of the seventh IEEE International Conference on Embedded Software and Systems, Bradford 29 June-1 July 2010, pp. tbd. Fennibay, D., Yurdakul, A. and Sen, A., Hardware-in-the-loop for hardware/ software co-design of real-time embedded systems (Poster), DATE 10 Workshop: Designing for Embedded Parallel Computing Platforms: Architectures, Design Tools, and Applications, 8-12 March Fennibay, D., Yurdakul, A. and Sen, A., Endüstriyel Uygulamalar için SystemC ile Döngü İçinde Donanım, Proceedings of the Fourth Ulusal Yazılım Mühendisliği Sempozyumu, İstanbul, 8-10 October 2009, pp Commercial use: Not yet A workshop is planned with Siemens Germany to evaluate the usability Slide 3

4 Outline Introduction Problem definition Preliminaries Related work Solution Experimental evaluation Conclusion Discussion Slide 4

5 Introduction Standardized: IEEE Wide use Fit for system-level Modular Transaction-level modeling Domain: Industrial Communication Strict hard-real-time constraints Data exchange rate (10 KHz) is achievable System-level design is a new trend in the domain Slide 5

6 Problem definition Communication between real and virtual subsystems Virtual to real communication & real to virtual communication Real-time behavior of virtual subsystems Determinism & speed Slide 6

7 Preliminaries: Simulation Discrete Event Simulation Events and passing time abstracted from each other Simulation clock advanced in discrete intervals Part of State According to Event Queue Real-time simulation Simulation clock T S Wall clock T W Synchronize T S T Sstart = T W T wstart External events Not in event queue Simulation clock cannot be advanced according to those Slide 7

8 Preliminaries: SystemC kernel Discrete event simulator Delta-cycle used for concurrency modeling in a single thread 0 simulation time advance during delta-cycles Problem! No 0 time advance in real-time Slide 8

9 Related work: Existing HiL methods Commercial devices and tools for test xpc Target, Real-Time Windows Target by MathWorks...but they are orthogonal to our work: Introduction of HiL to the Systemlevel HW/SW co-design of embedded systems...a new field!!! Slide 9

10 Related work: Integrating different environments CHILS Chip HiL Simulation Real-time constraint relaxed Exchange period adjustable Only for processors Via Remote Debugging Interface Slide 10

11 Related work: Timing concerns & determinism Virtual Chip Operational Buffer Unit to accommodate for the speed difference Realtimify Real-time execution of SystemC No concern w.r.t. determinism Uncertainty about synchronization point Suitable for human observation, not for HiL RTAI (used by Lu et. al.) Time sharing with Linux kernel RT_PREEMPT Increase determinism of Linux Kernel Slide 11

12 Solution Slide 12 SystemC is insensitive to external events!!!!

13 Solution: Achieving Real-Time Behavior Bind simulation clock to wall clock simulation step n - 1 t S simulation step n t Snew simulation step n + 1 delta cycles outputs time advance t W t Wdeltacycles t Woutput t Wdeltaend t Wactual t Wdelay t Wnew t Wpassed Simulation clock Advance t S t Snew Wall clock Current time: t Wactual t Wpassed in delta-cycles & outputs Delay by t Wdelay t Wnew t W = t Snew - t S T S T Sstart = T W T Wstart Slide 13

14 GPOS with real-time improvements Real-time scheduler Increased preemptibility Priority inheritance protocol High resolution timers Simulation thread set to real-time priority Latency sources eliminated Swap memory, power mgmt. etc. Slide 14

15 Solution: Achieving Real-Time Behavior Outputs in real-time Slide 15

16 Solution: Achieving Real-Virtual Communication: Hybrid channel Connect real and virtual worlds Virtual: SystemC interface Real: I/O driver Slide 16

17 Solution: Achieving Real-Virtual Communication Concurrent outputs Concurrent outputs in simulation sequential in real-time We define two constraints to model the limitation All concurrent outputs must occur in an output window t Wow Some concurrent outputs must occur in a smaller critical output window t Wcowi Solution Use HW support when available Enforce a strict ordering of output operations t Wow & t Wcowi parameterized by model developer Slide 17

18 Solution: Achieving Real-Virtual Communication Sensitivity to External events Sol n 1: Polling Most simple Tradeoff: simulation performance vs. I/O latency Slide 18

19 Solution: Achieving Real-Virtual Communication Sensitivity to External events Sol n 2: Adaptive polling Change polling period dynamically PID control Slide 19

20 Solution: Achieving Real-Virtual Communication Sensitivity to External events Slide 20 Sol n 3: Event-driven Patch in SystemC kernel Events detected by input threads put in a special queue SystemC patch interrupts the wait and notifies the events

21 Solution: Achieving Real-Virtual Communication Sensitivity to External events Polling Adaptive polling Fully event-driven Advantages Simple implementation Fastest No complex OS constructs No tradeoff or tuning necessary Disadvantages Tradeoff necessary Tuning necessary Complex implementation Uses complex OS constructs Slide 21

22 A mathematical model to estimate execution performance Virtual subsystems Must show sufficiently realistic behavior e.g. run in real-time Remain loyal to the simulation model e.g. concurrent outputs must be concurrent enough in real-time A mathematical model to estimate the simulation s execution Slide 22

23 Mathematical model: Real-time simulation simulation step n - 1 t S simulation step n t Snew simulation step n + 1 delta cycles outputs time advance t W t Wdeltacycles t Woutput t Wdeltaend t Wactual t Wdelay t Wnew For t Wdelay 0: t Wpassed SystemC is based on C++ Very hard to statically determine t Wevaluate and t Wupdate Instrumentation and profiling can be used Measure t Wpassed / (t Snew t S ) if > 1 model not real-time capable Slide 23

24 Mathematical model: Concurrent outputs Simplifying assumptions All outputs done by async. threads Trigger to output threads similar for all hybrid channels Number of operations at a simulation time does not exceed the number of processing cores All hybrid channels use update_real for output Slide 24 All operations take the same trigger time t Wo in simulation thread Real output operation time t Wdi differs

25 Mathematical model: Concurrent outputs Output window Critical output window For exclusive subsets of outputs Critical outputs can be ordered successively For a subset of m hybrid channels Slide 25 n H: # hybrid channels t Wo : measured as a platform characteristic

26 Experimental evaluation: Simulation speed & determinism Pulse width modulation (PWM) Slide 26

27 Experimental evaluation: PWM Results Signal stable up to 10 KHz Only minor effect of CPU load real-time scheduler works fine The ratio t Wpassed / (t Snew t S ) is reflected in the output jitter math. model works Computation power still available, but jitter prevents higher freq. 0,01 0, Waveform of (a) 10 KHz desired freq., (b) 100 KHz desired freq. Desired frequency [KHz] (persistence = infinite) (b) Slide 27 (a) Max jitter / desired period, (b) t Wpassed / (t Snew t S ) %25,0 %20,0 %15,0 %10,0 %5,0 %0,0 45,00% 40,00% 35,00% 30,00% 25,00% 20,00% 15,00% 10,00% 5,00% 0,00% 0,01 0, Desired frequency [KHz] (a) w/o CPU load with CPU load max (w/o CPU load) max (with CPU load) avg (w/o CPU load) avg (with CPU load)

28 Experimental evaluation:, I/O Performance Experiment: Ethernet round-trip time (RTT) Slide 28

29 Experimental evaluation: RTT results Simple polling Poling period has bigger effect than frame size Frame size has linear effect 10 ms cycle usable, 1 ms cycle usable with low polling period Adaptive polling PI control in [10 µs; 10 ms] Complex behavior Longer frames decrease polling period, but increase transmission time 1 ms cycle usable 1800 µs 1600 µs 1400 µs 1200 µs 1000 µs 800 µs 600 µs 400 µs 200 µs 0 µs 500 µs 450 µs 400 µs 350 µs 300 µs 250 µs 200 µs 150 µs 100 µs 50 µs 0 µs 64 bytes, 100 µs 64 bytes, 1000 µs 780 bytes, 100 µs 780 bytes, 1000 µs 1514 bytes, 100 µs frame size, polling period RTT for simple polling 1514 bytes, 1000 µs 64 bytes 780 bytes 1514 bytes min max avg min max avg frame size Slide 29 RTT for adaptive polling

30 Experimental evaluation: RTT results 1200 µs Event-driven No tradeoff necessary No tuning necessary Max RTT not affected by frame size Performs worse than adaptive polling for larger frames There is an inherent latency in the more complex OS constructs employed 1000 µs 800 µs 600 µs 400 µs 200 µs 0 µs 500 µs 450 µs 400 µs 350 µs 300 µs 250 µs 200 µs 150 µs 100 µs 50 µs 0 µs 64 bytes 780 bytes 1514 bytes frame size RTT for event-driven 64 bytes 780 bytes 1514 bytes frame size min max avg min max avg Slide 30 RTT for adaptive polling

31 Experimental evaluation Concurrent Outputs MultiPWM Experiment Performance of concurrent outputs with output ordering MultiPWM with HW Support Experiment Performance of concurrent outputs with HW support Slide 31

32 Experimental evaluation: Concurrent output results No HW support Successive ordering gains 6.7x smaller difference Mathematical model works: (nh 1) (m 1) 6 1 Maximum difference gains 10.7x smaller difference The possibility to be caught by the worst system latency smaller HW support achieves 100% concurrence Waveform of 2 signals for (a) with 5 channels inbetween, (b) successive (persistence = infinite) (a) output ordering, dist = 6 output ordering, dist = 1 (b) Time difference between signals in µs avg max min Slide 32

33 Experimental evaluation: Real-Life Experiment BBMD Experiment BACnet Broadcast Management Device model in SystemC Non-timed transaction-level model Traffic Between management station and automation stations Peer-to-peer traffic among automation stations Slide 33

34 Experimental evaluation: BBMD results Non-timed transaction-level BBMD outperformed the real BBMD Average response time: up to 80x better Incoming packet burst: 2000 packets/s 67% drop at real BBMD No drops at virtual BBMD Slide 34

35 Conclusion Hardware-in-the-loop concept for HW/SW codesign of embedded systems Developed Implemented Experimentally evaluated Slide 35 Hybrid channel Good encapsulation Very generic, can implement any kind of communication Clear interface to SystemC model Real-time patch Non-intrusive Adequate level of determinism reached with common tools

36 Conclusion Use in new domains may multiply More powerful modeling platforms Improvements in simulation speed: parallelism, optimization Determinism requires manual tuning RT_PREEMPT is constantly being improved, better tools are developed External events Event-driven implementation could perform better on an RTOS Adaptive polling can be tuned better via the provided PID mechanism Slide 36

37 Conclusion Mathematical model Usable for estimating if our method will work for a given SystemC model Needed empirical data is easy to obtain Also usable for understanding bottlenecks in the SystemC model Future work: scalability Test of our method with larger SystemC models BBMD experiment is realistic, yet smaller than industry-scale models Workshop in Germany will focus on this aspect, too Mathematical model can also be leveraged to estimate scalability Slide 37

38 Discussion Thanks for your attention Contributions & questions are welcome Doğan Fennibay Slide 38

39 Appendix Slide 39 Fennibay

40 Transaction-level modeling High-level, more abstract modeling Do NOT model every register transfer. Model transactions at the bottom level. TLM serves as a golden copy for less abstract RTL modelers. Slide 40

41 Hybrid channel examples Slide 41

42 Experimental evaluation SW Platform Linux rt19 In RT_PREEMPT mode SystemC Our real-time patch CPU load via multiple instances of infinitely spinning shell script HW Platform Dual Intel Quad-Core XEON at 3.4 GHz Intel Pentium 4 HT at 3.2 GHz (only in BBMD Experiment) Slide 42

43 Preliminaries: SystemC System-level modeling Transaction-level to register-transfer level Constructs Channel: communication Process: Execution paths Method, thread, clocked thread sc_event: synchronization Interface: Entry point to a channel Port: Exit point from a module Slide 43 Different from the event in a discrete event simulator

44 Solution: Output timing SystemC standard Our contribution Moment Advantages Disadvantages Evaluate e.g. write update Time advance update_real Data does not wait at all The final data of concurrent processes is used (e.g. sc_signal) Less number of outputs in total Concurrent outputs calculated by delta cycles are gathered together in real-time Data must not change in later cycles (e.g.. sc_fifo) Delta cycle processing time increases Concurrent outputs are distributed wider in realtime. Glitches occurring at the end of delta cycles are not relayed to outside Slide 44

Real-Time Technology in Linux

Real-Time Technology in Linux Real-Time Technology in Linux Sven-Thorsten Dietrich Real-Time Architect Introductions MontaVista Software is a leading global supplier of systems software and development tools for intelligent connected

More information

ReconOS: An RTOS Supporting Hardware and Software Threads

ReconOS: An RTOS Supporting Hardware and Software Threads ReconOS: An RTOS Supporting Hardware and Software Threads Enno Lübbers and Marco Platzner Computer Engineering Group University of Paderborn marco.platzner@computer.org Overview the ReconOS project programming

More information

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester Operating System: Chap13 I/O Systems National Tsing-Hua University 2016, Fall Semester Outline Overview I/O Hardware I/O Methods Kernel I/O Subsystem Performance Application Interface Operating System

More information

G Robert Grimm New York University

G Robert Grimm New York University G22.3250-001 Receiver Livelock Robert Grimm New York University Altogether Now: The Three Questions What is the problem? What is new or different? What are the contributions and limitations? Motivation

More information

Lecture notes Lectures 1 through 5 (up through lecture 5 slide 63) Book Chapters 1-4

Lecture notes Lectures 1 through 5 (up through lecture 5 slide 63) Book Chapters 1-4 EE445M Midterm Study Guide (Spring 2017) (updated February 25, 2017): Instructions: Open book and open notes. No calculators or any electronic devices (turn cell phones off). Please be sure that your answers

More information

Enhanced Ethernet Switching Technology. Time Applications. Rui Santos 17 / 04 / 2009

Enhanced Ethernet Switching Technology. Time Applications. Rui Santos 17 / 04 / 2009 Enhanced Ethernet Switching Technology for Adaptive Hard Real- Time Applications Rui Santos (rsantos@ua.pt) 17 / 04 / 2009 Problem 2 Switched Ethernet became common in real-time communications Some interesting

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance Objectives Explore the structure of an operating

More information

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic) I/O Systems Amir H. Payberah amir@sics.se Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) I/O Systems 1393/9/15 1 / 57 Motivation Amir H. Payberah (Tehran

More information

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems Developing deterministic networking technology for railway applications using TTEthernet software-based end systems Project n 100021 Astrit Ademaj, TTTech Computertechnik AG Outline GENESYS requirements

More information

Input/Output Systems

Input/Output Systems Input/Output Systems CSCI 315 Operating Systems Design Department of Computer Science Notice: The slides for this lecture have been largely based on those from an earlier edition of the course text Operating

More information

Receive Livelock. Robert Grimm New York University

Receive Livelock. Robert Grimm New York University Receive Livelock Robert Grimm New York University The Three Questions What is the problem? What is new or different? What are the contributions and limitations? Motivation Interrupts work well when I/O

More information

Supporting Time-sensitive Applications on a Commodity OS

Supporting Time-sensitive Applications on a Commodity OS Supporting Time-sensitive Applications on a Commodity OS Ashvin Goel, Luca Abeni, Charles Krasic, Jim Snow, Jonathan Walpole Department of Computer Science and Engineering Oregon Graduate Institute, Portland

More information

Abstract. Testing Parameters. Introduction. Hardware Platform. Native System

Abstract. Testing Parameters. Introduction. Hardware Platform. Native System Abstract In this paper, we address the latency issue in RT- XEN virtual machines that are available in Xen 4.5. Despite the advantages of applying virtualization to systems, the default credit scheduler

More information

The control of I/O devices is a major concern for OS designers

The control of I/O devices is a major concern for OS designers Lecture Overview I/O devices I/O hardware Interrupts Direct memory access Device dimensions Device drivers Kernel I/O subsystem Operating Systems - June 26, 2001 I/O Device Issues The control of I/O devices

More information

RT extensions/applications of general-purpose OSs

RT extensions/applications of general-purpose OSs EECS 571 Principles of Real-Time Embedded Systems Lecture Note #15: RT extensions/applications of general-purpose OSs General-Purpose OSs for Real-Time Why? (as discussed before) App timing requirements

More information

PROBABILISTIC SCHEDULING MICHAEL ROITZSCH

PROBABILISTIC SCHEDULING MICHAEL ROITZSCH Faculty of Computer Science Institute of Systems Architecture, Operating Systems Group PROBABILISTIC SCHEDULING MICHAEL ROITZSCH DESKTOP REAL-TIME 2 PROBLEM worst case execution time (WCET) largely exceeds

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance I/O Hardware Incredible variety of I/O devices Common

More information

Device-Functionality Progression

Device-Functionality Progression Chapter 12: I/O Systems I/O Hardware I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Incredible variety of I/O devices Common concepts Port

More information

Chapter 12: I/O Systems. I/O Hardware

Chapter 12: I/O Systems. I/O Hardware Chapter 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations I/O Hardware Incredible variety of I/O devices Common concepts Port

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin

More information

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial) Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin

More information

Using Software Transactional Memory In Interrupt-Driven Systems

Using Software Transactional Memory In Interrupt-Driven Systems Using Software Transactional Memory In Interrupt-Driven Systems Department of Mathematics, Statistics, and Computer Science Marquette University Thesis Defense Introduction Thesis Statement Software transactional

More information

by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS

by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests

More information

Real-Time Testing in a Modern, Agile Development Workflow

Real-Time Testing in a Modern, Agile Development Workflow Real-Time Testing in a Modern, Agile Development Workflow Simon Eriksson Application Engineer 2015 The MathWorks, Inc. 1 Demo Going from Desktop Testing to Real-Time Testing 2 Key Take-Aways From This

More information

Using Time Division Multiplexing to support Real-time Networking on Ethernet

Using Time Division Multiplexing to support Real-time Networking on Ethernet Using Time Division Multiplexing to support Real-time Networking on Ethernet Hariprasad Sampathkumar 25 th January 2005 Master s Thesis Defense Committee Dr. Douglas Niehaus, Chair Dr. Jeremiah James,

More information

RT-MaG: an open-source SIMULINK Toolbox for Linux-Based Real-Time Robotic Applications

RT-MaG: an open-source SIMULINK Toolbox for Linux-Based Real-Time Robotic Applications : an open-source SIMULINK Toolbox for Linux-Based Real-Time Robotic Applications Manecy Augustin 1,2 Marchand Nicolas 2 Viollet Stéphane 1 1 Biorobotic Department, Aix-Marseille Université/CNRS, Marseille,

More information

Analysis and Research on Improving Real-time Performance of Linux Kernel

Analysis and Research on Improving Real-time Performance of Linux Kernel Analysis and Research on Improving Real-time Performance of Linux Kernel BI Chun-yue School of Electronics and Computer/ Zhejiang Wanli University/Ningbo, China ABSTRACT With the widespread application

More information

Open Source Traffic Analyzer

Open Source Traffic Analyzer Open Source Traffic Analyzer Daniel Turull June 2010 Outline 1 Introduction 2 Background study 3 Design 4 Implementation 5 Evaluation 6 Conclusions 7 Demo Outline 1 Introduction 2 Background study 3 Design

More information

Lecture 15: I/O Devices & Drivers

Lecture 15: I/O Devices & Drivers CS 422/522 Design & Implementation of Operating Systems Lecture 15: I/O Devices & Drivers Zhong Shao Dept. of Computer Science Yale University Acknowledgement: some slides are taken from previous versions

More information

Outline Background Jaluna-1 Presentation Jaluna-2 Presentation Overview Use Cases Architecture Features Copyright Jaluna SA. All rights reserved

Outline Background Jaluna-1 Presentation Jaluna-2 Presentation Overview Use Cases Architecture Features Copyright Jaluna SA. All rights reserved C5 Micro-Kernel: Real-Time Services for Embedded and Linux Systems Copyright 2003- Jaluna SA. All rights reserved. JL/TR-03-31.0.1 1 Outline Background Jaluna-1 Presentation Jaluna-2 Presentation Overview

More information

A Comparison of Scheduling Latency in Linux, PREEMPT_RT, and LITMUS RT. Felipe Cerqueira and Björn Brandenburg

A Comparison of Scheduling Latency in Linux, PREEMPT_RT, and LITMUS RT. Felipe Cerqueira and Björn Brandenburg A Comparison of Scheduling Latency in Linux, PREEMPT_RT, and LITMUS RT Felipe Cerqueira and Björn Brandenburg July 9th, 2013 1 Linux as a Real-Time OS 2 Linux as a Real-Time OS Optimizing system responsiveness

More information

Asynchronous Events on Linux

Asynchronous Events on Linux Asynchronous Events on Linux Frederic.Rossi@Ericsson.CA Open System Lab Systems Research June 25, 2002 Ericsson Research Canada Introduction Linux performs well as a general purpose OS but doesn t satisfy

More information

LEoNIDS: a Low-latency and Energyefficient Intrusion Detection System

LEoNIDS: a Low-latency and Energyefficient Intrusion Detection System LEoNIDS: a Low-latency and Energyefficient Intrusion Detection System Nikos Tsikoudis Thesis Supervisor: Evangelos Markatos June 2013 Heraklion, Greece Low-Power Design Low-power systems receive significant

More information

Systems Integration. Gautam H. Thaker Patrick J. Lardieri Donald Krecker Keith O Hara Chuck Winters

Systems Integration. Gautam H. Thaker Patrick J. Lardieri Donald Krecker Keith O Hara Chuck Winters Systems Integration Achieving Bounded End-to to-end Latencies with Real-time Linux and Realtime CORBA Gautam H. Thaker Patrick J. Lardieri Donald Krecker Keith O Hara Chuck Winters LM Advanced Technology

More information

TCPivo A High-Performance Packet Replay Engine. Wu-chang Feng Ashvin Goel Abdelmajid Bezzaz Wu-chi Feng Jonathan Walpole

TCPivo A High-Performance Packet Replay Engine. Wu-chang Feng Ashvin Goel Abdelmajid Bezzaz Wu-chi Feng Jonathan Walpole TCPivo A High-Performance Packet Replay Engine Wu-chang Feng Ashvin Goel Abdelmajid Bezzaz Wu-chi Feng Jonathan Walpole Motivation Many methods for evaluating network devices Simulation Device simulated,

More information

How Linux RT_PREEMPT Works

How Linux RT_PREEMPT Works How Linux RT_PREEMPT Works A common observation about real time systems is that the cost of the increased determinism of real time is decreased throughput and increased average latency. This presentation

More information

Inferring Temporal Behaviours Through Kernel Tracing

Inferring Temporal Behaviours Through Kernel Tracing Inferring Temporal Behaviours Through Kernel Tracing Paolo Rallo, Nicola Manica, Luca Abeni University of Trento Trento - Italy prallo@gmail.com, nicola.manica@disi.unitn.it, luca.abeni@unitn.it Technical

More information

Technology for Adaptive Hard. Rui Santos, UA

Technology for Adaptive Hard. Rui Santos, UA HaRTES Meeting Enhanced Ethernet Switching Technology for Adaptive Hard Real-Time Applications Rui Santos, rsantos@ua.pt, UA SUMMARY 2 MOTIVATION Switched Ethernet t became common in real-time communications

More information

Flow-start: Faster and Less Overshoot with Paced Chirping

Flow-start: Faster and Less Overshoot with Paced Chirping Flow-start: Faster and Less Overshoot with Paced Chirping Joakim Misund, Simula and Uni Oslo Bob Briscoe, Independent IRTF ICCRG, Jul 2018 The Slow-Start

More information

Department of Computer Science, Institute for System Architecture, Operating Systems Group. Real-Time Systems '08 / '09. Hardware.

Department of Computer Science, Institute for System Architecture, Operating Systems Group. Real-Time Systems '08 / '09. Hardware. Department of Computer Science, Institute for System Architecture, Operating Systems Group Real-Time Systems '08 / '09 Hardware Marcus Völp Outlook Hardware is Source of Unpredictability Caches Pipeline

More information

Worst-case Ethernet Network Latency for Shaped Sources

Worst-case Ethernet Network Latency for Shaped Sources Worst-case Ethernet Network Latency for Shaped Sources Max Azarov, SMSC 7th October 2005 Contents For 802.3 ResE study group 1 Worst-case latency theorem 1 1.1 Assumptions.............................

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems DM510-14 Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS Performance 13.2 Objectives

More information

Lecture 13 Input/Output (I/O) Systems (chapter 13)

Lecture 13 Input/Output (I/O) Systems (chapter 13) Bilkent University Department of Computer Engineering CS342 Operating Systems Lecture 13 Input/Output (I/O) Systems (chapter 13) Dr. İbrahim Körpeoğlu http://www.cs.bilkent.edu.tr/~korpe 1 References The

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 System I/O System I/O (Chap 13) Central

More information

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner Real-Time Component Software slide credits: H. Kopetz, P. Puschner Overview OS services Task Structure Task Interaction Input/Output Error Detection 2 Operating System and Middleware Application Software

More information

Concurrency Race Conditions and Deadlocks

Concurrency Race Conditions and Deadlocks Concurrency Race Conditions and Deadlocks Kartik Gopalan Chapters 2 (2.3) and 6 Tanenbaum s Modern OS Sequential Loosely, doing many things, but one after another E.g. Finish one assignment, then another

More information

IKR SimLib-QEMU: TCP Simulations Integrating Virtual Machines

IKR SimLib-QEMU: TCP Simulations Integrating Virtual Machines IKR SimLib-QEMU: TCP Simulations Integrating Virtual Machines ICCRG 87. IETF Berlin July 31, 2013 Thomas Werthmann Mirja Kühlewind

More information

NoC Simulation in Heterogeneous Architectures for PGAS Programming Model

NoC Simulation in Heterogeneous Architectures for PGAS Programming Model NoC Simulation in Heterogeneous Architectures for PGAS Programming Model Sascha Roloff, Andreas Weichslgartner, Frank Hannig, Jürgen Teich University of Erlangen-Nuremberg, Germany Jan Heißwolf Karlsruhe

More information

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition Chapter 13: I/O Systems Silberschatz, Galvin and Gagne 2013 Chapter 13: I/O Systems Overview I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations

More information

Real Time Linux patches: history and usage

Real Time Linux patches: history and usage Real Time Linux patches: history and usage Presentation first given at: FOSDEM 2006 Embedded Development Room See www.fosdem.org Klaas van Gend Field Application Engineer for Europe Why Linux in Real-Time

More information

ayaz ali Micro & Macro Scheduling Techniques Ayaz Ali Department of Computer Science University of Houston Houston, TX

ayaz ali Micro & Macro Scheduling Techniques Ayaz Ali Department of Computer Science University of Houston Houston, TX ayaz ali Micro & Macro Scheduling Techniques Ayaz Ali Department of Computer Science University of Houston Houston, TX 77004 ayaz@cs.uh.edu 1. INTRODUCTION Scheduling techniques has historically been one

More information

Chapter 12: I/O Systems

Chapter 12: I/O Systems Chapter 12: I/O Systems Chapter 12: I/O Systems I/O Hardware! Application I/O Interface! Kernel I/O Subsystem! Transforming I/O Requests to Hardware Operations! STREAMS! Performance! Silberschatz, Galvin

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS Performance Silberschatz, Galvin and

More information

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition Chapter 12: I/O Systems Silberschatz, Galvin and Gagne 2011 Chapter 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations STREAMS

More information

Module 12: I/O Systems

Module 12: I/O Systems Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance 12.1 I/O Hardware Incredible variety of I/O devices Common

More information

MoonGen. A Scriptable High-Speed Packet Generator. Paul Emmerich. January 31st, 2016 FOSDEM Chair for Network Architectures and Services

MoonGen. A Scriptable High-Speed Packet Generator. Paul Emmerich. January 31st, 2016 FOSDEM Chair for Network Architectures and Services MoonGen A Scriptable High-Speed Packet Generator Paul Emmerich January 31st, 216 FOSDEM 216 Chair for Network Architectures and Services Department of Informatics Paul Emmerich MoonGen: A Scriptable High-Speed

More information

System Architecture Directions for Networked Sensors[1]

System Architecture Directions for Networked Sensors[1] System Architecture Directions for Networked Sensors[1] Secure Sensor Networks Seminar presentation Eric Anderson System Architecture Directions for Networked Sensors[1] p. 1 Outline Sensor Network Characteristics

More information

Network Interface Architecture and Prototyping for Chip and Cluster Multiprocessors

Network Interface Architecture and Prototyping for Chip and Cluster Multiprocessors University of Crete School of Sciences & Engineering Computer Science Department Master Thesis by Michael Papamichael Network Interface Architecture and Prototyping for Chip and Cluster Multiprocessors

More information

Graphite IntroducDon and Overview. Goals, Architecture, and Performance

Graphite IntroducDon and Overview. Goals, Architecture, and Performance Graphite IntroducDon and Overview Goals, Architecture, and Performance 4 The Future of MulDcore #Cores 128 1000 cores? CompuDng has moved aggressively to muldcore 64 32 MIT Raw Intel SSC Up to 72 cores

More information

Final Exam Study Guide

Final Exam Study Guide Final Exam Study Guide Part 1 Closed book, no crib sheet Part 2 Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator, devices with wireless communication).

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 What is an Operating System? What is

More information

Hardware/Software Codesign of Schedulers for Real Time Systems

Hardware/Software Codesign of Schedulers for Real Time Systems Hardware/Software Codesign of Schedulers for Real Time Systems Jorge Ortiz Committee David Andrews, Chair Douglas Niehaus Perry Alexander Presentation Outline Background Prior work in hybrid co-design

More information

Adventures In Real-Time Performance Tuning, Part 2

Adventures In Real-Time Performance Tuning, Part 2 Adventures In Real-Time Performance Tuning, Part 2 The real-time for Linux patchset does not guarantee adequate real-time behavior for all target platforms. When using real-time Linux on a new platform

More information

Hardware-Software Codesign. 6. System Simulation

Hardware-Software Codesign. 6. System Simulation Hardware-Software Codesign 6. System Simulation Lothar Thiele 6-1 System Design specification system simulation (this lecture) (worst-case) perf. analysis (lectures 10-11) system synthesis estimation SW-compilation

More information

LabVIEW programming II

LabVIEW programming II FYS3240 PC-based instrumentation and microcontrollers LabVIEW programming II Spring 2016 Lecture #3 Bekkeng 18.01.2016 Dataflow programming With a dataflow model, nodes on a block diagram are connected

More information

A Generic RTOS Model for Real-time Systems Simulation with SystemC

A Generic RTOS Model for Real-time Systems Simulation with SystemC A Generic RTOS Model for Real-time Systems Simulation with SystemC R. Le Moigne, O. Pasquier, J-P. Calvez Polytech, University of Nantes, France rocco.lemoigne@polytech.univ-nantes.fr Abstract The main

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems COP 4610: Introduction to Operating Systems (Spring 2015) Chapter 13: I/O Systems Zhi Wang Florida State University Content I/O hardware Application I/O interface Kernel I/O subsystem I/O performance Objectives

More information

Real-Time Operating Systems Design and Implementation. LS 12, TU Dortmund

Real-Time Operating Systems Design and Implementation. LS 12, TU Dortmund Real-Time Operating Systems Design and Implementation (slides are based on Prof. Dr. Jian-Jia Chen) Anas Toma, Jian-Jia Chen LS 12, TU Dortmund October 19, 2017 Anas Toma, Jian-Jia Chen (LS 12, TU Dortmund)

More information

Shadow: Real Applications, Simulated Networks. Dr. Rob Jansen U.S. Naval Research Laboratory Center for High Assurance Computer Systems

Shadow: Real Applications, Simulated Networks. Dr. Rob Jansen U.S. Naval Research Laboratory Center for High Assurance Computer Systems Shadow: Real Applications, Simulated Networks Dr. Rob Jansen Center for High Assurance Computer Systems Cyber Modeling and Simulation Technical Working Group Mark Center, Alexandria, VA October 25 th,

More information

Computer Science Window-Constrained Process Scheduling for Linux Systems

Computer Science Window-Constrained Process Scheduling for Linux Systems Window-Constrained Process Scheduling for Linux Systems Richard West Ivan Ganev Karsten Schwan Talk Outline Goals of this research DWCS background DWCS implementation details Design of the experiments

More information

Real-time control systems: an application to fusion experimental devices

Real-time control systems: an application to fusion experimental devices : an application to fusion experimental devices Università degli Studi di Salerno, April 21, 2016 control RT in From to 1 1 DIETI, Università di Napoli Federico II 1 control in a tokamak device A real-time

More information

RESOURCE MANAGEMENT MICHAEL ROITZSCH

RESOURCE MANAGEMENT MICHAEL ROITZSCH Department of Computer Science Institute for System Architecture, Operating Systems Group RESOURCE MANAGEMENT MICHAEL ROITZSCH AGENDA done: time, drivers today: misc. resources architectures for resource

More information

I/O Design, I/O Subsystem, I/O-Handler Device Driver, Buffering, Disks, RAID January WT 2008/09

I/O Design, I/O Subsystem, I/O-Handler Device Driver, Buffering, Disks, RAID January WT 2008/09 21 I/O Management (1) I/O Design, I/O Subsystem, I/O-Handler Device Driver, Buffering, Disks, RAID January 26 2009 WT 2008/09 2009 Universität Karlsruhe, System Architecture Group 1 Recommended Reading

More information

A Predictable RTOS. Mantis Cheng Department of Computer Science University of Victoria

A Predictable RTOS. Mantis Cheng Department of Computer Science University of Victoria A Predictable RTOS Mantis Cheng Department of Computer Science University of Victoria Outline I. Analysis of Timeliness Requirements II. Analysis of IO Requirements III. Time in Scheduling IV. IO in Scheduling

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin

More information

操作系统概念 13. I/O Systems

操作系统概念 13. I/O Systems OPERATING SYSTEM CONCEPTS 操作系统概念 13. I/O Systems 东南大学计算机学院 Baili Zhang/ Southeast 1 Objectives 13. I/O Systems Explore the structure of an operating system s I/O subsystem Discuss the principles of I/O

More information

A Global Operating System for HPC Clusters

A Global Operating System for HPC Clusters A Global Operating System Emiliano Betti 1 Marco Cesati 1 Roberto Gioiosa 2 Francesco Piermaria 1 1 System Programming Research Group, University of Rome Tor Vergata 2 BlueGene Software Division, IBM TJ

More information

Kernel Korner. Analysis of the HTB Queuing Discipline. Yaron Benita. Abstract

Kernel Korner. Analysis of the HTB Queuing Discipline. Yaron Benita. Abstract 1 of 9 6/18/2006 7:41 PM Kernel Korner Analysis of the HTB Queuing Discipline Yaron Benita Abstract Can Linux do Quality of Service in a way that both offers high throughput and does not exceed the defined

More information

Performance Modeling

Performance Modeling Performance Modeling EECS 489 Computer Networks http://www.eecs.umich.edu/~zmao/eecs489 Z. Morley Mao Tuesday Sept 14, 2004 Acknowledgement: Some slides taken from Kurose&Ross and Katz&Stoica 1 Administrivia

More information

Module 12: I/O Systems

Module 12: I/O Systems Module 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance Operating System Concepts 12.1 Silberschatz and Galvin c

More information

Performance evaluation of Linux CAN-related system calls

Performance evaluation of Linux CAN-related system calls Performance evaluation of Linux CAN-related system calls Michal Sojka, Pavel Píša, Zdeněk Hanzálek Czech Technical University in Prague, Faculty of Electrical Engineering Email: {sojkam1,pisa,hanzalek}@fel.cvut.cz

More information

ELEC 377 Operating Systems. Week 1 Class 2

ELEC 377 Operating Systems. Week 1 Class 2 Operating Systems Week 1 Class 2 Labs vs. Assignments The only work to turn in are the labs. In some of the handouts I refer to the labs as assignments. There are no assignments separate from the labs.

More information

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS 28 CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS Introduction Measurement-based scheme, that constantly monitors the network, will incorporate the current network state in the

More information

Chair for Network Architectures and Services Prof. Carle Department of Computer Science Technische Universität München.

Chair for Network Architectures and Services Prof. Carle Department of Computer Science Technische Universität München. Chair for Network Architectures and Services Prof. Carle Department of Computer Science Technische Universität München Network Analysis 2b) Deterministic Modelling beyond Formal Logic A simple network

More information

ZiLOG Real-Time Kernel Version 1.2.0

ZiLOG Real-Time Kernel Version 1.2.0 ez80acclaim Family of Microcontrollers Version 1.2.0 PRELIMINARY Introduction The (RZK) is a realtime, preemptive, multitasking kernel designed for time-critical embedded applications. It is currently

More information

PC BASED REAL TIME DATA EXCHANGE ON 10GbE OPTICAL NETWORK USING RTOS*

PC BASED REAL TIME DATA EXCHANGE ON 10GbE OPTICAL NETWORK USING RTOS* THIC Software and Hardware Technology THCC03 PC BASED REAL TIME DATA EXCHANGE ON 10GbE OPTICAL NETWORK USING RTOS* Ninth International Workshop on Personal Computers and Particle Accelerator Controls (PCaPAC

More information

Common Computer-System and OS Structures

Common Computer-System and OS Structures Common Computer-System and OS Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System Architecture Oct-03 1 Computer-System Architecture

More information

Last class: Today: Course administration OS definition, some history. Background on Computer Architecture

Last class: Today: Course administration OS definition, some history. Background on Computer Architecture 1 Last class: Course administration OS definition, some history Today: Background on Computer Architecture 2 Canonical System Hardware CPU: Processor to perform computations Memory: Programs and data I/O

More information

Introduction to gem5. Nizamudheen Ahmed Texas Instruments

Introduction to gem5. Nizamudheen Ahmed Texas Instruments Introduction to gem5 Nizamudheen Ahmed Texas Instruments 1 Introduction A full-system computer architecture simulator Open source tool focused on architectural modeling BSD license Encompasses system-level

More information

Development of Real-Time Systems with Embedded Linux. Brandon Shibley Senior Solutions Architect Toradex Inc.

Development of Real-Time Systems with Embedded Linux. Brandon Shibley Senior Solutions Architect Toradex Inc. Development of Real-Time Systems with Embedded Linux Brandon Shibley Senior Solutions Architect Toradex Inc. Overview Toradex ARM-based System-on-Modules Pin-Compatible SoM Families In-house HW and SW

More information

Computer Science. ! Other approaches:! Special systems designed for extensibility

Computer Science. ! Other approaches:! Special systems designed for extensibility Application-Specific Service Technologies for Commodity OSes in Real-Time Environments Richard West and Gabriel Parmer Boston University Boston, MA {richwest,gabep1}@cs.bu.edu Introduction! Leverage commodity

More information

A Userspace Packet Switch for Virtual Machines

A Userspace Packet Switch for Virtual Machines SHRINKING THE HYPERVISOR ONE SUBSYSTEM AT A TIME A Userspace Packet Switch for Virtual Machines Julian Stecklina OS Group, TU Dresden jsteckli@os.inf.tu-dresden.de VEE 2014, Salt Lake City 1 Motivation

More information

Operating Systems 2010/2011

Operating Systems 2010/2011 Operating Systems 2010/2011 Input/Output Systems part 1 (ch13) Shudong Chen 1 Objectives Discuss the principles of I/O hardware and its complexity Explore the structure of an operating system s I/O subsystem

More information

COT 4600 Operating Systems Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM

COT 4600 Operating Systems Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM Lecture 23 Attention: project phase 4 due Tuesday November 24 Final exam Thursday December 10 4-6:50

More information

COSC 6385 Computer Architecture - Memory Hierarchies (I)

COSC 6385 Computer Architecture - Memory Hierarchies (I) COSC 6385 Computer Architecture - Memory Hierarchies (I) Edgar Gabriel Spring 2018 Some slides are based on a lecture by David Culler, University of California, Berkley http//www.eecs.berkeley.edu/~culler/courses/cs252-s05

More information

Multimedia Systems 2011/2012

Multimedia Systems 2011/2012 Multimedia Systems 2011/2012 System Architecture Prof. Dr. Paul Müller University of Kaiserslautern Department of Computer Science Integrated Communication Systems ICSY http://www.icsy.de Sitemap 2 Hardware

More information

Zilog Real-Time Kernel

Zilog Real-Time Kernel An Company Configurable Compilation RZK allows you to specify system parameters at compile time. For example, the number of objects, such as threads and semaphores required, are specez80acclaim! Family

More information

SWE 760 Lecture 1: Introduction to Analysis & Design of Real-Time Embedded Systems

SWE 760 Lecture 1: Introduction to Analysis & Design of Real-Time Embedded Systems SWE 760 Lecture 1: Introduction to Analysis & Design of Real-Time Embedded Systems Hassan Gomaa References: H. Gomaa, Chapters 1, 2, 3 - Real-Time Software Design for Embedded Systems, Cambridge University

More information

Hardware Software Bring-Up Solutions for ARM v7/v8-based Designs. August 2015

Hardware Software Bring-Up Solutions for ARM v7/v8-based Designs. August 2015 Hardware Software Bring-Up Solutions for ARM v7/v8-based Designs August 2015 SPMI USB 2.0 SLIMbus RFFE LPDDR 2 LPDDR 3 emmc 4.5 UFS SD 3.0 SD 4.0 UFS Bare Metal Software DSP Software Bare Metal Software

More information

Reservation-Based Scheduling for IRQ Threads

Reservation-Based Scheduling for IRQ Threads Reservation-Based Scheduling for IRQ Threads Luca Abeni, Nicola Manica, Luigi Palopoli luca.abeni@unitn.it, nicola.manica@gmail.com, palopoli@dit.unitn.it University of Trento, Trento - Italy Reservation-Based

More information