wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Os Virtual Memory

profile
Kasak Mehta
Aug 15, 2024
0 Likes
0 Discussions
125 Reads

v VIRTUAL MEMORY


· Virtual Memory is a storage scheme that provides user an illusion of having a very big main memory. This is done by treating a part of secondary memory as the main memory.


· In this scheme, User can load the bigger size processes than the available main memory by having the illusion that the memory is available to load the process.


· Instead of loading one big process in the main memory, the Operating System loads the different parts of more than one process in the main memory.


· By doing this, the degree of multiprogramming will be increased and therefore, the CPU utilization will also be increased.


v WORKING


· In modern word, virtual memory has become quite common these days. In this scheme, whenever some pages needs to be loaded in the main memory for the execution and the memory is not available for those many pages, then in that case, instead of stopping the pages from entering in the main memory, the OS search for the RAM area that are least used in the recent times or that are not referenced and copy that into the secondary memory to make the space for the new pages in the main memory.


· Since all this procedure happens automatically, therefore it makes the computer feel like it is having the unlimited RAM.


v Types of Virtual Memory


In a computer, virtual memory is managed by the Memory Management Unit (MMU), which is often built into the CPU. The CPU generates virtual addresses that the MMU translates into physical addresses.


· There are two main types of virtual memory:


o PAGING


o SEGMENTATION


v Advantages of Virtual Memory


1. The degree of Multiprogramming will be increased.


2. User can run large application with less real RAM.


3. There is no need to buy more memory RAMs.


v Disadvantages of Virtual Memory


1. The system becomes slower since swapping takes time.


2. It takes more time in switching between applications.


3. The user will have the lesser hard disk space for its use.


v Virtual Memory vs Physical Memory


· When talking about the differences between virtual memory and physical memory, the biggest distinction is speed. RAM is much faster than virtual memory, but it is also more expensive.


· When a computer needs storage for running programs, it uses RAM first. Virtual memory, which is slower, is used only when the RAM is full.





Feature


Virtual Memory


Physical Memory (RAM)


Definition


An abstraction that extends the available memory by using disk storage


The actual hardware (RAM) that stores data and instructions currently being used by the CPU


Location


On the hard drive or SSD


On the computer’s motherboard


Speed


Slower (due to disk I/O operations)


Faster (accessed directly by the CPU)


Capacity


Larger, limited by disk space


Smaller, limited by the amount of RAM installed


Cost


Lower (cost of additional disk storage)


Higher (cost of RAM modules)


Data Access


Indirect (via paging and swapping)


Direct (CPU can access data directly)



Volatility


Non-volatile (data persists on disk)


Volatile (data is lost when power is off)


Sap id:-53003230071



Comments ()


Sign in

Read Next

What is M-commerce and how it's work

Blog banner

Memory Management

Blog banner

OPERATING SYSTEM

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

Computer Security

Blog banner

The evolution of OS

Blog banner

Deadlock

Blog banner

Security issues

Blog banner

Mumbai Metro 3

Blog banner

Virtual Memory

Blog banner

evolution of operating system - Disha Parekh

Blog banner

All you need to know about Website Traffic

Blog banner

Types of E-Commerce

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

OS Assignment-3

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

Way to make your meal healthier.

Blog banner

NodeJs

Blog banner

Capacity management in ITSM

Blog banner

Depression

Blog banner

10 Survival Tips that might save your life

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Hello World

Blog banner

Deadlock and Starvation

Blog banner

virtual machine

Blog banner

LINUX

Blog banner

Some web vulnerabilities

Blog banner

RAID and It's Levels

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

Brain wash of social media

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

ahh wait a min

Blog banner

Dal Bafla Recipe

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

INTERRUPTS

Blog banner

Open Source Project By Google

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

CRISP-DM Methodology

Blog banner