

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of exercises from chapter 11 of a computer science course, cpsc 310, assigned during the summer of 2008. The exercises focus on understanding disk technology, performance, reliability, and implementation issues. They cover topics such as calculating disk capacity, seek time, rotational latency, block transfer time, and average seek time and rotational delay. The exercises also involve calculations for sorting a tuple relation r and determining the time to service requests using the 777 disk with elevator scheduling.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CPSC 310 HW 5, Summer 2008, Ronnie Ward Assigned 7/7/08, DUE in class on 7/15/ Turn in a hardcopy with the Assignment Cover page and post your solutions to CSNet
These exercises were selected from Chapter 11, and one from SimpleDB to help you better understand disk technology, performance, reliability and implementation issues.
c.) Max seek time? 1+0.001*10,000 = 1 + 10 = 11 milliseconds
d.) Max rotational latency = one rotation, which is 1 trk r = 1/10,000 r/min* seconds/min = 0.006 seconds = 6 milliseconds
e.) Blk transfer time? Blk=16,384 bytes=32 sectors, 0.006ms/trk=0.000006 sec/sector = 0.006ms, which includes the 20% overhead for the gap. So transfer time for one blk is 320.006 = 0.192ms. Or using the book’s methodology, the number of degrees occupied by a blk is 72(31/100)+288*(32/1000)=11.448. Dividing this by 360 degrees and multiplying by 6ms, we get 0.191ms to read a blk.
f.) Avg seek time? 1+0.001*10,000/3 ms, or 4.3ms
e.) Avg rotational delay? One-half 6ms, or 3ms
So R is 10,000,000/100 blks, or 100,000 = 1.64GB.
There is 100MB of RAM available for sorting, implying 6400 blks can fit in RAM. The first phase of a TPMMS with the disk in 11.3.1 is 200,000 blk I/Os, or 4.3ms+3ms+0.192ms = 7.5ms giving a 1st^ phase I/O time of 7.5*200,000 = 1498 seconds = 25 minutes. The second phase takes the same number of I/Os, so the total sort time is 50 minutes.
CPSC 310 HW 5, Summer 2008, Ronnie Ward Assigned 7/7/08, DUE in class on 7/15/ Turn in a hardcopy with the Assignment Cover page and post your solutions to CSNet
Using Elevator scheduling, request 2000 is serviced at 1+ (8000-2000)* 0.001+3.192ms, or 10.192. 1000 is serviced next at time 10.192+ 1+(2000-1000)0.001+3.192ms, or 15.384. 10000 is serviced next at 15.384 + 1+(10000-1000)0.001+3.192, or 28.576. 12000 produces an error and is not serviced.
FCFS produces the same schedule if we assume 12000 results in an error and it not serviced.