1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 19 Performance of Computer Systems.

Slides:



Advertisements
Similar presentations
Section 6.2. Record data by magnetizing the binary code on the surface of a disk. Data area is reusable Allows for both sequential and direct access file.
Advertisements

I/O Management and Disk Scheduling
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 11 Designing for Usability I.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Measuring and Modeling Hyper-threaded Processor Performance Ethan Bolker UMass-Boston September 17, 2003.
CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
CS CS 5150 Software Engineering Lecture 19 Performance.
1 History of Computers Module 1 Section 1 Source: nfo.lindows.com/examples/powerpoint_example2.ppt.
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.
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.
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Performance Evaluation
CS CS 5150 Software Engineering Lecture 25 Performance.
Device Management.
1 CS 501 Spring 2007 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 22 Performance of Computer Systems.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
MIS 175 Spring Learning Objectives When you finish this chapter, you will: –Recognize major components of an electronic computer. –Understand how.
1.Training and education 2.Consulting 3.Travel 4.Hardware 5.Software Which of the following is not included in a firm’s IT infrastructure investments?
Computer Architecture and Organization
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Exponential and Chi-Square Random Variables
Computer Science and Engineering Copyright by Hesham El-Rewini Advanced Computer Architecture.
Mark Franklin, S06 CS, CoE, EE 362 Digital Computers II: Architecture Prof. Mark Franklin: Course Assistants: –Drew Frank:
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.
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.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 23 Reliability III.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 February Session 6.
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.
Lecture 19 Nov10, 2010 Discrete event simulation (Ross) discrete and continuous distributions computationally generating random variable following various.
L7: Performance Frans Kaashoek Spring 2013.
Chapter 17 Looking “Under the Hood”. 2Practical PC 5 th Edition Chapter 17 Getting Started In this Chapter, you will learn: − How does a computer work.
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.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
1 CS 501 Spring 2008 CS 501: Software Engineering Lectures 25 and 26 Performance of Computer Systems.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 27 Software Engineering as Engineering.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 23 Performance of Computer Systems.
Dr. Anis Koubâa CS433 Modeling and Simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
What does the Acronym MIS Stand for? 1.Management Information Systems 2.Maintenance Information Systems 3.Management Information Software 4.Management.
Parallel IO for Cluster Computing Tran, Van Hoai.
Software System Performance CS 560. Performance of computer systems In most computer systems:  The cost of people (development) is much greater than.
CC311 Computer Architecture Chapter 1 Computer Abstraction & Technology.
Computer Organization IS F242. Course Objective It aims at understanding and appreciating the computing system’s functional components, their characteristics,
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 15 System Architecture III.
Introduction to Computers - Hardware
Chapter 17 Looking “Under the Hood”
OPERATING SYSTEMS CS 3502 Fall 2017
Processing Device and Storage Devices
OPERATING SYSTEMS CS 3502 Fall 2017
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Architecture & Organization 1
Queuing Theory Queuing Theory.
CS 501: Software Engineering
Lecture # 1 M.Sc / BS(CS)/ BS(I.T) DPT.
Chapter 10 Verification and Validation of Simulation Models
Architecture & Organization 1
short term and long term speed, capacity, compression formats, access
Five Key Computer Components
Computer Evolution and Performance
Presentation transcript:

1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 19 Performance of Computer Systems

2 CS 501 Spring 2002 Administration Quiz 3 Collect after class. Final presentations Sign up now. Available time slots are on the web site.

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

4 CS 501 Spring 2002 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.

5 CS 501 Spring 2002 Moore's Law and System Design Design system: 2002 Production use: 2005 Withdrawn from production: 2015 Processor speeds: Memory sizes: Disk capacity: System cost:

6 CS 501 Spring 2002 Moore's Law: Rules of Thumb Planning assumptions: Every year: cost/performance of silicon chips improves 25% cost/performance of magnetic media improves 30% 10 years = 100:1 20 years = 10,000:1

7 CS 501 Spring 2002 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.

