Question

A computer has a cache, main memory, and a disk used for virtual memory. If a...

A computer has a cache, main memory, and a disk used for virtual memory. If a word is in the cache, 30 ns are required to access it. If it is in main memory, but not in cache, 50 ns are needed to load it into the cache. And then the reference is started again. If the word is not in main memory, 15 milliseconds (1 millisecond = 106 ns) are required to fetch it from disk, followed by 50 ns to get it into the cache. If the cache hit ratio is 0.9, and the main memory hit ratio is 0.8, what is the average time in ns required to access a referenced word on this system?

Homework Answers

Answer #1

Solution:

There will be three cases that needs to be considered:

Reference word Location

Probability

Access time in total (ns)

In the cache

0.9

30 ns

In the main memory, but not in cache.

(0.1)(0.8) = 0.08

50 + 30 = 80 ns

Neither in cache nor in main memory

(0.1)(0.2) = 0.02

15ms + 50 + 30 = 15,000,080 ns

Therefore, the average access time would be computed as follows:

Average_access_time = (0.9)*30 + 0.08*(80)+0.02 * (15000080)

   = 300035

Thus, the average time in ns required to access a referenced word on this system is 300035 ns.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Suppose a 1024-byte cache has an access time of 0.1 microseconds and the main memory stores...
Suppose a 1024-byte cache has an access time of 0.1 microseconds and the main memory stores 1 Mbytes with an access time of 1 microsecond. A referenced memory block that is not in the cache must be loaded into the cache and the reference started again. Answer the following questions: i. What is the number of bits needed to address the main memory? ii. If the cache hit ratio is 95%, what is the average access time for a memory...
To speed up memory access, caching is typically used. A memory cache is a small but...
To speed up memory access, caching is typically used. A memory cache is a small but fast memory where data recently accessed is kept in anticipation of future references. When an access is made, if the data is in the cache, then it is returned quickly. This is called a cache hit. otherwise main memory is accessed and the access is said to be a cache miss. For the purposes of this problem, assume that the latency of the main...
Assuming that a computer system has 64MBytes of main memory, 16Bytes of cache line and 64KBytes...
Assuming that a computer system has 64MBytes of main memory, 16Bytes of cache line and 64KBytes of cache size. A main memory address contains “A1E3”data in a particular memory cell. Transfer this data to the cache in direct mapping, associative mapping and 16-way set-associative mapping algorithms.
In a general purpose computer system the CPU, the main memory and the cache may be...
In a general purpose computer system the CPU, the main memory and the cache may be interconnected via one or more shared system bus(es). However, the secondary storage units (eg. Hard disk) will only be connected to the system bus through an I/O controller. The following are three statements regarding the requirement for an I/O controller (i) The response times of I/O devices are very much slower than that of main memory and hence direct interfacing is impossible. (ii) It...
Assume a byte-addressable memory has 64K bytes. Blocks are 8 bytes in length and the cache...
Assume a byte-addressable memory has 64K bytes. Blocks are 8 bytes in length and the cache consists of 4K bytes. Show the format for a main memory address assuming a 4-way set associative cache mapping scheme. Include the field names as well as their sizes. A direct-mapped cache consists of 8 blocks. Byte-addressable main memory contains 4K blocks of 8 bytes each. Access time for the cache is 22ns, and the time required to fill a cache slot from main...
In a hypothetical system with 1024 bytes of main memory, 128 bytes of cache, blocks of...
In a hypothetical system with 1024 bytes of main memory, 128 bytes of cache, blocks of 32-byte size, with direct-map (S = 1) placement policy and LRU replacement policy, answer each of the following questions: Determine the address fields for index, tag and block offset in the memory address. How many sets are there in the cache? How many blocks in the main memory are mapped to the same set of blocks in cache? If associative (parallel) comparison is to...
In a hypothetical system with 1024 bytes of main memory, 128 bytes of cache, blocks of...
In a hypothetical system with 1024 bytes of main memory, 128 bytes of cache, blocks of 32-byte size, with direct-map (S = 2) placement policy and LRU replacement policy, answer each of the following questions: Determine the address fields for index, tag and block offset in the memory address. How many sets are there in the cache? How many blocks in the main memory are mapped to the same set of blocks in cache? If associative (parallel) comparison is to...
Suppose a computer using direct mapped cache has 224 bytes of byte-addressable main memory, and a...
Suppose a computer using direct mapped cache has 224 bytes of byte-addressable main memory, and a cache of 128 blocks, where each cache block contains 8 bytes. For four-way set associative cache, to which block of cache the address 0x1895BA maps? Group of answer choices Block 70 Block 16 Block 23 Not enough information
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal...
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal sequencing of the processor is called (A) Communication (B) Trap (C) Interrupt (D) I/O (E) None of the above 2. A mode of operation that provides for the interleaved execution of two or more computer programs by a single processor is called (A) Interrupt (B) Multi-programming (C) Multi-tasking (D) Multi-threading (E) None of the above 3. Which of the following is a memory location...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT