1 CS 501 Spring 2006 CS 501: Software Engineering Lecture 22 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
Input/Output Management and Disk Scheduling
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.
Computational Astrophysics: Methodology 1.Identify astrophysical problem 2.Write down corresponding equations 3.Identify numerical algorithm 4.Find a computer.
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.
Server Platforms Week 11- Lecture 1. Server Market $ 46,100,000,000 ($ 46.1 Billion) Gartner.
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Performance Evaluation
CS CS 5150 Software Engineering Lecture 25 Performance.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
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.
Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI CSCI.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Lecture 11: DMBS Internals
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
IT 344: Operating Systems Winter 2010 Module 13 Secondary Storage Chia-Chi Teng CTB 265.
Computer Science and Engineering Copyright by Hesham El-Rewini Advanced Computer Architecture.
 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.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 16 System Architecture and Design II.
Implementing Processes and Process Management Brian Bershad.
Course ILT Basics of information technology Unit objectives Define “information technology” (IT), distinguish between hardware and software, and identify.
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.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 February Session 6.
Frank Casilio Computer Engineering May 15, 1997 Multithreaded Processors.
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.
Price Performance Metrics CS3353. CPU Price Performance Ratio Given – Average of 6 clock cycles per instruction – Clock rating for the cpu – Number of.
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.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
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.
Storage Systems CSE 598d, Spring 2007 Lecture ?: Rules of thumb in data engineering Paper by Jim Gray and Prashant Shenoy Feb 15, 2007.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
Parallel IO for Cluster Computing Tran, Van Hoai.
Hardware Trends CSE451 Andrew Whitaker. Motivation Hardware moves quickly OS code tends to stick around for a while “System building” extends way beyond.
Software System Performance CS 560. Performance of computer systems In most computer systems:  The cost of people (development) is much greater than.
CSE 451: Operating Systems Spring 2010 Module 12.5 Secondary Storage John Zahorjan Allen Center 534.
Introduction to Computers - Hardware
OPERATING SYSTEMS CS 3502 Fall 2017
Processing Device and Storage Devices
OPERATING SYSTEMS CS 3502 Fall 2017
Architecture & Organization 1
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Software System Performance
Architecture & Organization 1
Building a Database on S3
CSE 451: Operating Systems Winter 2007 Module 13 Secondary Storage
CSE 451: Operating Systems Spring 2006 Module 13 Secondary Storage
Five Key Computer Components
CSE 451: Operating Systems Secondary Storage
Computer Evolution and Performance
Software System Performance
Presentation transcript:

1 CS 501 Spring 2006 CS 501: Software Engineering Lecture 22 Performance of Computer Systems

2 CS 501 Spring 2006 Administration

3 CS 501 Spring 2006 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 2006 Performance Challenges Tasks Predict performance problems before a system is implemented Identify causes and fix problems after a system is implemented Basic techniques Understand how the underlying hardware and networking components interact when executing the system Calculate the capacity and load on each component Identify components that are approaching peak capacity

5 CS 501 Spring 2006 Understand the Interactions between Hardware and Software Example: execution of Client Servers domain name service TCP connection HTTP get

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

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

8 CS 501 Spring 2006 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 (including paging) Moving data from memory to CPU

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

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

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

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

13 CS 501 Spring 2006 Mathematical Models: Queues arrivewait in lineservicedepart Single server queue

14 CS 501 Spring 2006 Queues arrivewait in line service depart Multi-server queue

15 CS 501 Spring 2006 Behavior of Queues: Utilization mean delay utilization 10

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

17 CS 501 Spring 2006 Example: Web Laboratory Benchmark: Throughput v. number of CPUs total MB/s average / CPU

18 CS 501 Spring 2006 Techniques: 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)

19 CS 501 Spring 2006 Case Study: Performance of Disk Array When many transaction use a 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%).

20 CS 501 Spring 2006 Example: Web Laboratory Balance of Resources IdealRealistic Networking500 Mbit/sec100 Mbit/sec Data onlineallfew crawls/year Metadata onlineallall? Disk750 TB240 TB Tape archiveall few crawls/year Computersresearchshared separatewith storage

21 CS 501 Spring 2006 Fixing Bad Performance If a system performs badly, begin by identifying the cause: Instrumentation. Add timers to the code. Often this will reveal that the delays are centered in one 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. Have a team review the system design and suspect sections of code for performance problems. 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!

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

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

24 CS 501 Spring 2006 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

25 CS 501 Spring 2006 Moore's Law and System Design Design system: 2006 Production use: 2009 Withdrawn from production: 2019 Processor speeds: Memory sizes: Disk capacity: System cost:

26 CS 501 Spring 2006 Moore's Law Example Will this be a typical personal computer? Processor 2 GHz50 GHz Memory512 MB 14 GB Disc 50 GB 2 TB Network100 Mb/s1 Gb/s Surely there will be some fundamental changes in how this this power is packaged and used.

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

28 CS 501 Spring 2006 False Assumptions from the Past 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.,.....

29 CS 501 Spring 2006 Moore's Law and the Long Term 1965 What level? 2005

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