wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory in os

profile
Disha Parekh
Aug 14, 2024
0 Likes
0 Discussions
130 Reads

Virtual memory is a crucial concept in operating systems that allows for the efficient management of a computer's memory resources. It enables systems to execute larger applications or multiple applications simultaneously, even when the physical memory is limited.


Virtual memory operates primarily through two techniques: paging and segmentation.

- Paging divides the virtual memory into fixed-size pages and maps them onto physical frames in RAM. When a program needs data that isn’t currently in RAM, the OS retrieves it from disk storage (swap space) and loads it into RAM.

- Segmentation involves dividing the virtual address space into segments based on logical divisions, such as functions or objects, which can vary in size

-Benefits:

- Increased Effective Memory Size: Virtual memory allows systems to run larger applications than could fit into RAM.

- Isolation and Protection: Each process operates in its own virtual address space, preventing them from interfering with each other’s memory.

- Efficient Use of RAM: By keeping only active pages in physical memory and swapping inactive ones out, the system can maintain responsiveness even under heavy load.

-While virtual memory offers significant advantages, it can also introduce performance overhead:

- Page Faults: When a program accesses a page not currently in RAM, a page fault occurs, leading to delays as the system retrieves data from disk.

- Thrashing: If the system spends more time swapping pages in and out than executing processes, performance degrades significantly.

systems running database management systems (DBMS) benefit from virtual memory when handling large datasets that exceed physical memory limits.

Additionally, operating systems like Windows, Linux, and macOS implement sophisticated algorithms for page replacement (e.g., Least Recently Used - LRU), which significantly impact how well these systems perform under various conditions


53003230100

Disha parekh


Comments ()


Sign in

Read Next

Evolution of Operating system.

Blog banner

Deadlock

Blog banner

Deadlock and Starvation

Blog banner

DBMS and various career options related to it.

Blog banner

Disk scheduling

Blog banner

Heart Fulness Meditation

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

Linux Threads:

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

GOOGLE

Blog banner

Zomato (Income Sources)

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Linux -V Server Virtual Machine

Blog banner

Microsoft Windows Overview

Blog banner

geographic information system (GIS)

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Dal Bafla Recipe

Blog banner

Exploring Human Factors in Cyber Forensics Investigations.

Blog banner

What are Tenders its various types

Blog banner

Decision Tree: A Diagram Model

Blog banner

VIRTUAL MEMORY

Blog banner

TOGETHER WE CAN CONQUER #team

Blog banner

Mumbai

Blog banner

What is Spyware?

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Can a Water Flosser Replace Manual Flossing? Here’s What Dentists Say

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Linux VServer Architecture

Blog banner

What is Data, Information and Knowledge?

Blog banner

OS Assignment 3 Deadlock

Blog banner

Functions of Operating System

Blog banner

Types of Hackers

Blog banner

The Golden Temple , Amritsar

Blog banner

Os assignment

Blog banner

Clustering Techniques

Blog banner

Virtual memory

Blog banner

Service Transition Process in ITSM

Blog banner

LINUX VSERVER VIRTUAL MACHINE ARCHITECTURE

Blog banner

Hacking of web server and application

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner