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...
-
Suppose that you own 10 sweaters. (a) How many ways can you select four of them to take on a trip? (b) How many ways can you select six of the sweaters to leave at home? (c) Explain why the answers...
-
Custom Vans, Inc., specializes in converting standard vans into campers. Depending on the amount of work and customizing to be done, the customizing can cost less than $1,000 to more than $5,000. In...
-
Why does an auditor examine postings to employee cumulative earnings records? a. Undetected errors would accumulate across years, making subsequent payroll accounts misstated. b. Cumulative earnings...
-
Carson Wood Products Company Presented the following factory overhead cost budget for the press Department for April 2012, during which it expected to require 10,000 hours of productive capacity in...
-
Monitor Stakeholder Engagement is the process of monitoring overall project stakeholder relationships and adjusting strategies and plans for engaging stakeholders.
-
The Ortega Food Company needs to ship 100 cases of hot tamales from its warehouse in San Diego to a distributor in New York City at minimum cost. The costs associated with shipping 100 cases between...
-
The master budget at Monroe Manufacturing last period called for sales of 42,000 units at $42 each. The costs were estimated to be $26 variable per unit and $524,000 fixed. During the period, actual...
-
Rick Saldona began working as a traveling salesperson for Aimer Winery in 1988. Sales constituted 90 percent of Saldonas work time. Saldona worked an average of fi fty hours per week but received no...
-
Plaintiff is a company that owns a shopping plaza called Lammert Center located at 88018845 Ladue Road, St. Louis, Missouri. Defendant leased a portion of Lammert Center and operated a grocery...
-
In 1994, [Alvin Gebhart] began working at Mutual of New York (MONY) in San Diego, where he sold annuities and mutual funds. While at MONY, Gebhart met Jack Archer, a fellow MONY salesperson. In 1995,...
-
Petitioner, Leegin Creative Leather Products, Inc. (Leegin), designs, manufactures, and distributes leather goods and accessories. In 1991, Leegin began to sell [products] under the brand name...
-
Read the excerpt and answer the following questions. (a) Issue: On what issue did the Court focus? (b) Rule of Law: What does the Fifth Amendment to the U.S. Constitution, which the Court applied,...
-
Let (X, A, ) be a measure space and p belongs to [1, ). : Let f belongs to LP(X) and (fn neN) C LP(X). Suppose limn-fn- fl|p = 0. Show that for every > 0, there exists >0 such that for all n N we...
-
d. The characteristic equation of a control system is given by s+2s+8s+12s+20s+16+16=0. Determine the number of the roots of the equation which lie on the imaginary axis of s-plane
-
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...
-
Ludwig and Miller (2007) used a discontinuity in program funding for Head Start to test the impacts on child mortality rates. In the 1960s, the federal government helped 300 of the poorest counties...
-
The standard enthalpy change of combustion of acetylene is \(-1300.48 \mathrm{~kJ}\) at \(298 \mathrm{~K}\) with \(\mathrm{H}_{2} \mathrm{O}\) in the liquid state. Calculate the standard enthalpy of...
-
Which instrument is used to determine the heat of combustion of a fuel?
Study smarter with the SolutionInn App