wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual Memory

profile
Manan Kamdar
Jul 12, 2023
0 Likes
0 Discussions
71 Reads

Virtual Memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of the main memory. The addresses a program may use to reference memory are distinguished from the addresses the memory system uses to identify physical storage sites and program-generated addresses are translated automatically to the corresponding machine addresses.
The size of virtual storage is limited by the addressing scheme of the computer system and the amount of secondary memory is available not by the actual number of the main storage locations.
It is a technique that is implemented using both hardware and software. It maps memory addresses used by a program, called virtual addresses, into physical addresses in computer memory.
All memory references within a process are logical addresses that are dynamically translated into physical addresses at run time. This means that a process can be swapped in and out of the main memory such that it occupies different places in the main memory at different times during the course of execution.
A process may be broken into a number of pieces and these pieces need not be continuously located in the main memory during execution. The combination of dynamic run-time address translation and the use of a page or segment table permits this.
If these characteristics are present then, it is not necessary that all the pages or segments are present in the main memory during execution. This means that the required pages need to be loaded into memory whenever required. Virtual memory is implemented using Demand Paging or Demand Segmentation.
The space used for virtual memory on a drive is known as "backing store," or "swap space." In the Windows world, it's usually implemented as a file, known as a "swap file." It's also possible to do this in Linux, but it's much more common to use a dedicated disk partition.
The upshot of virtual memory is that it's possible to run large programs by using more memory than the physical RAM in your machine. Virtual memory also allows developers to create applications without having to know how a computer's memory is organized.

The main downside historically with virtual memory has been that hard drives have been slower than RAM. If a machine doesn't have enough RAM, the system can keep swapping pages in and out endlessly, a process known as "thrashing." This is less of an issue on modern PCs with more RAM and faster SSDs displacing mechanical hard drives, but it's still something to be aware of.


Comments ()


Sign in

Read Next

Mariana Trench: The deepest depths

Blog banner

Modern operating system

Blog banner

Save Girl Child

Blog banner

SMARTSHEET MANAGEMENT SOFTWARE

Blog banner

Memory Hierarchy

Blog banner

Operating system

Blog banner

Objectives and functions of Operating System...

Blog banner

Financial Fraud Detection

Blog banner

Education: Key to your Prosperity

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

Message Passing in OS

Blog banner

Modern Operating System

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 2

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

Evolution of Operating System

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

All you need to know about Cassandra

Blog banner

The Sunny Side of Instagram

Blog banner

Cyber Forensics in Healthcare: Protecting Patient Data and Preventing Breaches

Blog banner

First-Order Logic (FOL): The Foundation of Modern Logic

Blog banner

RAID

Blog banner

Getting into Anime

Blog banner

"Mahakali cave"

Blog banner

Operation system

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

Deadlock and Starvation

Blog banner

Stop Racism

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

Raid and levels of raid.

Blog banner

What is M-commerce and how it's work

Blog banner

Pipedrive

Blog banner

File Sharing

Blog banner

Student Grade Calculator in LISP

Blog banner

RAID_142

Blog banner

Traditional Unix System

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

STARVATION

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

Wedding photographer

Blog banner

Virtual Machine

Blog banner