wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory in os

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

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

LISP - Library Management System

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Deadlock and Starvation

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

Supervised and unsupervised learning

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Blog on health and fitness

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Music helps reduce stress

Blog banner

FIREWALL

Blog banner

FREE VERSION OF G-MAIL

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

File and File System Structure

Blog banner

KAHAWA TEA

Blog banner

Global versus Indian Mental Health Differences

Blog banner

What Makes a School Safe, Supportive, and Student-Friendly

Blog banner

Amazon

Blog banner

RAID

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

operating system

Blog banner

social media issue

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Evolution of Operating system

Blog banner

Understanding the 4 Types of Learning Methods in Early Childhood

Blog banner

THREADS (assignment 1)

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Memory Management in Operating System

Blog banner

Instagram

Blog banner

MODERN OPERATING SYSTEM

Blog banner

NETWORK SECURITY RISKS

Blog banner

Uniprocessor scheduling

Blog banner

Digital Forensics Challenges and Tools

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Linux

Blog banner

Wrike

Blog banner

My favourite food

Blog banner