wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory

profile
Maxson Yee
Jul 04, 2024
0 Likes
0 Discussions
113 Reads

Virtual memory is a memory management technique used by operating systems to provide an application with more logical memory than what is physically available in the system. It gives headway for logical memory and allows for efficient and safe use of memory, enabling multitasking and the execution of large programs. It also prevents you from hitting bottlenecks with the main memory(RAM) of your system. Because processes vary
in size, if the processor switches among a number of processes it is difficult to pack them compactly into main memory. Here’s a detailed explanation of virtual memory:

Virtual Address Space: Each process is given its own virtual address space, which is a contiguous range of addresses. This space is divided into chunks called pages. Whereas physical address space refers to the actual RAM installed in the system.

Pages: The virtual address space is divided into fixed-size blocks called pages. The physical memory is divided into blocks of the same size as pages, called page frames. A program references a word by means of a virtual address consisting of a page number and an offset within the page.

Each page of a process may be located anywhere in main memory. The paging system provides for a dynamic mapping between the virtual address used in the program and a real address, or a physical address, in the main memory. Each process has a page table that maps virtual addresses to physical addresses. This table keeps track of which virtual page is stored in the hard drive.

All the pages of a process are maintained on the hard drive. When a process is executing, some of its pages are in main memory. If reference is made to a page that is not in main memory, the memory management hardware detects this and arranges for the missing page to be loaded. An example of this would be that when you are in a game, the game will obviously not load in every single asset or map in the game, it will only load the maps you are playing on and the assets which are either in your immediate vicinity or assets that are visible on screen.

A designated area on a storage device (like a hard drive or SSD) is used to extend physical memory via virtual memory. Pages that are not actively used can be moved to swap space to free up RAM. Typically virtual memory should only be 3 times the size of the main memory at its maximum.

Virtual memory is an important component of modern operating systems, enabling more flexible and efficient use of memory resources, and allowing for more complex and larger applications to run smoothly on limited physical memory.


Comments ()


Sign in

Read Next

IOT- Internet Of Things

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

Tableau

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Cycling

Blog banner

GIS

Blog banner

Career v/s Job : Choose your passion

Blog banner

Linux 94

Blog banner

Importance of Network Security Risk

Blog banner

KASHMIR TRIPS

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Self defence

Blog banner

Global versus Indian Mental Health Differences

Blog banner

AutoML: The Future of Automated Data Science

Blog banner

Importance Of Blockchain

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Logical and physical address

Blog banner

RAID

Blog banner

Kernel in Operating System

Blog banner

I/O Management and Disk Scheduling

Blog banner

Compromising Mobile Platforms

Blog banner

Is Brushing After Eating Damaging Your Teeth? (Fact or Myth)

Blog banner

Life of an army person

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

MAILFENCE

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

BUFFER OVERFLOW_142

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Evolution of OS

Blog banner

Self-love: Being the reason of your own smile

Blog banner

10 Unknown facts about India's Independence

Blog banner

Regression Analysis

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

The IT Service Lifecycle

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

I/O buffer and its techniques

Blog banner

Characteristics of Etherum

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

Service design process in ITSM

Blog banner

Wedding photographer

Blog banner