review. why can average request time be used to determine the work-load required for saturation?
TRANSCRIPT
![Page 1: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/1.jpg)
AVERAGE REQUEST TIMEReview
![Page 2: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/2.jpg)
Why can average request time be used to determine the work-load required for saturation?
![Page 3: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/3.jpg)
Time (ms)100 300 500 700 900
Type A requests : 2ms CPU time (occur 90% of the time)
Type B requests : 200ms CPU time (occur 10% of the time)
Average Request Time = (0.9 * 2) + (0.1 * 200) = 21.8ms
![Page 4: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/4.jpg)
Reduce inter-request arrival period to 2oms from 100ms
![Page 5: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/5.jpg)
Average Request Time = (0.9 * 2) + (0.1 * 200) = 21.8ms
Time (ms)20 60 80
Type A requests : 2ms CPU time (occur 90% of the time)
Type B requests : 200ms CPU time (occur 10% of the time)
100150200
10 requests in queue at 200 ms
•At 200ms we have to process 10 requests within 20ms.
• 10 requests will take 18 + 200 milliseconds.
• We cannot process all requests in the queue before the next 10ms request comes in.
• This means from now on queue size will keep increasing at a constant rate, meaning response time will increase at a constant rate for upcoming incoming requests.
• Note that throughput stays the same and does not increase to cope with increased load (increased load => 1 request every 20ms). That is what we mean by saturation.
![Page 6: Review. Why can average request time be used to determine the work-load required for saturation?](https://reader036.vdocument.in/reader036/viewer/2022072005/56649f425503460f94c610c5/html5/thumbnails/6.jpg)
Average request must complete before another request arrives in order to prevent system saturation i.e.:
Average request time < Inter-request arrival period