Скачать презентацию ASU MAT 591 Opportunities in Industry Performance Modeling Скачать презентацию ASU MAT 591 Opportunities in Industry Performance Modeling

92fbfb32dda805f9ef00d12d45d29969.ppt

  • Количество слайдов: 37

ASU MAT 591: Opportunities in Industry Performance Modeling Bo Faser Lockheed Martin Management & ASU MAT 591: Opportunities in Industry Performance Modeling Bo Faser Lockheed Martin Management & Data Systems Intelligence, Surveillance, and Reconnaissance Systems Litchfield Park, Arizona October 18, 2004 bo. b. faser@lmco. com 1

ASU MAT 591: Opportunities in Industry Topics l l l Performance Modeling Overview Tool ASU MAT 591: Opportunities in Industry Topics l l l Performance Modeling Overview Tool “Demonstration” System Model Examples Modeling Storage Systems Project Overview/Discussion 2

ASU MAT 591: Opportunities in Industry Performance Modeling Overview 3 ASU MAT 591: Opportunities in Industry Performance Modeling Overview 3

ASU MAT 591: Opportunities in Industry Performance Modeling l What is it? – Performance ASU MAT 591: Opportunities in Industry Performance Modeling l What is it? – Performance modeling is a method of characterizing and understanding system behavior in order to predict system performance. § Generally refers to timeline performance. 4

ASU MAT 591: Opportunities in Industry Performance Modeling l Why do we do it? ASU MAT 591: Opportunities in Industry Performance Modeling l Why do we do it? – We use performance models to make good design decisions § § § Perform trade studies (processing power vs. bandwidth, disk storage vs. tape storage, microcoding vs. high level programming, vendor A vs. vendor B, everything vs. cost) Find bottlenecks in the system (load balance) Predict performance of different input scenarios/test robustness of system (sensitivity studies) – We use performance models to predict the effect of changes to operational systems – Bottom line: We need to ensure that systems will satisfy timeline performance requirements while taking into account system design constraints. 5

ASU MAT 591: Opportunities in Industry Performance Modeling l Performance modeling is necessary in ASU MAT 591: Opportunities in Industry Performance Modeling l Performance modeling is necessary in all program phases – – Proposal Phase Early Program Phase Preliminary Design Phase Detailed Design Phase 6

ASU MAT 591: Opportunities in Industry Proposal Phase l In the proposal phase, performance ASU MAT 591: Opportunities in Industry Proposal Phase l In the proposal phase, performance modeling is used to estimate at a very high level the hardware required to meet the proposal requirements in order to develop the bid. – Roughly estimate the algorithm based on past work and engineering estimates § For example to calculate the number of compute strings: calculate number of FLOPs (floating point operations) for the estimated number of FFTs in the algorithm, divide by the sustained FLOP rate of a known high performance computer scaled to future performance. – This is generally done in a very short period of time in a spreadsheet. 7

ASU MAT 591: Opportunities in Industry Early Program Phase l In the early part ASU MAT 591: Opportunities in Industry Early Program Phase l In the early part of a program, performance modeling is used to determine the right performance requirements to levy on the system. – Two ways to look at performance § § Timelines for specific jobs (e. g. , job type A needs to be done in 5 minutes) Throughput of system (e. g. , the system must be able to process 1000 job type A per day) 8

ASU MAT 591: Opportunities in Industry Preliminary Design Phase l l l The focus ASU MAT 591: Opportunities in Industry Preliminary Design Phase l l l The focus of this discussion will be predominantly hardware (high performance computers, storage and communication) Usually we have to begin hardware procurement long before we have a well defined algorithm. We work with the algorithm group to determine the driving algorithm areas. – Within each area, we determine the driving algorithm functions. – In Synthetic Aperture Radar (SAR) data processing, the driver is usually a combination of FFTs and memory management. 9

