CS 5150 1 CS 5150 Software Engineering Lecture 25 Performance.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

Network II.5 simulator ..
I/O Management and Disk Scheduling
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
Input/Output Management and Disk Scheduling
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
CS CS 5150 Software Engineering Lecture 19 Performance.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 19 Performance of Computer Systems.
1 CSSE 477 – A bit more on Performance Steve Chenoweth Friday, 9/9/11 Week 1, Day 2 Right – Googling for “Performance” gets you everything from Lady Gaga.
Reliability Week 11 - Lecture 2. What do we mean by reliability? Correctness – system/application does what it has to do correctly. Availability – Be.
Computational Astrophysics: Methodology 1.Identify astrophysical problem 2.Write down corresponding equations 3.Identify numerical algorithm 4.Find a computer.
11/14/05ELEC Fall Multi-processor SoCs Yijing Chen.
CS CS 5150 Software Engineering Lecture 24 Reliability 4.
CS 501: Software Engineering Fall 2000 Lecture 19 Performance of Computer Systems.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Chapter 1 Introduction 1.1A Brief Overview - Parallel Databases and Grid Databases 1.2Parallel Query Processing: Motivations 1.3Parallel Query Processing:
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
Performance Evaluation
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
EET 4250: Chapter 1 Performance Measurement, Instruction Count & CPI Acknowledgements: Some slides and lecture notes for this course adapted from Prof.
Device Management.
1 CS 501 Spring 2007 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Cmpt-225 Simulation. Application: Simulation Simulation  A technique for modeling the behavior of both natural and human-made systems  Goal Generate.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
Performance Concepts Mark A. Magumba. Introduction Research done on 1058 correspondents in 2006 found that 75% OF them would not return to a website that.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Lecture 1: Performance EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2013, Dr. Rozier.
1 Performance Evaluation of Computer Systems and Networks Introduction, Outlines, Class Policy Instructor: A. Ghasemi Many thanks to Dr. Behzad Akbari.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
1 Computer Architecture Research Overview Rajeev Balasubramonian School of Computing, University of Utah
1 Recap (from Previous Lecture). 2 Computer Architecture Computer Architecture involves 3 inter- related components – Instruction set architecture (ISA):
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology Sections 1.5 – 1.11.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
1 CS 501 Spring 2006 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
L7: Performance Frans Kaashoek Spring 2013.
PARALLEL APPLICATIONS EE 524/CS 561 Kishore Dhaveji 01/09/2000.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Computer Organization & Assembly Language © by DR. M. Amer.
CS 360 Lecture 11.  In most computer systems:  The cost of people (development) is much greater than the cost of hardware  Yet, performance is important.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems with Multi-programming Chapter 4.
Morgan Kaufmann Publishers
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Winter 2007SEG2101 Chapter 111 Chapter 11 Implementation Design.
NETE4631: Network Information System Capacity Planning (2) Suronapee Phoomvuthisarn, Ph.D. /
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Chapter 5: Computer Systems Design and Organization Dr Mohamed Menacer Taibah University
1 CS 501 Spring 2008 CS 501: Software Engineering Lectures 25 and 26 Performance of Computer Systems.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 23 Performance of Computer Systems.
Software System Performance CS 560. Performance of computer systems In most computer systems:  The cost of people (development) is much greater than.
Introduction to Performance Tuning Chia-heng Tu PAS Lab Summer Workshop 2009 June 30,
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
Introduction to Computers - Hardware
OPERATING SYSTEMS CS 3502 Fall 2017
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Morgan Kaufmann Publishers
Architecture & Organization 1
Software System Performance
Architecture & Organization 1
I/O Systems I/O Hardware Application I/O Interface
CS703 - Advanced Operating Systems
Computer Evolution and Performance
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Software System Performance
Virtual Memory: Working Sets
Presentation transcript:

CS CS 5150 Software Engineering Lecture 25 Performance

CS Administration Assignment 4 Remember to submit your surveys when you submit your final reports.

CS Performance of Computer Systems In most computer systems The cost of people is much greater than the cost of hardware Yet performance is important A single bottleneck can slow down an entire system Future loads may be much greater than predicted

CS When performance matters Real time systems when computation must be fast enough to support the service provided, e.g., fly-by wire control systems have tight response time requirements. Very large computations where elapsed time may be measured in days, e.g., calculation of weather forecasts must be fast enough for the forecasts to be useful. User interfaces where humans have high expectations, e.g., mouse tracking must appear instantaneous. Transaction processing where staff need to be productive, e.g., airline check-in.

CS High-performance computing High-performance computing: Large data collections (e.g., Amazon) Huge numbers of users (e.g., Google) Large computations (e.g., weather forecasting) Must balance cost of hardware against cost of software development Some configurations are very difficult to program and debug Sometimes it is possible to isolate applications programmers from the system complexities CS/Info 5300, Architecture of Large-Scale Information Systems

CS Performance challenges for all software systems Tasks Predict performance problems before a system is implemented. Design and build a system that is not vulnerable to performance problems. Identify causes and fix problems after a system is implemented.

CS Performance challenges for all software systems Basic techniques Understand how the underlying hardware and networking components interact when executing the system For each component calculate the capacity and load Identify components that are near peak capacity

