Consider a database buffer manager that uses 1GB of main memory and keeps data on a hard drive which reads 100MB per second and takes 10 milliseconds per disk seek. (a)  Assume that (1) the size of each disk block is 10KB and (2) for each block kept in the buffer, the probability that the buffer manager can handle the next data request using that block (i.e., the probability that the block contains the requested data) is 5 · 10-6. In this case, calculate the expected data access time (i.e., how much time the buffer manager on average would spend to provide a requested disk block). For this calculation, assume that (1) the buffer manager runs the algorithm explained in Section 13.5.1 of the textbook, (2) the buffer is already full (i.e., the entirety of the 1GB buffer space is already used to hold 105 disk blocks), and (3) no disk blocks are updated (i.e., no need to write dirty blocks back to the hard drive). Also, ignore the time spent for reading/writing data in the main memory. (b)  Assume that (1) the size of each disk block is 100KB and (2) for each block kept in the buffer, the probability that the buffer manager can handle the next data request using that block (i.e., the probability that the block contains the requested data) is 10-5. Calculate the expected data access time as in (a). Also, based on the above calculations, explain whether it is more advantageous to use 10KB disk blocks or 100KB disk blocks.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Consider a database buffer manager that uses 1GB of main memory and
keeps data on a hard drive which reads 100MB per second and takes 10 milliseconds per disk seek.


(a)  Assume that (1) the size of each disk block is 10KB and (2) for each block kept
in the buffer, the probability that the buffer manager can handle the next data request using
that block (i.e., the probability that the block contains the requested data) is 5 · 10-6. In
this case, calculate the expected data access time (i.e., how much time the buffer manager
on average would spend to provide a requested disk block). For this calculation, assume that
(1) the buffer manager runs the algorithm explained in Section 13.5.1 of the textbook, (2) the
buffer is already full (i.e., the entirety of the 1GB buffer space is already used to hold 105 disk
blocks), and (3) no disk blocks are updated (i.e., no need to write dirty blocks back to the
hard drive). Also, ignore the time spent for reading/writing data in the main memory.

(b)  Assume that (1) the size of each disk block is 100KB and (2) for each block kept in
the buffer, the probability that the buffer manager can handle the next data request using that
block (i.e., the probability that the block contains the requested data) is 10-5. Calculate the
expected data access time as in (a). Also, based on the above calculations, explain whether
it is more advantageous to use 10KB disk blocks or 100KB disk blocks. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education