1 2 single disk
play

1 2 Single Disk (a) Side view of a magnetic disk. (b) Top view - PowerPoint PPT Presentation

1 2 Single Disk (a) Side view of a magnetic disk. (b) Top view of a magnetic disk. 3 Computing Disk Service Time Architecture of a typical I/O subsystem 4 Nomenclature 5 Computing Disk Service Time 6 Computing Disk Service Time Types


  1. 1

  2. 2

  3. Single Disk (a) Side view of a magnetic disk. (b) Top view of a magnetic disk. 3

  4. Computing Disk Service Time Architecture of a typical I/O subsystem 4

  5. Nomenclature 5

  6. Computing Disk Service Time 6

  7. Computing Disk Service Time Types of workloads 7

  8. Computing Disk Service Time 8

  9. Computing Disk Service Time 9

  10. Computing Disk Service Time 10

  11. Disk service times equations 11

  12. Example: a DB Server Arrival rate: 20 req/sec Workload: 20% random 80% sequential avarege run length = 24 Block size: 2,048 bytes Disk Revolution Time: 7,200 RPM Seek Time: 9 msec Transfer Rate: 20 MB/sec Controller Time: 0.1 msec ⇒ Latency = ½ x 60/7,200 x 1,000 = 4.17 msec 12

  13. ⇒ TransferTime = 2,048/(10 6 x 20) x 1,000 = 0.1 msec ⇒ Average Service Time (Random Request) = 0.1+ 9 +4.17 + 0.1 =13.4 msec U d = ArrivalRate x (RandomSeek + AverageLatency + AverageTransferTime) ⇒ U d = 0.020 x (9+4.17+0.1) = 0.27 ⇒ P miss = 1/24 = 4.2 % ⇒ AverageSeekTime = 9/24 = 0.38 msec ⇒ AverageRotationalLatency = ½+23(1+0.27)/2 x 60x1,000 = 5.25 msec 24 7,200 13

  14. ⇒ Average Service Time (Sequential Request) = 0.1+ 0.38 +5.25 + 0.042x0.1 =5.73 msec ⇒ Average Service Time = 7.25 msec 14

  15. Disk Arrays Disk array 15

  16. 16

  17. 17

  18. 18

  19. 19

  20. 20

  21. Nomenclature • n r : number of stripe units reads by a read request • n w : number of stripe units modified by a write request • λ r array : arrival rate of read requests to the disk array • λ w array : arrival rate of write requests to the disk array • λ r disk : arrival rate of read requests to any of the disk in the array • λ w disk : arrival rate of write requests to any of the disk in the array • N : number of physical disks in the array • S r array : average service time at a disk array for read • S w array : average service time at a disk array for write 21

  22.  Fraction of read requests to the array that goes to any of the disks (uniform distribution to all disks): n r N  Arrival rate of disk requests at a disk: n rw ( n ) r r w r w λ = ⋅ λ + ⋅ λ disk array array N N where is the number of read request to a disk as a result of n write rw ( n ) w w requests  Arrival rate of write requests to any disk in the array: n 1 + w w w λ = ⋅ λ disk array N ⇒ Average service time of read request at disk array: { } r n r S max = R = r array i 1 disk i 22

  23. where R r disk i is the average response time of read requests at disk i : ⇒ Average service time of write request at disk array: { } { } rw ( n ) n 1 w r + w S max R max R = + w w array i 1 disk i i 1 disk i = = where R w disk i is the average response time of write requests at disk i . 23

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend