Question

In: Computer Science

Provide an in-depth and detailed explanation describing how the virtual page size of a memory system...

Provide an in-depth and detailed explanation describing how the virtual page size of a memory system might affect the performance of cache when the virtual page size is very large and then when it is very small.

Solutions

Expert Solution

Virtual Memory is the physical memory is divided into fixed size pages. Loadable modules are also divided into number of page frames. Page frames are always the same size as the pages in memory. Page frames are loaded into memory only when they are needed. It is a fixed-length contiguous block of virtual memory described by a single entry in the page table. It is the smallest unit of data for memory management in a virtual memory operating system.

Normally a virtual address is 32 bits, this allows a process to have 4GB of virtual memory.

Physical memory is much smaller than this memory and it varies from one machine to another.

And also, virtual address space for different process is distinct.

A virtual memory having the following structure:

1. Paging

2. Segmentation

A paging handles a virtual memory into small units called page frames. So the virtual memory is divided into small units called pages. The size of a page is equal to the page frames.

A page size can be determined by using some of the factors. That are:

1. A Operating System is the authority to determine the page size.

2. If it is a smaller page size, then:

a) It has less internal fragmentation (unused space within the page)

b) And also, it can match with the locality of refence.

3. If it is a larger page size then:

a) It contains a less number of pages and also smaller page table.

b) It also has less page fault.

c) It may be responsible for less over head in reading/writing of pages.

Cache memory is a very high-speed memory that act as a buffer between RAM and the CPU. It holds the frequently requested data and instructions so they can immediately available to the CPU when needed.

It reduces the average time to access the data from the Main Memory. When the processor needs to read/write a location in main memory, it first checks in the cache memory. If the data is available in the cache then it is cache hit. But in case of the data is not available in the cache then it is cache miss.


Related Solutions

Provide a detailed explanation of fishers’ theorem
Provide a detailed explanation of fishers’ theorem
Virtual Memory. When processes are allowed to grow larger than memory, page tables also grow very...
Virtual Memory. When processes are allowed to grow larger than memory, page tables also grow very large. How could we organize page tables and TLB to keep access times as quick as possible for codes with good locality? For example, assume physical memory is 512K, each page is 1K, and a TLB of size 128. If we assume most processes are 256K or less, then we could allocate a fixed-size page table with 256 entries. Now in the unexpected case,...
A) Explain what is Fugacity (provide an explanation as detailed as possible). Explain how the fugacity...
A) Explain what is Fugacity (provide an explanation as detailed as possible). Explain how the fugacity criteria for VLE and Chemical reactions is related to the concept of increasing entropy B) What are internal Energy and Enthalpy? how are they related? C) A mixture of water-ethanol containing a significant amount of methanol is being distilled (separation by VLE). Someone tells you that the methanol is not a problem because it boils off first as it has a lower boiling point....
Provide a detailed explanation of concept of a Value Chain and apply the concept to a...
Provide a detailed explanation of concept of a Value Chain and apply the concept to a company of your choice
Please give an in depth explanation of the U.S. financial system and the country's management of...
Please give an in depth explanation of the U.S. financial system and the country's management of foreign exchange.
Please provide a detailed explanation of how to tell the following apart: molecular solids ionic solids...
Please provide a detailed explanation of how to tell the following apart: molecular solids ionic solids atomic solids nonbonding atomic solids metallic atomic solids network covalent atomic solids
Provide detailed information about the Banking Industry in Bangladesh with examples and in depth analysis with...
Provide detailed information about the Banking Industry in Bangladesh with examples and in depth analysis with charts. - Marks 20
We decide to speed up the virtual memory system of question 1 by using a translation...
We decide to speed up the virtual memory system of question 1 by using a translation lookaside buffer (TLB). Suppose your memory system has the characteristics shown in the following table. The TLB and cache miss rates indicate how often the requested entry is not found. The main memory miss rate indicates how often page faults occur.                                                                            Memory Characteristics Memory Unit Access Time (Cycles) Miss Rate TLB 1 0.05% Cache 1 2% Main memory 100 0.0003% Hard drive...
Provide an exhaustive explanation of why the depth of field can be much greater for SEM...
Provide an exhaustive explanation of why the depth of field can be much greater for SEM than for the light microscope.
Define the phenomenon of Springback in sheetmetal forming, and provide a detailed explanation of the methods...
Define the phenomenon of Springback in sheetmetal forming, and provide a detailed explanation of the methods used to compensate for springback in finished sheetmetal products.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT