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

Steganography

Blog banner

Balance

Blog banner

Virtual memory

Blog banner

File Sharing

Blog banner

COMMUNICATION

Blog banner

Operating System Objectives and Functions

Blog banner

AI and Data Science: Revolutionizing Industries

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner

E-mail security

Blog banner

How return on investment is defined in IT services

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

MACHINE LEARNING

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Privacy in Social Media and Online Services

Blog banner

Deadlock in operating system

Blog banner

10 Unknown facts about India's Independence

Blog banner

Social Engineering Attacks

Blog banner

Os assignment

Blog banner

I/O Management and Disk Scheduling

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Beatbox

Blog banner

Data carving - using hex editor

Blog banner

Dr. Venkadavarahan

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

Memory management and virtual memory

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

Child labour

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Life lesson

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

Phishing

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

File Management In OS

Blog banner

Deadlocks in Operating Systems

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

Importance Of Time

Blog banner