8 CS 501 Spring 2002 False Assumptions 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 1024 weeks. Nobody at Dartmouth will ever earn more than $10,000 per month. etc., etc.,.....

9 CS 501 Spring 2002 Moore's Law and the Long Term 1965 When? What level? 2000? Within your working life?

10 CS 501 Spring 2002 Predicting System Performance Mathematical models Simulation Direct measurement Rules of thumb All require detailed understanding of the interaction between software and systems.

11 CS 501 Spring 2002 Understand the Interactions between Hardware and Software :Thread:Toolkit:ComponentPeertarget:HelloWorld run callbackLoop handleExpose paint

12 CS 501 Spring 2002 DecompressStream audioStream video fork join start state stop state Understand Interactions between Hardware and Software

13 CS 501 Spring 2002 Look for Bottlenecks Possible areas of congestion Network load Database access how many joins to build a record? Locks and sequential processing CPU performance is rarely a factor, except in mathematical algorithms. More likely bottlenecks are: Reading data from disk Moving data from memory to CPU.

14 CS 501 Spring 2002 Look for Bottlenecks: Utilization utilization = mean service time mean inter-arrival time When the utilization of any hardware component exceeds 30%, be prepared for congestion.

15 CS 501 Spring 2002 Techniques for Eliminating Bottlenecks Serial and Parallel Processing Single thread v. multi-thread e.g., Unix fork Granularity of locks on data e.g., record locking Network congestion e.g., back-off algorithms

16 CS 501 Spring 2002 Mathematical Models: Queues arrivewait in lineservicedepart Single server queue

17 CS 501 Spring 2002 Queues arrivewait in line service depart Multi-server queue

18 CS 501 Spring 2002 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.

19 CS 501 Spring 2002 Behavior of Queues: Utilization mean delay utilization 10

20 CS 501 Spring 2002 Simulation Model 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)

21 CS 501 Spring 2002 Timescale Operations per second CPU instruction:400,000,000 Disk latency: 60 read: 25,000,000 bytes Network LAN: 10,000,000 bytes dial-up modem: 6,000 bytes

22 CS 501 Spring 2002 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.

23 CS 501 Spring 2002 Example: Performance of Disk Array Each transaction must: wait for specific disk platter wait for I/O channel signal to move heads on disk platter wait for I/O channel pause for disk rotation read data Close agreement between: results from queuing theory, simulation, and direct measurement (within 15%).

24 CS 501 Spring 2002 Discussion of Pfleeger, Chapter 7 Format: State a question. Ask a member of the class to answer. (Sorry if I pronounce your name wrongly.) Provide opportunity for others to comment. When answering: Stand up. Give your name or NetID. Make sure the TA hears it. Speak clearly so that all the class can hear.

25 CS 501 Spring 2002 Question 1: Documentation Standards (a) What is the purpose of standard documentation? (b) Who should create the documentation standards? (c) What documentation standards are you following in your project? (Be honest!)

26 CS 501 Spring 2002 Question 2: Good Programming You are judging a Good Programmer Competition. (a) Give four criteria for what constitutes good programming style. (b) Give four additional criteria for what constitutes a good programmer. (c) What is the most flattering thing that you can say about a programmer?

27 CS 501 Spring 2002 Question 3: Maintenance Most production programs are maintained by people other than the programmers who originally wrote them. (a) What factors make a program easy for somebody else to maintain? (b) What factors make a program hard for somebody else to maintain?

28 CS 501 Spring 2002 Question 4: Documentation Standards (a) What is the purpose of standard documentation? (b) Who should create the documentation standards? (c) What documentation standards are you following in your project? (Be honest!)

29 CS 501 Spring 2002 Question 5: Data Structures (a) How should you decide what data structures to use in a program? (b) What can you do in designing data structures to help the people who will maintain your programs? (c)What should you do about the performance of algorithms that create and work on your data structures?

30 CS 501 Spring 2002 Question 6: Risks (a) What are the main risks in writing programs? (b) How can you minimize these risks?