wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory in os

profile
Disha Parekh
Aug 14, 2024
0 Likes
0 Discussions
136 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

Rain bow

Blog banner

Why Nature-Based Learning Is Becoming Popular in Early Education?

Blog banner

Worms, viruses and Bots

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Message Passing in OS

Blog banner

Penetration Testing

Blog banner

ONLINE NEWSROOMS

Blog banner

SQL Injection

Blog banner

THE ACTORS LIFE

Blog banner

How Traditional Indian Sweets Make Every Festival More Special

Blog banner

OPERATING SYSTEM

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

Carrot Pickle With Raisins (lagan Nu Achar)

Blog banner

Culture Of Ladakh

Blog banner

MY FIRST BLOG?

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Uniprocessor scheduling

Blog banner

Buffer Overflow

Blog banner

Service transition principles

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

LTE Technology

Blog banner

IT Service as as Value Creation

Blog banner

Teenagers of Today

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

How to lose belly fat

Blog banner

Race Conditions

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

File management In Operating System

Blog banner

How Does Preschool Help Children Become Better Decision Makers?

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

SAVE TREES

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

Types of Hackers

Blog banner

internet email and it's applications

Blog banner

Be you

Blog banner

What is Segmentation?

Blog banner

E-learning in today's world

Blog banner

File system

Blog banner

Why Portable 30ml Perfume Bullets Are Replacing Full-Sized Bottles?

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

Functions of Operating System

Blog banner