Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:34:45+00:00 2026-06-14T00:34:45+00:00

This isn’t a homework question, it was a question we went through in class

  • 0

This isn’t a homework question, it was a question we went through in class but my professor lost me on the very last part. Here it is:

How large will the Virtual Memory Table be for 16GB virtual memory with a page size of 1KB?

First we determined the # of physical memory pages
= 64MB/1024 = (2^6 * 2^20)/2^10= 2^16 = 65,536
*This means we have 65,536 possible addresses, and the address block needs to be at least 16-
bits long (plus 1 bit for valid flag and 1 for dirty flag)

Second we determined the # of virtual memory pages
= (2^34)/(2^10)= 2^24

The next part, where we actually calculate the size of the VMT is were he lost me!

(2^24 * 16 bits) + (2^24 * 1 bit) + (2^242 * 1 bit) //i understand this

(2^24 * 2) + (2^21) + (2^21) =//no idea how he got these numbers

2^25+ 2^21 + 2^21 = 32MB + 2MB + 2MB= 36MB //no idea how he got this either

So the size of the VMT is 36MB apparently

So basically I understand everything up until the last 2 steps of the final part. I understand that we do “(2^24 * 16 bits) + (2^24 * 1 bit) + (2^242 * 1 bit)” because we have 2^24 VM pages each of which have 18 bits, I’m just lost as to how he simplified this further!

I don’t know if I wrote down the numbers wrong (he does have very sloppy handwriting) or what!

So any help would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:34:46+00:00Added an answer on June 14, 2026 at 12:34 am

    From your question:

    (2^24 * 16 bits) + (2^24 * 1 bit) + (2^24 * 1 bit) //i understand this

    = (2^24 * 2) + (2^21) + (2^21) =//no idea how he got these numbers

    He’s converting bits to bytes in this step. So 16-bits becomes “2”, and and the 1-bit becomes 1/8th of a byte, which is (1/(2^3)) bytes which gets 2^21 when multiplied by 2^24.

    Here’s the intermediate steps:

    = (2^24 * 2 bytes) + (2^24 * 1/8 bytes)     + (2^24 * 1/8 bytes)
    = (2^24 * 2 bytes) + (2^24 * 1/(2^3) bytes) + (2^24 * 1/(2^3) bytes)
    = 2^25             + 2^21                   + 2^21
    

    Then converting bytes to MB gets you 32MB + 2MB + 2MB.

    This is a very theoretical bounds on the size of the VMT in this setup. Packing 18-bit entries into pages isn’t very efficient for lookup (in fact, 18-bit entries don’t evenly fit into a 1k page, 455 entries take all but 2 bits of the 1k). The flag bits could be stored separately from packed 16-bit page numbers to keep alignment and density (or the problem can just be ignored and you just do the math to lookup 18-bit entries). Given how much bigger virtual memory is from the physical memory, by definition the address space will be sparse (unless you’re mapping the same page into multiple places), so this packed, linear representation will waste more space than it should. In the real world, VMTs are hierarchical, entries are tightly packed, and entries aligned to natural boundaries. Presumably you’ll get to that later in class. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This isn't strictly a programming question, but I'm asking it here because it's certainly
This isn't a very simple question, but hopefully someone has run across it. I
(This isn't a homework question, as it's above and beyond the class just for
This isn't strictly a programming question, but hopefully someone here has the knowledge to
This isn't strictly a homework question, but an offshoot. How are time functions implemented
This isn't a homework question, by the way. It got brought up in class
This isn't the best question ever, but since search engines feel the need to
This isn't a code question for once, but it definitely has me confused. Basically,
This isn't the best programming question but lets face it, the server fault guys
This isn't exactly specifically a programming question (or is it?) but I was wondering:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.