cs 147 computer systems performance analysis
play

CS 147: Computer Systems Performance Analysis Approaching - PowerPoint PPT Presentation

CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Approaching Performance Projects CS 147: Computer Systems Performance Analysis Approaching Performance Projects 1 / 35 Overview CS147 Overview 2015-06-15 Common Mistakes


  1. CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Approaching Performance Projects CS 147: Computer Systems Performance Analysis Approaching Performance Projects 1 / 35

  2. Overview CS147 Overview 2015-06-15 Common Mistakes Planning Errors Measurement Errors Design Errors Analysis Errors Presentation Errors Overview Systematic Approach Pre-Planning Planning Post-Experiment Common Mistakes Planning Errors Measurement Errors Design Errors Analysis Errors Presentation Errors Systematic Approach Pre-Planning Planning Post-Experiment 2 / 35

  3. Common Mistakes Some Common Mistakes in Performance Evaluation CS147 Some Common Mistakes in Performance Evaluation 2015-06-15 Common Mistakes ◮ List is long (nearly infinite) ◮ We’ll cover the most common ones . . . and how to avoid them Some Common Mistakes in Performance Evaluation ◮ List is long (nearly infinite) ◮ We’ll cover the most common ones . . . and how to avoid them 3 / 35

  4. Common Mistakes Planning Errors No Goals CS147 No Goals 2015-06-15 Common Mistakes ◮ If you don’t know what you want to learn, you won’t learn anything Planning Errors ◮ Hard to design good general-purpose experiments and frameworks ◮ So know what you want to discover No Goals ◮ Think before you start ◮ This is the most common mistake in this class! ◮ If you don’t know what you want to learn, you won’t learn anything ◮ Hard to design good general-purpose experiments and frameworks ◮ So know what you want to discover ◮ Think before you start ◮ This is the most common mistake in this class! 4 / 35

  5. Common Mistakes Planning Errors Biased Goals CS147 Biased Goals 2015-06-15 Common Mistakes ◮ Don’t set out to show OUR system is better than THEIR system Planning Errors ◮ Biases you towards using certain metrics, workloads, and techniques . . . which may not be the right ones ◮ Don’t let your prejudices dictate how you measure Biased Goals ◮ Instead, try to disprove your hypotheses ◮ If you fail, that’s much stronger evidence ◮ Don’t set out to show OUR system is better than THEIR system ◮ Biases you towards using certain metrics, workloads, and techniques . . . which may not be the right ones ◮ Don’t let your prejudices dictate how you measure ◮ Instead, try to disprove your hypotheses ◮ If you fail, that’s much stronger evidence 5 / 35

  6. Common Mistakes Planning Errors Unsystematic Approach CS147 Unsystematic Approach 2015-06-15 Common Mistakes ◮ Avoid scattershot approaches Planning Errors ◮ Work from a plan ◮ Follow through on it ◮ Otherwise, you’re likely to miss something Unsystematic Approach ◮ And in the end, everything will take longer ◮ Avoid scattershot approaches ◮ Work from a plan ◮ Follow through on it ◮ Otherwise, you’re likely to miss something ◮ And in the end, everything will take longer 6 / 35

  7. Common Mistakes Measurement Errors Incorrect Performance Metrics CS147 Incorrect Performance Metrics 2015-06-15 Common Mistakes ◮ If you don’t measure right stuff, results won’t shed much light ◮ Example: instruction rates of CPUs with different architectures Measurement Errors ◮ Example: seek time on disk vs. SSD ◮ Example: power consumed by mouse ◮ Avoid choosing metric that’s easy to measure but isn’t helpful Incorrect Performance Metrics ◮ Better to struggle to measure, but correctly capture performance ◮ If you don’t measure right stuff, results won’t shed much light ◮ Example: instruction rates of CPUs with different architectures ◮ Example: seek time on disk vs. SSD ◮ Example: power consumed by mouse ◮ Avoid choosing metric that’s easy to measure but isn’t helpful ◮ Better to struggle to measure, but correctly capture performance 7 / 35

  8. Common Mistakes Measurement Errors Unrepresentative Workload CS147 Unrepresentative Workload 2015-06-15 Common Mistakes ◮ If workload isn’t like what normally happens, results aren’t Measurement Errors useful ◮ E.g., for Web browser, it’s wrong to measure ◮ Just text pages Unrepresentative Workload ◮ Just pages stored on local server ◮ If workload isn’t like what normally happens, results aren’t useful ◮ E.g., for Web browser, it’s wrong to measure ◮ Just text pages ◮ Just pages stored on local server 8 / 35

  9. Common Mistakes Design Errors Wrong Evaluation Technique CS147 Wrong Evaluation Technique 2015-06-15 Common Mistakes ◮ Measurement isn’t right for every performance problem ◮ E.g., issues of scaling, or testing for rare cases Design Errors ◮ Measurement is labor-intensive ◮ Sometimes hard to measure peak or unusual conditions ◮ Decide whether to model or simulate before designing a Wrong Evaluation Technique measurement experiment ◮ Measurement isn’t right for every performance problem ◮ E.g., issues of scaling, or testing for rare cases ◮ Measurement is labor-intensive ◮ Sometimes hard to measure peak or unusual conditions ◮ Decide whether to model or simulate before designing a measurement experiment 9 / 35

  10. Common Mistakes Design Errors Overlooking Important Parameters CS147 Overlooking Important Parameters 2015-06-15 Common Mistakes ◮ Try to make complete list of characteristics that affect performance Design Errors ◮ System ◮ Workload ◮ Don’t just guess at a couple of interesting parameters ◮ Despite your best efforts, you may miss one anyway Overlooking Important Parameters ◮ But the better you understand the system, the less likely you will ◮ Try to make complete list of characteristics that affect performance ◮ System ◮ Workload ◮ Don’t just guess at a couple of interesting parameters ◮ Despite your best efforts, you may miss one anyway ◮ But the better you understand the system, the less likely you will 10 / 35

  11. Common Mistakes Design Errors Ignoring Significant Factors CS147 Ignoring Significant Factors 2015-06-15 Common Mistakes ◮ Factor: parameter you vary Design Errors ◮ Not all parameters equally important ◮ More factors ⇒ experiment takes more work ◮ But make sure you don’t ignore significant ones ◮ Give preference to those that users can vary Ignoring Significant Factors ◮ Factor: parameter you vary ◮ Not all parameters equally important ◮ More factors ⇒ experiment takes more work ◮ But make sure you don’t ignore significant ones ◮ Give preference to those that users can vary 11 / 35

  12. Common Mistakes Design Errors Inappropriate Experiment Design CS147 Inappropriate Experiment Design 2015-06-15 Common Mistakes ◮ Too few test runs Design Errors ◮ Or runs with wrong parameter values ◮ Interacting factors can complicate proper design of experiments ◮ Covered toward end of class Inappropriate Experiment Design ◮ Too few test runs ◮ Or runs with wrong parameter values ◮ Interacting factors can complicate proper design of experiments ◮ Covered toward end of class 12 / 35

  13. Common Mistakes Design Errors Inappropriate Level of Detail CS147 Inappropriate Level of Detail 2015-06-15 Common Mistakes ◮ Be sure you’re investigating what’s important Design Errors ◮ Examining at too high a level may oversimplify or miss important factors ◮ Going too low wastes time and may cause you to Inappropriate Level of Detail miss forest for trees ◮ Be sure you’re investigating what’s important ◮ Examining at too high a level may oversimplify or miss important factors ◮ Going too low wastes time and may cause you to miss forest for trees 13 / 35

  14. Common Mistakes Analysis Errors No Analysis CS147 No Analysis 2015-06-15 Common Mistakes ◮ Raw data isn’t too helpful Analysis Errors ◮ Remember, final result is analysis that describes performance ◮ Preferably in compact form easily understood by others ◮ Doubly important for non-technical audiences ◮ Common mistake in this class No Analysis ◮ Trying to satisfy page minimum in final report ◮ Raw data isn’t too helpful ◮ Remember, final result is analysis that describes performance ◮ Preferably in compact form easily understood by others ◮ Doubly important for non-technical audiences ◮ Common mistake in this class ◮ Trying to satisfy page minimum in final report 14 / 35

  15. Common Mistakes Analysis Errors Erroneous Analysis CS147 Erroneous Analysis 2015-06-15 Common Mistakes ◮ Often caused by misunderstanding of how to handle statistics Analysis Errors ◮ Or by not understanding transient effects in experiments ◮ Or by careless handling of the data ◮ Many other possible problems in this area Erroneous Analysis ◮ Often caused by misunderstanding of how to handle statistics ◮ Or by not understanding transient effects in experiments ◮ Or by careless handling of the data ◮ Many other possible problems in this area 15 / 35

  16. Common Mistakes Analysis Errors No Sensitivity Analysis CS147 No Sensitivity Analysis 2015-06-15 Common Mistakes ◮ Rarely does one number or one curve truly describe Analysis Errors a system’s performance ◮ How different will things be if parameters are varied? ◮ Sensitivity analysis addresses this problem No Sensitivity Analysis ◮ Rarely does one number or one curve truly describe a system’s performance ◮ How different will things be if parameters are varied? ◮ Sensitivity analysis addresses this problem 16 / 35

Recommend


More recommend