100 likes | 204 Views
Performance Evaluation Quantitative Method. Performance Evaluation – Quantitative Method M/M/1. N. X. R. B. =. S. A. C. l. =. T. C. =. X. T. B. =. U. T. Abstract System/ Black Box. SYSTEM. Resource. Arrivals (A). Completions (C). Service Time (S).
E N D
Performance Evaluation – Quantitative Method M/M/1 N X R B = S A C l = T C = X T B = U T Abstract System/ Black Box SYSTEM Resource Arrivals (A) Completions (C) Service Time (S) Busy (B) – Length of time that the resource was observed to be in use Time (T) – Fraction of time the system is observed Service Time Throughput Arrival Rate Utilization
B = S = * U S X C C = X T A l = T B C B = = * U C T T Performance Evaluation – Quantitative Approach A - Arrivals C - Completions T - Time the system is observed B - Busy; fraction of time system is being used’ S - Avg. service time X - Throughput λ- arrival rate U - Utilization
System Arrival and Completions 15 14 13 Customers in system 12 11 10 9 8 Jobs 7 Arrivals 6 Completion 5 4 3 2 1 Time 0 2 4 6 0 Avg. Residence Time Accumulated Time in System Little’s Law
Little’s Law n(t) k N t 0 rk Number of customers in the black box Total time that there are k customers in the black box
W - Accumulated time in system N - Average number of requests in system R - Response Time Performance Evaluation – Quantitative Approach Z - Avg. think time
Performance Evaluation – Quantitative Approach Utilization Law: Uk = XkSk Little’s Law: N = XR The Response Time Law: R = N/X – Z The Forced Flow Law: Xk = VkX
Performance Evaluation – Example 1 An interactive system with 25 active terminals shows an average think time of 18 seconds. On average, each interaction causes 20 disk accesses. If the service time access per disk access is 25 ms., and the disk is 30% busy. What is the average system response time in seconds? 25 terminals (N = 25) 18 sec average think time (Z = 18) 20 visits to specific disk per interaction (Vd = 20) 30% utilization of disk (Ud = .30) 25 millisecond – avg. service requirement per visit to disk (Sd = .025 sec) Disk Throughput: Xd = Ud / Sd= .3/.025 = 12 req/sec System throughput: X = Xd / Vd= 12 / 20 = 0.6 interactions/ sec Response time: R = (N / X) – Z = ( 25 / .6 ) – 18 = 23.7 sec
Performance Evaluation – Example 2 During a measurement interval of 1200sec., an e-commerce site was monitored, and during this period, 4,800 transactions were executed. We know that a transaction visits the web server 5.2 times and the database server 3.8 times. The database service time is 59 msec. and the Web service time is 35 msec. What is the average throughput of the database server and of the Web server? Calculate the Utilization of the two resources. T = 1200 sec C = 4800 completions Vweb = 5.2 Vdb = 3.8 Sweb = 3.5 msec Sdb = 5.9 msec X = 4800/1200 = 4 request/sec Xweb = Vweb * X = 5.2 * 4 = 20. 8 io/sec Uweb = Sweb * Xweb = .035 sec * 20.8 io/sec = 0.728 ( 72.8 %) Xdb = Vdb * X = 3.8 * 4 = 15. 2 io/sec Udb = Sdb * Xdb = .059 sec * 15.2 io/sec = 0.896 ( 89 %)