ICOM 6115 COMPUTER SYSTEMS PERFORMANCE MEASUREMENT AND EVALUATION
























- Slides: 24

ICOM 6115: COMPUTER SYSTEMS PERFORMANCE MEASUREMENT AND EVALUATION Nayda G. Santiago August 18, 2006

Administrative Stuff o Quiz 1 n August 23, 2006, Wednesday o n o Web. CT – if activated Article: Designing computer architecture research workloads Students who do not have cards to access lab n Cesar and Idalys

Back to performance measurements o How to measure software performance on a system?

Experiment o In order to analyze the performance of an application, one has to conduct one or more experiments to find out about its possible performance problems.

General Structure of Measurement o Typical execution of an application program Source repository Output Data Repository Control system Input Data Source Code Compilation System Executable Executor/ Launcher Application Process

Typical execution of an application program o Typical execution of an application program n n The source code of the application is either available directly or through a repository control system like RCS or CVS which also allows to store and access multiple versions of the application's code at the same time in a so-called source repository. A compilation system is used to produce an executable. o The compilation system typically consists of several phases including preprocessors, parsers, optimizers, assemblers, linkers, and runtime libraries. Compilation systems for high-level parallel languages like HPF often generate output in another language like Fortran or C in a first step and then use compiler systems for these languages to produce an executable.

Typical execution of an application program o A launcher / executor takes the executable and suitable input data and executes it as one ore more application processes on a computer system. n Launching an application can be done interactively (e. g. through a UNIX shell program or a program manager) or through a batch system under the control of a command script. Typically, the program generates some output data containing the results of the computation.

Instrumentation o In order to determine the performance of an application, the application has to be modified in order to insert code which collects information about the performance of the program. This process is called instrumentation. This can be done in several ways: n n n A source code instrumentor modifies the original source code to add the necessary measurement instructions. It is typically implemented as a source-to-source translation tool which runs as a preprocessor before the actual compilation or it is handled by the compilation system itself. An object code instrumentor modifies object code or executables to accomplish the same task. An dynamic instrumentor also modifies executables but does this during the execution of the program. It has the great advantage that instrumentation can be changed / adapted during the execution.

Measurement Experiment Setup

Selecting Performance Metrics Request System Correct Resource Not Correct Probability Eventk Errori Time between Duration Time between Availability Not Done Rate Reliability Done Time Speed response time n. An unbounded, random variable … representing the elapses between the time of sending a message and the time when the error diagnostic is received. – S. Kelly-Bootle, The Devil’s DP Dictionary

Selecting Performance Metrics o Mean is what usually matters n o But variance for some (ex: response time) Individual vs. Global n n May be at odds Increase individual may decrease global o n Increase global may not be most fair o o Ex: response time at the cost of throughput Ex: throughput of cross traffic Performance optimizations of bottleneck have most impact n n Example: Response time of Web request Client processing 1 s, Latency 500 ms, Server processing 10 s Total is 11. 5 s Improve client 50%? 11 s Improve server 50%? 6. 5 s

Selecting Performance Metrics o May be more than one set of metrics n o Resources: Queue size, CPU Utilization, Memory Use … Criteria for selecting subset, choose: n n Low variability – need fewer repetitions Non redundancy – don’t use 2 if 1 will do o n ex: queue size and delay may provide identical information Completeness – should capture tradeoffs o ex: one disk may be faster but may return more errors so add reliability measure

Commonly Used Performance Metrics o Response Time n n n o Throughput n n o Turn around time Reaction time Stretch factor Operations/second Capacity Efficiency Utilization Reliability n n Uptime MTTF

Response Time o Interval between user’s request and system response User’s Request System’s Response Time • But simplistic since requests and responses are not instantaneous • Users type and system formats

Response Time User Starts Request User Finishes Request System Starts Execution System Starts Response System Finishes Response Time Reaction Time Think Time Response Time 1 Response Time 2 o Can have two measures of response time n o Both ok, but 2 preferred if execution long Think time can determine system load user starts next request

Response Time o Turnaround time – time between submission of a job and completion of output n o Reaction time - Time between submission of a request and beginning of execution n o For batch job systems Usually need to measure inside system since nothing externally visible Stretch factor – ratio of response time at load to response time at minimal load n Most systems have higher response time as load increases

Throughput o Rate at which requests can be serviced by system (requests per unit time) n n n Batch: jobs per second Interactive: requests per second CPUs o o n n Millions of Instructions Per Second (MIPS) Millions of Floating-Point Ops per Sec (MFLOPS) Networks: pkts per second or bits per second Transactions processing: Transactions Per Second (TPS)

Throughput o Throughput increases as load increases, to a point Thrput Knee Nominal Capacity Knee Capacity Response Time Load Usable Capacity • • • Nominal capacity is ideal (ex: 10 Mbps) Usable capacity is achievable (ex: 9. 8 Mbps) Knee is where response time goes up rapidly for small increase in throughput

Efficiency o Ratio of maximum achievable throughput (ex: 9. 8 Mbps) to nominal capacity (ex: 10 Mbps) 98% For multiprocessor, ration of n-processor to that of one-processor (in MIPS or MFLOPS) Efficiency o Number of Processors

Utilization o Typically, fraction of time resource is busy serving requests n n Time not being used is idle time System managers often want to balance resources to have same utilization o o o Ex: equal load on CPUs But may not be possible. Ex: CPU when I/O is bottleneck May not be time n n Processors – busy / total makes sense Memory – fraction used / total makes sense

Miscellaneous Metrics o Reliability n o Probability of errors or mean time between errors (error-free seconds) Availability n n Fraction of time system is available to service requests (fraction not available is downtime) Mean Time To Failure (MTTF) is mean uptime o o Useful, since availability high (downtime small) may still be frequent and no good for long request Cost/Performance ratio n n Total cost / Throughput, for comparing 2 systems Ex: For Transaction Processing system may want Dollars / TPS

Utility Classification LB HB Utility o Better Metric NB Utility o HB – Higher is better (ex: throughput) LB - Lower is better (ex: response time) NB – Nominal is best (ex: utilization) Utility o Best Metric Better Metric

Setting Performance Requirements o The system should be both processing and memory efficient. It should not create excessive overhead There should be an extremely low probability that the network will duplicate a packet, deliver it to a wrong destination, or change the data o What’s wrong? o

Setting Performance Requirements o General Problems n n n Nonspecific – no numbers. Only qualitative words (rare, low, high, extremely small) Nonmeasureable – no way to measure and verify system meets requirements Nonacceptable – numbers based on what sounds good, but once setup system not good enough Nonrealizable – numbers based on what sounds good, but once started are too high Nonthorough – no attempt made to specify all outcomes