Question

In: Computer Science

Draw and clearly explain the memory hierarchy, and illustrate the relevant memory hierarchy components on the...

Draw and clearly explain the memory hierarchy, and illustrate the relevant memory hierarchy components on the motherboard shown below. Then, compare “cache replacement policies” and ‘8-way set-associative cache mapping policies’ aspect of cache design in details in a computer with 4GB main memory and Quad-word memory configuration.

Solutions

Expert Solution

A memory unit is the collection of storage units. Based on the speed and usage the memory in a computer can be divided into five hierarchies. It can minimize the access time.

The five hierarchies in the memory are registers, cache, main memory, magnetic discs, and magnetic tapes.The first three hierarchies are volatile memories . That is when there is no power, it will lose their stored data. Whereas the last two hierarchies are not volatile which means they store the data permanently.

The memory hierarchy is classified as primary memory and secondary memory.

1. Primary memory

Primary memory is also called internal memory. The process can directly access this type of memory. Thereby we can reduce the time taken to execute an instruction. This memory contains the main memory, cache, as well as CPU registers.

2. Secondary memory

The secondary memory is also called external memory. The processor can only access this through an input/output module. This memory includes an optical disk, magnetic disk, and magnetic tape.

The memory hierarchy in computers mainly includes;

1. Registers- A register is nothing but a temporary storage area built into a CPU

2. Cache- Cache memory is used to reduce the average time to access data from the Main memory.it stores copies of the data from frequently used main memory locations.

3. Main memory- Primary memory holds only those data and instructions on which the computer is currently working.It is slower when compared to registers and cache but the price is lesser than them.

4. Magnetic disk- It is a flat disc covered with magnetic coating to hold information. It is used to store various programs and files. It is cheaper than registers, cache and main memory

5. Magnetic tape- It is a storage medium that allows for data archiving, collection, and backup. Data in this tape is written and read sequentially

Comparison of cache replacement policies and 8-way set-associative cache mapping

Cache replacement policy, the memory that is used least recently will be replaced. When the cache is full, the algorithm must choose which items to discard to make room for the new ones.

They are classified as;

  • Optimal Replacement: This replace the block which is no longer needed in the future
  • Random selection: This replace a randomly selected block among all blocks currently in CM.
  • FIFO (first-in-first-out): replace the block that has been in CM for the longest time.
  • LRU: replace the block in CM that has not been used for the longest time,

8- way set-associative cache mapping can improve cache hit ratio by allowing a memory location to be placed in more than one cache block. N-Way associative cache allows placement in any block of a set where N is the number of elements.

For fixed cache capacity, higher associativity leads to higher hit rates. In this type of mapping, the associative memory is used to store content and addresses of the memory word. Thereby any block can go into any line of the cache

Please UPVOTE if you find this useful...


Related Solutions

Draw a relevant diagram to illustrate and explain the negative production externality of merchant ships. Label...
Draw a relevant diagram to illustrate and explain the negative production externality of merchant ships. Label your axes and curves carefully and use hypothetical numbers in your diagram. Assuming that the market is competitive.
how does Maslow’s hierarchy of needs theory apply to nursing Does the theory clearly illustrate and...
how does Maslow’s hierarchy of needs theory apply to nursing Does the theory clearly illustrate and guide how it can be used as a framework for nursing philosophy. Does theory help in the determination of interventions? Does the presenter evaluate and show how the theory is applicable to practice?
Draw a schematic and clearly indicate the components of a compound microscope. In a compound microscope,...
Draw a schematic and clearly indicate the components of a compound microscope. In a compound microscope, why must the objective lens (or objective + Tube lens) be a converging lens (or lens system)?
Describe the key concept of system approach and draw a diagram to illustrate the key components...
Describe the key concept of system approach and draw a diagram to illustrate the key components and sequence of a system approach. Discuss the effects of diversity within a group on group performance.
Define the primary components of the working in memory and explain the use of each?
Define the primary components of the working in memory and explain the use of each?
Can someone please explain to me what are the differences between Windows and Linux memory hierarchy,...
Can someone please explain to me what are the differences between Windows and Linux memory hierarchy, and  handling flash memory as a replacement for disk. Thank you so much
ILLUSTRATE THE MASLOW'S HIERARCHY OF NEEDS AND DISCUSS BRIEFLY WITH EXAMPLES.
ILLUSTRATE THE MASLOW'S HIERARCHY OF NEEDS AND DISCUSS BRIEFLY WITH EXAMPLES.
Plese answer the question! 1) What kind of memory technologies do we use as memory hierarchy...
Plese answer the question! 1) What kind of memory technologies do we use as memory hierarchy organization in computers?
draw the block diagram of the CRO and explain the different components
draw the block diagram of the CRO and explain the different components
With a relevant example, describe and illustrate the organisation of neuroendocrine control, and explain its significance.
With a relevant example, describe and illustrate the organisation of neuroendocrine control, and explain its significance.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT