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

Life of an army person

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

Data Warehouse Bus Matrix

Blog banner

Harsh Rathod

Blog banner

Operating Systems

Blog banner

Decision Tree: A Diagram Model

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

Number Guessing game --lisp

Blog banner

The Memory Hierarchy

Blog banner

Topic: Sessions in Operating system

Blog banner

Explain website hacking issues

Blog banner

Types of E-Commerce

Blog banner

Explain Kernel in OS

Blog banner

Deadlock

Blog banner

Memory Management in an Operating System

Blog banner

Different memory allocation strategies

Blog banner

File Management system

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Different types of scam frauds

Blog banner

Race Condition in Operating Theatre

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

Docker Framework

Blog banner

Modern operating system

Blog banner

Who decides your overthinking, anyway?

Blog banner

Getting into anime My anime suggestions

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Malware Detection Techniques for Mobile Devices

Blog banner

Data Science & AI

Blog banner

Multithreading in Operating System

Blog banner

Mumbai famous street food

Blog banner

Evolution of the Microprocesor

Blog banner

Memory management

Blog banner

Music helps reduce stress

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

History of ITIL

Blog banner

Understanding the 'Ambiverts'

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

Multiprocessor

Blog banner

Memory input output management

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Data Visualization

Blog banner

How Does SSO Works

Blog banner