Tc (cache access time) = 2ns Cc (cache cost) = .001 cents/bit Tm (memory access time) = 300ns Cm (memory cost) = .00005 cents/bita. What is the cost of 1 Megabyte of main memory?
Virtual page Number Page Frame Number 0 1 1 3 2 - 3 0 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 2 12 - 13 - 14 - 15 -
a. What is the size of the virtual address space? (How many bits in a virtual address?)
b. What is the size of the physical address space? (How many bits in a physical address?)
c. What are the physical addresses corresponding to the following decimal
virtual addresses (yes, you have to convert from decimal to binary):
0, 3728, 2047, 2048, 10025, 22550, 7596?
(Indicate which, if any, cause page faults).
a. What is the format of the processor's logical address?
b. What is the length and width of the page table (ignoring any access control bits)?
c. What is the effect on the page table if the physical memory space is
reduced by half?
------------------------------------------------------------------------------ Segment Table Entry Number Presence bit Page Table 0 0 0 1 1 1 ------------------------------------------------------------------------------ Page Table 0 Entry Number Presence bit Disk Address Physical Page Number 0 0 0x443BH096 0x0 1 1 0x08D22108 0x3 2 1 0xF0871A09 0x1 3 0 0x7BA54C21 0x2 ------------------------------------------------------------------------------ Page Table 1 Entry Number Presence bit Disk Address Physical Page Number 0 1 0x88B04136 0x2 1 0 0xEF444219 0x0 2 1 0x00222957 0x3 3 1 0x28756554 0x1 ------------------------------------------------------------------------------ Memory Address Contents 0x02A4 0x7230 0x03A4 0x86a9 0x04A4 0x9723 0x05A4 0x3423 0x06A4 0x8876 0x0FA4 0x2373 0x11A4 0x1346 0x17A4 0x6792 0x1EA4 0x5292 0x37A4 0x7974 0x3BA4 0x3205 0x67A4 0x6623
a. Assuming 512-byte pages, convert the virtual address 0xFA4 into a physical address.
b. What is the value in memory stored at the physical address corresponding to the virtual address 0xFA4?
c. Repeat (a) and (b) for the virtual address 0x3A4.
d. Repeat (a) and (b) for the virtual address 0xEA4.
e. Repeat (a) and (b) for the virtual address 0xBA4.
f. What changes to this Virtual Memory structure would need to take place if the page size was increased to 1024 bytes?