You are on page 1of 9

Virtual Memory

by kyatw and soop


What is it?
Virtual memory is used
when the RAM is full or overloaded when many instructions are given
It is
an extension of the RAM
RAM + swap space on the HDD/SSD

RAM
Without virtual memory

Will cause system to crash as there's no RAM to access

With Virtual Memory


allows program to access more RAM space

HOW?

First,32 bit map moves the 4th program to memory


as there's no space.

HOW?

Then the oldest program, program 0 is moved to


the memory.
Allowing program 4 to access RAM.
This repeats until there's enough RAM.
HOW?
Paging is used.
page = fixed-length block of data in virtual
memory
These pages are moved around between the RAM
and HDD/SSD

HDD
benefits & drawbacks
benefits drawbacks

Programs larger than physical memory and still run Disk thrashing (slower rw speed)

Unused data doesn't waste memory. slows computer

No need to buy RAM premature hard disk drive failure


How to reduce disk thrashing?
Buy and install more RAM
Reduce the number of programs
running at once.
Reduce the size of the swap file
Use SSD (faster data access)
THANKS.

You might also like