ASU MAT 591: Opportunities in Industry Preliminary Design Phase l Develop Algorithm Processing Opscon ASU MAT 591: Opportunities in Industry Preliminary Design Phase l Develop Algorithm Processing Opscon – Determine the areas of the algorithm that are parallelizable. § § § Definition: In this discussion, a compute string or just a string is a high performance computer that has main memory and many processors (generally 8 -256 processors per string). Some functions are not parallelizable (for example: processing of a vector depends on the results of the previous vector). Many functions are parallelizable but the communication required makes parallelization infeasible. l l Interprocessor communication becoming less of a big deal as compute strings are designed with large main memory that can (theoretically) be accessed by every processor. Inter-string communication is usually very slow and is therefore avoided. 10

ASU MAT 591: Opportunities in Industry Preliminary Design Phase l We need to refine ASU MAT 591: Opportunities in Industry Preliminary Design Phase l We need to refine our estimates from the proposal phase where we simply looked at FLOPs and determine clock cycles – Processors generally can perform more than one operation per clock cycle (e. g. , 4 multiplies and two adds may be performed simultaneously). Great! If the algorithm can exploit this. – We need to determine how the algorithm can map to the various vendors’ processors. – The modeling of this mapping is getting more difficult as vendors are using operation scheduling and doing out of order operations. 11

ASU MAT 591: Opportunities in Industry Preliminary Design Phase l l Now you have ASU MAT 591: Opportunities in Industry Preliminary Design Phase l l Now you have string processing time. We can do that in a spreadsheet. – There is a lot more to the system latency than just string processing time. l To understand the performance of the system, we need to look at the interaction of the jobs in the system to understand design for resource contention (queues). 12

ASU MAT 591: Opportunities in Industry Example Architecture 13 ASU MAT 591: Opportunities in Industry Example Architecture 13

ASU MAT 591: Opportunities in Industry Timeline Performance Models 14 ASU MAT 591: Opportunities in Industry Timeline Performance Models 14

ASU MAT 591: Opportunities in Industry Timeline Performance Models l The type of models ASU MAT 591: Opportunities in Industry Timeline Performance Models l The type of models that we are talking about are: – Dynamic: Represents system as it changes over time – Stochastic: Has components that are subject to chance – Discrete Event: State of system changes instantaneously at the times that events occur 15

ASU MAT 591: Opportunities in Industry Timeline Performance Models l l Discrete event simulation ASU MAT 591: Opportunities in Industry Timeline Performance Models l l Discrete event simulation modeling could theoretically be done by hand Example: – The system: § § § 1 Compute String Interrarrival times of jobs are exponentially distributed with mean 2 minutes Service Times are exponentially distributed with mean 1 minute – We want to know average latency for a job (time it takes to get through the system) § We will run the simulation through the first three jobs 16

ASU MAT 591: Opportunities in Industry Timeline Performance Models l Let interarrival times and ASU MAT 591: Opportunities in Industry Timeline Performance Models l Let interarrival times and service times for first three jobs be l The event list 17

ASU MAT 591: Opportunities in Industry Timeline Performance Models l Generally the systems are ASU MAT 591: Opportunities in Industry Timeline Performance Models l Generally the systems are too complex and the number of events that we want to observe are too many to do the modeling by hand so we develop computer program simulations (models) 18

ASU MAT 591: Opportunities in Industry Timeline Performance Models l What does a performance ASU MAT 591: Opportunities in Industry Timeline Performance Models l What does a performance model need? – Main Program to execute model including initialization routine and output report generator – Event List – Simulation Clock – Routines for advancing clock, executing events, and generating random variables – Storage for state variables and statistics (things you want to measure) l Performance modeling can be done in any programming language but there are packages specifically designed to take care of the bookkeeping for us. 19

ASU MAT 591: Opportunities in Industry Tool “Demonstration” 20 ASU MAT 591: Opportunities in Industry Tool “Demonstration” 20

ASU MAT 591: Opportunities in Industry COTS Modeling Packages l There are numerous commercial ASU MAT 591: Opportunities in Industry COTS Modeling Packages l There are numerous commercial off the shelf modeling packages available – We use Hyperformix Workbench § § § Discrete Event Simulation Package built on C code Not particular to any industry modeling (very powerful) GUI interface l § l Models can be run in “animate” mode l § § High level models can be built very quickly Models are easy to understand l Useful for explanation/demonstration Useful for debug/test Models can be complied into executable code that can be run on platform without Workbench tool Provides easy interface statistics gathering and reporting 21

