Consider a 32-bit system with its page size being 16KB. Among the 32 bits that are...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider a 32-bit system with its page size being 16KB. Among the 32 bits that are used for a virtual address (VA), except the bits used for the offsets in a page, all the other bits are used to represent a virtual page number (VPN). Assume that each page directory entry (PDE) or page table entry (PTE) has 4 bytes. (1) (2 pts) How many pages does an address space have? (2) (4 pts) Assume that a linear page table is used for an address space. a) How many bytes are needed to represent the page table? b) If only the lowest-numbered 1000 PTES (i.e., their VPNs are 0, 1, 2, ..., 999) and the highest-numbered 100 PTES are valid, then how many bytes are needed to store this page table? (3) Assume that we use a 2-level page table instead of a linear page table. Assume that we use the top half of the VPN bits (of a virtual address) to represent the number of entries (i.e., PDEs) in the page table directory (PTD), and the other half of the VPN bits to represent the size of a page-table page. a) (2 pts) If we assume that all of the possible PTES are valid, then how many page-table pages are needed, and how many possible PTES are there in each page-table page? b) (4 pts) If we assume that only the 1000 PTES with the lowest VPN numbers (i.e., their VPNs are 0, 1, 2, ..., 999) and the 100 PTES with the highest VPN numbers are valid, then how many bytes are needed to store this 2-level page table? Justify your answer. Consider a 32-bit system with its page size being 16KB. Among the 32 bits that are used for a virtual address (VA), except the bits used for the offsets in a page, all the other bits are used to represent a virtual page number (VPN). Assume that each page directory entry (PDE) or page table entry (PTE) has 4 bytes. (1) (2 pts) How many pages does an address space have? (2) (4 pts) Assume that a linear page table is used for an address space. a) How many bytes are needed to represent the page table? b) If only the lowest-numbered 1000 PTES (i.e., their VPNs are 0, 1, 2, ..., 999) and the highest-numbered 100 PTES are valid, then how many bytes are needed to store this page table? (3) Assume that we use a 2-level page table instead of a linear page table. Assume that we use the top half of the VPN bits (of a virtual address) to represent the number of entries (i.e., PDEs) in the page table directory (PTD), and the other half of the VPN bits to represent the size of a page-table page. a) (2 pts) If we assume that all of the possible PTES are valid, then how many page-table pages are needed, and how many possible PTES are there in each page-table page? b) (4 pts) If we assume that only the 1000 PTES with the lowest VPN numbers (i.e., their VPNs are 0, 1, 2, ..., 999) and the 100 PTES with the highest VPN numbers are valid, then how many bytes are needed to store this 2-level page table? Justify your answer.
Expert Answer:
Answer rating: 100% (QA)
Lets calculate the values step by step 1 How many pages does an address space have In a 32bit virtual address space with a page size of 16KB you have ... View the full answer
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these computer network questions
-
Explain the process in bullet points or a flowchart: Identify financial statements and inputs required. Develop assumptions based on historical data and future expectations.
-
I thought evaluating performance would be easier than this. I have three vice presidents, operating the same business in three different countries. I need to be able to compare them in order to...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Consider a stylized two-period model with banking. The aggregate abatement cost function in period t is given by C(E)= (a t be) 2 /2b with a 1 < a 2 is D(E)=dE 2 /2. (a) Determine the optimal...
-
A rectangular loop of wire 24 cm by 72 cm is bent into an L shape, as shown in FIGURE 23-49. The magnetic field in the vicinity of the loop has a magnitude of 0.035 T and points in a direction...
-
On June 15, 2014, a second-hand machine was purchased for $77,000. Before being put into service, the equipment was overhauled at a cost of $5,200, and additional costs of $400 for direct material...
-
Eden Development Company has two competing investments. Proposal A and Proposal B. Proposals A and B have an initial investment of $175,000. The net cash flows estimated for the two investments are...
-
Nexcare (Ltd) operate a number of car washes and auto valet services. The company has experienced a reasonable trading year. They are deciding whether to pay out R248 000 in accumulated cash in the...
-
When can you claim a deduction for a cash contribution of $250 or more: a. if you have a canceled check b. if you have the check notarized c. if you obtain a contemporaneous written acknowledgment...
-
An investor is considering five possible investment strategies. The investor cares only about the expected payoff and possibly the variance of each strategy. The following table shows the payoffs...
-
Tonya, an actuary, is the sole shareholder of Shrike Corporation, a professional C corporation. The corporation paid Tonya a salary of $360,000 during its fiscal year ending September 30, 2019. How...
-
Compute: z=x/y 1 #include 2 #include 3 4 int main(void) { 5 double x; 6 double y; 7 double z; 8 9 scanf("%lf", &x); 10 11 12 13 14 scanf("%lf", &y); /* Your code goes here */ printf("%.21f ", z); 15...
-
Was Doug Shelton driving the van with the consent, (implied or expressed consent), of Pafco Construction? Explain your answer.
-
In your own words describe the leadership communication framework In your own words define ethos List three ways to project a positive ethos and give a concrete example of how y would project one of...
-
Adler Industries uses a standard cost system. Adler has established the following standards for one unit of product: standard labor of 0.25 hour and standard wage rate of $12 per hour. During...
-
Discuss both Quantitative and Qualitative evaluation approaches and discuss the strengths and weaknesses of the approach. How likely are you to use this approach compared to others discussed in the...
-
Riley Company estimates the company will incur $65,000 in overhead costs and 5,000 direct labor hours during the year. Actual direct labor hours were 4,450. Calculate the predetermined overhead...
-
An annual report of The Campbell Soup Company reported on its income statement $2.4 million as equity in earnings of affiliates. Journalize the entry that Campbell would have made to record this...
-
Calculate (1.666015625 10 0 1.9760 10 4 ) + (1.666015625 10 0 -1.9744 10 4 ) by hand, assuming each of the values are stored in the 16-bit half precision format described in Exercise 3.27 (and...
-
Cache coherence concerns the views of multiple processors on a given cache block. The following data shows two processors and their read/write operations on two different words of a cache block X...
-
Matrix multiplication plays an important role in a number of applications. Two matrices can only be multiplied if the number of columns of the first matrix is equal to the number of rows in the...
-
Inventory Turnover Calculate the company's inventory turnover for 2019 and compare the result to the industry average. Use the following financial data for Brenner Instruments Sales revenue.. Cost of...
-
Gross Profit Percentage Calculate the company's 2019 gross profit percentage and compare the L04 result to the industry average. Use the following financial data for Brenner Instruments Sales...
-
Debit-to-Equity Ratio Calculate the company's 2019 debt-to-equity ratio and compare the result to the industry average. Use the following financial data for Brenner Instruments Sales revenue.. Cost...
Study smarter with the SolutionInn App