Question

Given a virtual memory configuration with: • 4 TB virtual memory space • 32 GB physical memory space • 16 KB page size How ma

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Vrtual memory space = 4TB = 4*(2^40)= 2^42 bytes

physical memory space = 32GB = 32*(2^30) = 2^35 bytes

page size = 16KB = 16*(2^10) = 2^14 bytes

Virtual Page size =Physical Page size

Number of physical pages = physical memory size / physical page size = (2^35)/(2^14) = 2^21

physical page number requires = 21 bits

Number of virtual pages = virtual memory size / virtual page size = (2^42)/(2^14) = 2^28

virtual page number requires = 28 bits

page size = 2^14, so offset length = 14 bits

a) virtual address bits = virtual page number bits + offset bits = 28+14=42 bits

b) physical address bits = physical page number bits + offset bits = 21+14=35 bits

c) page offset bits=14

d) virtual page number = 28 bits

e) physical page number = 21 bits

Add a comment
Know the answer?
Add Answer to:
Given a virtual memory configuration with: • 4 TB virtual memory space • 32 GB physical...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Virtual memory address translation: a) Consider a machine with a physical memory of 8 GB, a...

    Virtual memory address translation: a) Consider a machine with a physical memory of 8 GB, a page size of 4 KB, and a page table entry size of 4 bytes. How many levels of page tables would be required to map a 52-bit virtual address space if every page table fits into a single page? b) Without a cache or TLB, how many memory operations are required to read or write a page in physical memory? c) How much physical...

  • Exercise l: Suppose that we have a virtual memory space of 28 bytes for a given process and physical memory of 4 page frames. There is no cache. Suppose that pages are 32 bytes in length. 1) How...

    Exercise l: Suppose that we have a virtual memory space of 28 bytes for a given process and physical memory of 4 page frames. There is no cache. Suppose that pages are 32 bytes in length. 1) How many bits the virtual address contain? How many bits the physical address contain? bs Suppose now that some pages from the process have been brought into main memory as shown in the following figure: Virtual memory Physical memory Page table Frame #...

  • 11. In a paged virtual memory system, can the computer 's physical memory address space be...

    11. In a paged virtual memory system, can the computer 's physical memory address space be larger than a process's virtual memory address space? Explain your answer. (Note: A computer 's "physical memory address space" is the number of bits for the frame number plus the number of bits foir the offset. A process's "virtual memory address space" is the number of bits for a page number plus the number of bits for the offset.)

  • 36.-Assume a 32 bit memory space with 16[KB] pages/frames and a two-level page table. Answer the...

    36.-Assume a 32 bit memory space with 16[KB] pages/frames and a two-level page table. Answer the following questions: a).-what is the size of the page table in bytes needed for a process that has only 64[MB] of code at the start of its virtual address range? b).-how many bits are used for address (frame) offset, and how many for page table indexing (total). Assume each page table entry has 32 bits. a).-Size of page table b).-Offset bits b).-Page table indexing...

  • 1) Given a virtual memory system with: virtual address 36 bits physical address 32 bits 32KB...

    1) Given a virtual memory system with: virtual address 36 bits physical address 32 bits 32KB pages (15 bit page offset) Each page table entry has bits for valid, execute, read and dirty (4 bits total) and bits for a physical page number. a) How many bits in the page table? (do not answer in bytes!) Three digit accuracy is good enough. The exponent may be either a power of 2 or a power of 10. b) The virtual address...

  • Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way...

    Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way set associative and LRU replacement, 32 Byte Cache block size, 4-entry fully associative TLB. A program to be run on this machine begins as follows:   double A[1024]; int i, j; double sum = 0; for( i = 0; i < 1024; i++ )       // first loop      A[i] = i; for( j = 0; j < 1024; j += 16 )   // second loop     ...

  • Consider a virtual memory system with a 16-bit virtual address, a 10-bit physical address, and a...

    Consider a virtual memory system with a 16-bit virtual address, a 10-bit physical address, and a 64-byte page size. The virtual address, 0x1235, is translated into a physical address using the page table below. VPN PPN Valid 44 02 1 45 05 1 46 08 0 47 --- 0 48 03 1 49 0A 1 4A --- 0 1. What is the hex VPN? (Enter as digits without 0x.) 2. What is the hex VPO? (Enter as digits without 0x.)...

  • The RISC-V 32-bit architecture supports virtual memory with 32-bit virtual addresses mapping to 32-bit physical addresse...

    The RISC-V 32-bit architecture supports virtual memory with 32-bit virtual addresses mapping to 32-bit physical addresses. The page size is 4Kbytes, and page table entries (PTEs) are 4 bytes each. Translation is performed using a 2-level page table structure. Bits 31:22 of a virtual address index the first-level page table. If the selected first-level PTE is valid, it points to a second-level page table. Bits 21:12 of the virtual address then index that second-level page table. If the selected second-level...

  • Exercise 5 (2.5 points) Assume a memory management system built on paging, its physical memory has...

    Exercise 5 (2.5 points) Assume a memory management system built on paging, its physical memory has the total size of 4 GB. It placed over 16 KB pages. The limit of the logical address space for each process is 512 MB. 1. What is the total number of bits in the physical address? 2. What is the number of bits that specifies the page displacement? 3. Determine how many physical frames in the system. Explain the layout for the logical...

  • 4. Assume that we have a machine with the following memory specifications: Virtual addresses are 32...

    4. Assume that we have a machine with the following memory specifications: Virtual addresses are 32 bits wide Physical addresses are 26 bits wide . Page size is 16 Kbytes 4/A) How many pages are in the virtual memory space? 4/B) How many page frames are in the physical memory space? 4/C) If each page table entry consists of a physical frame number, 1 present/absent bit Answers Pages .Page Frames and 1 dirty/clean bit (which shows if the page has...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT