Need help with only Question E, how do I calculate the page table size? (2.3mb should be the answer).
E) Given that virtual page number is represented with 20 bits, And in paging there is an entry for each page in the page table.
Therefore the number of entries in the page table = 220 entries (because 20 bits for virtual page number).
And in the page table each entry contains 1 bit for valid and 18 bit for physical page number.
Therefore the size of each entry = 1 bit (valid) + 18 bits (physical page number) = 19 bits. (each entry).
Therefore total size of page table = number of entries * size of each entry = 220 entries * 19 bits
220 * 19 bits = 19922944 bits = 19922944 bits / 8bits = 2490368 bytes (because 1 byte = 8 bits).
2490368 bytes = 2490368 bytes / 1024 bytes = 2432 K bytes (because 1 Kilo byte = 1024 bytes).
2432 K bytes = 2432 K bytes / 1024 K bytes = 2.375 M bytes ((because 1 Mega byte = 1024 K bytes).
Therefore the size of the page table = 2.375 Mb.
Need help with only Question E, how do I calculate the page table size? (2.3mb should...
Write a Java program that prompts the user for the page size used in a virtual memory system; this will be a power of two between 512 (29) and 16384 (214), inclusive. Your program should check the user input for page size to make sure it is one of the allowable inputs (must be a power of 2 and cannot be smaller than 512 or larger than 16384), and should then prompt the user for a virtual address (assume 32-bit...
Q1. Given the image below, answer each part of the question Viitual address Virtual page number Page ofset 19 10 Valid Physical page number Page table 15 0 then page is not present in memory Physical page number Page offset Phynical address a. What is the size of the Page (in bytes)? b. How many entries are in the page table? c. How big is the Physical Memory? d. How big is the Virtual Memory?
Q1. Suppose we have a virtual memory of size 2 Terabytes (2048GB, or 241 bytes), where pages are 8KB (213 bytes) each, and the machine has 4GB (232 bytes) of physical memory. a) Compute the number of page table entries needed if all the pages are being used. b) Compute the size of the page table if each page table entry also required 4 additional bits (valid, protection, dirty, use). Q2. For this problem, you are given a...
1. Given the following physical addresses and value in memory: add 0 val 9 10 11 12 13 14151611819 2021 22 23 18 24 20 32 0 40 8 32 245458 10 36 34 3230 40 35 3028 add 24 25 26 27 28 29 30 31 32 33 34 | 35 | 36 37 38 39 40 | 41 | 42 | 43 44 45 46 47 8 40 35 1614 12 12 22 24417 21 23 25 27...
8. A system of 64K virtual memory with page size 4K is mapped to a 32K main memory as shown below. page # 64K virtual Mem page # Mem 32K main frame # frame # 0 4K 0 2 3 0 4K 1 1 1 1 8 K 8 K 0 2 2 12 K 12 K 5 3 3 16 K 16 K 4 4 4 4 20 K 20 K 5 5 3 24 K 24 K 2...
1. Given the following physical addresses and value in memory: Val | 16 | 14 | 12 | 10|36 | 34|32 | 30 | 0|40 | 35 | 30 | 28 | 18 | 24 | 20 | 32 | 0|4018|132 | 24 | 54 add 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 4344454647 val 8403516 14121222244217 19 2123252716 1513 119700 add 48 49551 52 53 54 55...
D | Question 1 7.14 pts 57 Minutes. 29 Secon What causes the VM subsystem to handle a page fault? 0 the M?U translates wrtual address and determines the page numbers beyond the page table length register's value the process attempts to exeoute this code 100. O the MMU translates a virtual address and whenit reads the page entry from the pare tables finds the vald/invalid bit to be imalid and thus trisgers a pae fault exception O the process...
Fill in the table below based on the reference string (RS) shown. The resident set at time 0 is given Algorithm to use is: PFF with t-2 RS 2 35 3 212 3 2 4 3 45 3 P1 P2 )X P3 P4 P5 IN 2 OUT PF 1 Based on the logical adáresses given in problem 1 on the previous page what would that reference string be? 1. Given the following physical addresses and value in memory: Val |...
I need help with this problem.I am currenlty struggelling with it. Consider a computer system using paging, where the address space of every process has a size of C = 2c bytes and the page size is S = 2s bytes. Each entry in the page table uses E bytes. Calculate the number of pages of a process, and the size of a page table (in bytes). Assume that the space wasted by a process in main memory is defined...
Can someone clarify how I find the lenght in bits of the OFFSET given this problem. The problem is solved here completely from 1to6 i just wanted a quick run down on how the numbers were obtained, how the word size, total frame size, program size and op code was used Can someome PROBLEM 1 decimal value of o codes 16 bits word size: load fetch 2 total frame size: 64 bytes. store 3 total size of program 256 words...