CS Timescale of Different Components Operations per second CPU instruction:1,000,000,000 Disk latency: 100 read: 25,000,000 bytes Network LAN: 10,000,000 bytes Actual performance may be considerably less than the theoretical peak

CS Understand the Interactions between Hardware and Software Examples In a distributed system, what messages pass between nodes? How many times must the system read from disk for a single transaction? What blocking and caching is used? Are operations in parallel or sequential? Are other systems competing for a shared resource (e.g., network or server farm)? How does the operating system schedule tasks?

CS Look for Bottlenecks Usually, CPU performance is not the limiting factor. Hardware bottlenecks: Reading data from disk Shortage of memory (including paging) Moving data from memory to CPU Network capacity Inefficient software: Algorithms that do not scale well Parallel and sequential processing

CS Look for Bottlenecks CPU performance is a limiting constraint in certain domains, e.g.: large data analysis (e.g., searching) mathematical computation (e.g., weather models) compression and encryption multimedia (e.g., video) perception (e.g., image processing)

CS Look for Bottlenecks: Utilization utilization = mean service time for a request mean inter-arrival time of requests When the utilization of any hardware component exceeds 30%, be prepared for congestion. Peak loads and temporary increases in demand can be much greater than the average. Utilization is the proportion of the capacity of a service that is used on average.

CS Predicting System Performance Mathematical models (queueing theory) Direct measurement on subsystem (benchmark) Simulation All require detailed understanding of the interaction between software and hardware systems. Rules of thumb

CS Mathematical Models Queueing theory Good estimates of congestion can be made for single- server queues with: arrivals that are independent, random events (Poisson process) service times that follow families of distributions (e.g., negative exponential, gamma) Many of the results can be extended to multi-server queues. Much of the early work in queueing theory by Erlang was to model traffic flow in telephone networks

CS Mathematical Models: Queues arrivewait in lineservicedepart Single server queue

CS Queues arrivewait in line service depart Multi-server queue

CS Behavior of Queues: Utilization mean delay before service begins utilization of service 10

CS Measurements on Operational Systems Benchmarks: Run system on standard problem sets, sample inputs, or a simulated load on the system. Instrumentation: Clock specific events. If you have any doubt about the performance of part of a system, experiment with a simulated load.

CS Example: Web Laboratory Benchmark: Throughput v. number of CPUs on SMP total MB/s average / CPU

CS Techniques: Simulation Build a computer program that models the system as set of states and events advance simulated time determine which events occurred update state and event list repeat Discrete time simulation: Time is advanced in fixed steps (e.g., 1 millisecond) Next event simulation: Time is advanced to next event Events can be simulated by random variables (e.g., arrival of next customer, completion of disk latency)

CS Case Study: Performance of Disk Array When many transaction use a disk array, each transaction must: wait for specific disk wait for I/O channel send signal to move heads on disk wait for I/O channel pause for disk rotation (latency) read data Close agreement between: results from queuing theory, simulation, and direct measurement (within 15%).

CS Fixing Bad Performance If a system performs badly, begin by identifying the cause: Instrumentation. Add timers to the code. Often this will reveal that delays are centered in a specific part of the system. Test loads. Run the system with varying loads, e.g., high transaction rates, large input files, many users, etc. This may reveal the characteristics of when the system runs badly. Design and code reviews. Team review of system design, program design, and suspect sections of code. This may reveal an algorithm that is running very slowly, e.g., a sort, locking procedure, etc. Fix the underlying cause or the problem will return!

CS Predicting Performance Change: Moore's Law Original version: The density of transistors in an integrated circuit will double every year. (Gordon Moore, Intel, 1965) Current version: Cost/performance of silicon chips doubles every 18 months.

CS Moore's Law: Rules of Thumb Planning assumptions: Silicon chips: cost/performance improves 25% / year in 12 years = 30:1 in 24 years = 1,000:1 Magnetic media: cost/performance improves 30% / year in 12 years = 70:1 in 24 years = 5,000:1 These assumptions are conservative. In recent years the increases have been considerably faster.

CS Moore's Law Example Surely there will be some fundamental changes in how this this power is packaged and used. or 100 processors? Will this be a typical laptop? Processors2 x 2.5 GHz8 x 20 GHz Memory 2 GB 60 GB Disc 250 GB 12 TB Network 1 Gb/s 25 Gb/s

CS Moore's Law and System Design Feasibility study: 2010 Production use: 2013 Withdrawn from production: 2023 Processor speeds: Memory sizes: Disk capacity: System cost:

CS Parkinson's Law Original: Work expands to fill the time available. (C. Northcote Parkinson) Planning assumptions: (a) Demand will expand to use all the hardware available. (b) Low prices will create new demands. (c) Your software will be used on equipment that you have not envisioned.

CS False Assumptions from the Past Be careful about the assumptions that you make Here are some past assumptions that caused problems: Unix file system will never exceed 2 Gbytes (2 32 bytes). AppleTalk networks will never have more than 256 hosts (2 8 bits). GPS software will not last more than 1024 weeks. Two bytes are sufficient to represent a year (Y2K bug). etc., etc.,.....

CS Moore's Law and the Long Term

CS Moore's Law and the Long Term 1965 When? What level? 2010? Within your working life?