Memory Management - English Medium
Memory Management - English Medium
[Draw your reader in with an engaging abstract. It is typically a short summary of the
document.
When you’re ready to add your content, just click here and start typing.]
Isuru Gayashan
[Email address]
Isuru Gayashan 1|Page
Example 1 : Basic Paging Calculation
Given a computer system that uses paging with a page size of 4 KB and a logical address space of 32 bits, calculate the
number of pages in the logical address space.
In a paging system with a page size of 2 KB and a physical address space of 16 MB, calculate the number of bits required
to represent a frame number.
If you have a logical address composed of a page number (10 bits) and an offset (12 bits) in a system using paging with
a page size of 4 KB, calculate the maximum logical address that can be generated.
In a computer system that uses paging with a 4 KB page size, and assuming each entry in the page table requires 4
bytes, calculate the size of the page table for a process with a 32-bit address space.
If a computer system uses paging and has a total physical memory size of 64 MB, and there are 16384 frames in physical
memory, calculate the size of each frame.
Given a logical address with a 10-bit page number and a 12-bit offset, and assuming a page table entry size of 4 bytes,
calculate the physical address for a specific logical address in a paging system.
If a process has a logical address space of 64 MB and the system uses 4 KB pages, calculate the number of pages that
are needed to map the entire process.
In a computer system using paging with a page size of 8 KB and 16-bit page numbers, calculate the maximum amount
of physical memory (RAM) that can be addressed.
a. How many bits are required in the reference to store the frame number?
b. How many frames are there?
c. Find the physical address space.
d. How many bits are required in the reference to store the page number?
e. How many pages are there?
f. Find the logical address space.
g. Find the size of virtual memory.
2) Assume we have a computer that can use virtual references of length 17 bits from 0 to 128 K. Also consider
the size of the physical memory of this computer as 128 KB and the size of a page as 8KB.
a. How many bits are required in the reference to store the frame number?
b. How many frames are there?
c. Find the physical address space.
d. How many bits are required in the reference to store the page number?
e. How many pages are there?
f. Find the logical address space.
g. Find the size of virtual memory.
3) Assume we have a computer that can use virtual references of length 27 bits. Also Consider the physical
memory size of the computer as 2GB and the size of a page as 4MB.
a. How many bits are required in the reference to store the page number?
b. How many pages are there?
c. Find the physical address space.
d. How many bits are required in the reference to store the frame number?
e. How many frames are there?
f. Find the physical address space.
g. How many bits are required in the reference to store the page number?
h. How many pages are there?
i. Find the logical address space.
j. Find the size of virtual memory.
(a) The size of one block on a disk is 4KB. The figure below represents the status of a section starting with section
300 in the File Allocation Table (FAT) of that disk. Information regarding the categories of the maximum.py file
can be derived from it.