Question 12
Consider a magnetic disk drive with 10 double sided platters, 512(=2^9) tracks per surface, and 1024 (=2^10) sectors per track. Sector size is 2KBytes (=2^10 Bytes ). Assume the average seek time 0.02 ms, the seek time from a track to its adjacent track can be ignored. The drive rotates at 5400 rpm. Successive tracks in a cylinder can be read without head movement. Furthermore, disks can be handled independently, so multiple tracks in a cylinder can be read at the same time. Estimate the time required to transfer a 5-MB (=2^25 Bytes) file. If the file is stored sequentially. Provide details regarding how you get the answer. (Data is stored at sequentially sectors on a track and then sequential tracks on a cylinder, if a cylinder capacity is not enough, it will store sequentially in the same manner on the adjacent cylinder.)
Hint:
Question 13 (10 points)
For a given computer system, the main memory is 4096 Mbyte (2^32 byte); word size is 8 bytes (2^3 bytes); block size (aslo the cache line size) is 128 bytes (2^7 bytes); cache size is 128 Kbytes (2^17 bytes). For the hexadecimal main memory addresses FFFF6666, show the following information: Tag, set and word offset for a eight-way set-associative cache(eight-way set means: each set can hold 8 lines) . Provide details regarding how you get the answer. Show in binary, no conversion to hex is needed.
Answer 12). The following details are given:
Now, we need to find time taken to transfer a 5-MB as 225 Bytes of data.
5400 revolution in 60 sec
1 revolution in 60/5400 = 1/90 sec
In one revolution it will cover entire track, 210 sector
In one revolution total data it will cover = 210 * 210 Bytes = 220Bytes
Data transfer rate = 220/ (1/90) = 90 * 220 Bytes/sec
Only transfer for 225 Bytes of data, time consumed will be 225 / (90 * 220) = 0.35555 sec = 355.555 ms
Average seek time = 0.02 msec
Average rotational delay = (1/2) * 60/5400 = 0.055555 sec = 55.555 ms
Effective total time taken will be = Tranfer rate + seek time + rotational delay
= 355.555 + 0.02 + 55.555 = 411.13 ms
To find the number of cylinder need, we need to find total number of track required to read 225 Bytes of data.
Since 1 track has 220 Bytes, therefore cylinder required = 225/220 = 32
Answer 13). Given
Also it is 8-way set associativity
Main memory has 32 bytes that will take 32 bit to represent a instruction
Tag | Set Bit | Word Offset |
<--------------------------------- 32 bit --------------------------------------------------------------------->
We first to need number of cache line, which will be calculated as
No. of cache line. = Cache size / Block size = 217 / 27 = 210
No of set = Total cache line / P-way set associative = 210 / 8 = 27 which will be represented by 7 bit.
Also it is given that word size is 8 bytes, means 3 bit will take to consider word offset address.
therefore,
instruction will be seems like as
Tag bit | Set bit ( 7 bit) | Word offset (3 bit) |
<------------------------- 32 bit ------------------------------------------------------------------------------>
Now tag bit can be calculated as 32 bit - 7 bit - 3 bit = 22 bit
Given hexadecimal main memory address FFFF6666, in binary as
1111 1111 1111 1111 0110 0110 0110
and this instruction will be as
1111 1111 1111 0110 01 | 10 01101 | 110 |
<-------Tag bit -------------------------------------------------> <---- Set bit---------------><-- word offset bit-->
For the given memory address,
Tag position is (1111 1111 1111 0110 01)2
Set position (10 01101 )2
Word offset position is (110)2
Hope you will find this answer as helpful. If any doubt, comment it. Vote up. Thanks
Question 12 Consider a magnetic disk drive with 10 double sided platters, 512(=2^9) tracks per surface,...
A disk has 20 surfaces (i.e. 10 double sided platters). Each surface has 1000 tracks. Each tracks has 128 sectors. Each sector can hold 64 bytes. The disk space allocation policy allocates an integral number of contiguous cylinders to each file, a.) How many bytes are contained in one cylinder? b.) How many cylinders are needed to accommodate a 5-Megabyte file on the disk? c.) How much space is wasted in allocating this 5-Megabyte file?
A typical hard drive consists of 4 platters. For each platter is single sided. Each surface consists of 4096 tracks, each divided into 256 sectors. Each sector can hold 1024 bytes of data. The platters rotate at a speed of 14,400 rpm. The track to track arm movement time is 0.002ms. Show your work. What is the maximum amount of data that can be stored on the entire drive, including all platters and sides? Express your answer both in bytes...
Assume a rather old disk drive is configured as follows. The total storage is divided among 32 surfaces. There are 2048 tracks per sector. There are 512 sectors per track. There are 512 Bytes per sector. The interleaving factor is 4. The disk turns at 7200 rpm. The average startup time for the read/write arm is 15 ms and the average time to move the arm is 0.2 ms per track. Now assume that there is 8 MB file on...
I've posted 3 classes after the instruction that were given at start You will implement and test a PriorityQueue class, where the items of the priority queue are stored on a linked list. The material from Ch1 ~ 8 of the textbook can help you tremendously. You can get a lot of good information about implementing this assignment from chapter 8. There are couple notes about this assignment. 1. Using structure Node with a pointer point to Node structure to...
This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...