1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

virtual memory system question

Discussion in 'C' started by oomn123, Nov 4, 2010.

  1. oomn123

    oomn123 New Member

    Joined:
    Nov 3, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    [FONT=&quot]Can anyone correct me with this question [/FONT]
    [FONT=&quot]Consider a virtual memory system with the following parameters: [/FONT]
    [FONT=&quot]32-bit virtual address [/FONT]
    [FONT=&quot]8-kbyte virtual page size => 212[/FONT]
    [FONT=&quot]linear page table [/FONT]
    [FONT=&quot]32-bit Page Table Entry PTE [/FONT]

    [FONT=&quot]a. [/FONT][FONT=&quot]Draw a diagram of the 32-bit address showing the length and placement of all bit fields. [/FONT]

    [FONT=&quot]Page number is 20 bit and Offset is 12 bits[/FONT]
    [FONT=&quot]
    [/FONT]
    [FONT=&quot]How many virtual pages are available in this system? [/FONT]
    [FONT=&quot]my answer is [/FONT]
    [FONT=&quot]= 32-12 = 20 [/FONT]
    [FONT=&quot]= 220[/FONT]
    [FONT=&quot]
    [/FONT]
    [FONT=&quot]Assuming that 16 bits in the page table entry (PTE) is used for flags,[/FONT]
    [FONT=&quot] what is the maximum size of the physical memory (in bytes) this system can support? [/FONT]
    [FONT=&quot]= 16+12= 28[/FONT]
    [FONT=&quot]= 228[/FONT]


    [FONT=&quot]b. [/FONT][FONT=&quot]Describe the steps in translating the following virtual address: 0x 004E C01A. You have to base this description on specific values extracted from the given address. If you make any assumptions, you have to state them explicitly.[/FONT]

    my answer was in this image but i am not so sure
     
  2. oomn123

    oomn123 New Member

    Joined:
    Nov 3, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    yfrog.com/2f92952145g
     

Share This Page