Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paging. Use paging - linear - translate.py to answer the following.Exercise 1 0 . use the simulator to study how linear page tables change size

Paging. Use paging-linear-translate.py to answer the following.Exercise 10. use the simulator to study how linear page tables change size given different parameters. Compute the size of linear page tables as different parameters change. Some suggested inputs are below; by using the -v flag, you can see how many page-table entries are filled.First, to understand how linear page table size changes as the address space grows, run with these flags:-P 1k -a 1m -p 512m -v -n 0-P 1k -a 2m -p 512m -v -n 0-P 1k -a 4m -p 512m -v -n 0- As the address space grows, the page table size will increase linearly. Each new page in the address space requires one new page table entry.python paging-linear-translate.py -P 1k -a lm -p 512m -v -n 0python paging-linear-translate.py -P 1k -a 2m -p 512m -v -n 0Exercise 11. To understand how linear page table size changes as page size grows, repeat Exercise 10 with the following parameters.-P 1k -a 1m -p 512m -v -n 0-P 2k -a 1m -p 512m -v -n 0-P 4k -a 1m -p 512m -v -n 0python paging-linear-translate.py -P lk 1m -p 512m -v -n 0python paging-linear-translate.py -P 2k -a 1m -p 512m -v -n 0-P 4k -a 1m -p 512m -v -n 0- As the page size grows, the page table size will decrease. Larger pages mean each page table entry maps a larger region of memory, so fewer entries are needed.Exercise 12. Let us analyze the expected trends. How should page-table size change as the address space grows? How about as the page size grows? Why should we not use big pages in general?Exercise 13. Which of these parameters are unrealistic? Why?-P 8-a 32-p 1024-v -s 1-P 8k -a 32k -p 1m -v -s 2-P 1m -a 256m -p 512m -v -s 3Exercise 14. Can you find the limits of where the program doesnt work anymore? For example, what happens if the address-space size is bigger than physical memory?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions