60 likes | 256 Views
Homework Assignment #4. J. H. Wang Dec. 10, 2009. Homework #4. Chap.11: 11.1, 11.6 Chap.12: 12.7, 12.8, 12.29 Due: two weeks ( Dec. 24, 2009 ). Chap.11 11.1: In what situations would using memory as a RAM disk be more useful than using it as a disk cache?
E N D
Homework Assignment #4 J. H. Wang Dec. 10, 2009
Homework #4 • Chap.11: 11.1, 11.6 • Chap.12: 12.7, 12.8, 12.29 • Due: two weeks (Dec. 24, 2009)
Chap.11 • 11.1: In what situations would using memory as a RAM disk be more useful than using it as a disk cache? • 11.6: Consider a file system that uses inodes to represent files. Disk blocks are 8KB in size, and a pointer to a disk block requires 4 bytes. This file system has 12 direct disk blocks, as well as single, double, and triple indirect disk blocks. What is the maximum size of a file that can be stored in this file system?
Chap.12 • 12.7: Compare the performance of write operations achieved by a RAID level 5 organization with that achieved by a RAID level 1 organization.
12.8 Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending requests, in FIFO order, is 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130 Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests, for each of the following disk-scheduling algorithms?(a) FCFS(b) SSTF(c) SCAN(d) LOOK(e) C-SCAN(f) C-LOOK
12.29: Could a RAID level 1 organization achieve better performance for read requests than a RAID level 0 organization (with nonredundant striping of data)? If so, how?