Question: Problem 2 . ( 2 0 points ) Consider a database buffer manager that uses the algorithm explained in Section 1 3 . 5 .
Problem points Consider a database buffer manager that uses the algorithm explained in
Section of the textbook for a hard drive which takes milliseconds per disk seek and can
read MB per second.
a points Assume that i the size of each disk block is KB ii the probability that the
buffer manager can handle a data request without accessing the disk ie the probability that
a requested block is already in the buffer is iii when the requested disk block is not in
the main memory with probability that block needs to be read from the disk following
a disk seek, iv no disk blocks are updated ie no need to write dirty blocks back to the
hard drive and v the time spent for readingwriting data in the main memory is negligible
considered milliseconds Under these assumptions, calculate the expected data access time
ie how much time it would on average take to obtain a disk block from the buffer manager
b points In contrast to the above scenario, assume that i the size of each disk block is
KB ii the probability that the buffer manager can handle a data request without accessing
the disk ie the probability that a requested block is already in the buffer is and iii
with probability, the requested disk block needs to be read from disk following a disk seek.
Calculate the expected data access time as in a Also, based on the above calculations,
explain whether it would be more advantageous to use KB disk blocks or KB disk blocks.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
