A2Ans - - 1 University of Waterloo School of Computer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - University of Waterloo School of Computer Science CS348 Spring 2009 Assignment 2 Due: June 2, 2009 20%1. Consider a disk storage system with 40,000 cylinders and with 10 recordable surfaces. Each track on a surface is divided into 80 blocks, and the block size is 2048 bytes. Suppose a sales transaction file has 100,000,000 fixed-length records. Each record has the following attributes: Transaction#(32 bytes), Customer#(12 bytes), SalesLocation#(12 bytes), SalesPersonnel#(12 bytes), Item#(16 bytes), Price (4 bytes) and Quantity(4 bytes). The file is stored on contiguous blocks and as an unspanned file on the disk storage system. You may assume 1MB = 1,000,000 bytes and 1 GB = 1,000 MBs. (a) What is the total capacity of disk storage system (in MB). (5%) The total capacity is 40,000*10*80*2048 bytes = 40,000*10*80*2048/1000000=65536 MB. (b) Calculate the blocking factor, that is, how many records can be fitted into a block, assuming that no record can span two or more blocks, and we try to place
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

A2Ans - - 1 University of Waterloo School of Computer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online