ASU MAT 591: Opportunities in Industry SES Workbench Model Main Module Dependence Arc Create ASU MAT 591: Opportunities in Industry SES Workbench Model Main Module Dependence Arc Create modules under model tab 22

ASU MAT 591: Opportunities in Industry SES Workbench Model Node Palette sub models 23 ASU MAT 591: Opportunities in Industry SES Workbench Model Node Palette sub models 23

ASU MAT 591: Opportunities in Industry SES Workbench Model Response arc (gathers stats) declaration ASU MAT 591: Opportunities in Industry SES Workbench Model Response arc (gathers stats) declaration node source node service node sink node 24

ASU MAT 591: Opportunities in Industry SES Workbench Model Exponentially dist. mean 2 Can ASU MAT 591: Opportunities in Industry SES Workbench Model Exponentially dist. mean 2 Can track statistics for different job types 25

ASU MAT 591: Opportunities in Industry SES Workbench Model Queuing discipline 26 ASU MAT 591: Opportunities in Industry SES Workbench Model Queuing discipline 26

ASU MAT 591: Opportunities in Industry SES Workbench Model 27 ASU MAT 591: Opportunities in Industry SES Workbench Model 27

ASU MAT 591: Opportunities in Industry SES Workbench Model Module time unit Right click ASU MAT 591: Opportunities in Industry SES Workbench Model Module time unit Right click on module to get specification 28

ASU MAT 591: Opportunities in Industry SES Workbench Model Will run until no events ASU MAT 591: Opportunities in Industry SES Workbench Model Will run until no events on event list or 100 minutes (sim time) Whichever is less Will give status every 10 minutes (sim time) 29

ASU MAT 591: Opportunities in Industry SES Workbench Model Reports status at report interval ASU MAT 591: Opportunities in Industry SES Workbench Model Reports status at report interval 30

ASU MAT 591: Opportunities in Industry SES Workbench Model MM 1_model. rpt file reports ASU MAT 591: Opportunities in Industry SES Workbench Model MM 1_model. rpt file reports all statistics that have been gathered Output from response arc 31

ASU MAT 591: Opportunities in Industry System Model Examples 32 ASU MAT 591: Opportunities in Industry System Model Examples 32

ASU MAT 591: Opportunities in Industry What kind of systems do we model? l ASU MAT 591: Opportunities in Industry What kind of systems do we model? l l Complex End to End Systems Compute Intensive/Data Intensive Functional Block Diagram Data Capture Data Storage Data Processing Data Distribution Data Archive 33

What kind of questions are we trying to answer? ASU MAT 591: Opportunities in What kind of questions are we trying to answer? ASU MAT 591: Opportunities in Industry l l l How many compute servers do we need to meet our timeline requirements? What is the processor utilization? What is the average wait in the processor queue? What is the average wait in the output queue? What is the maximum amount of bandwidth the disk needs to provide? What is the optimal compute server configuration? Should we overlap I/O and processing? What is the 90 th percentile for end-to-end latency? How much working memory do I need on my processors? How much data should I leave on disk/tape? Which algorithm will run the fastest? 34

ASU MAT 591: Opportunities in Industry Modeling Process l l l Performance Requirements Candidate ASU MAT 591: Opportunities in Industry Modeling Process l l l Performance Requirements Candidate Hardware/Software Specifications Design Constraints System Usage Scenario System Operational Concept Performance Model l l Timeline Performance Predictions Utilization Predictions 35

ASU MAT 591: Opportunities in Industry The Marketing Pitch By doing detailed performance modeling ASU MAT 591: Opportunities in Industry The Marketing Pitch By doing detailed performance modeling you WILL: Avoid buying more hardware than you need Avoid buying more bandwidth than you need Avoid Have a tool for determining the best operating concept for your system making Have the ability to “try before you buy” stupid decisions Give your customers peace of mind that their complex system will meet its requirements. 36

ASU MAT 591: Opportunities in Industry Why is modeling a cool job? l Understand ASU MAT 591: Opportunities in Industry Why is modeling a cool job? l Understand the system from end to end – Breadth not necessarily depth knowledge l l l Can influence architecture design and opscon design Get to “see” the system performance before the system is operational Get to work with the latest HPC technology. 37