wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory

profile
Abhijit Rajpurohit
Jul 11, 2023
0 Likes
0 Discussions
96 Reads

Virtual memory is a way of representing your memory that's abstracted from the physical memory on your machine. It makes use of both your RAM and your storage space, whether that's on a traditional hard drive or an SSD. In Linux, this is done at the kernel and hardware levels².

Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory can be used for another purpose¹.

Virtual memory takes advantage of the fact that not all of the memory that's being used in theory is being used all of the time. Programs in memory are broken down into pages and the parts that the kernel deems as unnecessary are "swapped out," or moved to the hard drive. When they're needed, they can be "swapped in," or brought back into RAM².

The space used for virtual memory on a drive is known as "backing store," or "swap space." In the Windows world, it's usually implemented as a file, known as a "swap file." It's also possible to do this in Linux, but it's much more common to use a dedicated disk partition².

The upshot of virtual memory is that it's possible to run large programs by using more memory than the physical RAM in your machine. Virtual memory also allows developers to create applications without having to know how a computer's memory is organized².

The main downside historically with virtual memory has been that hard drives have been slower than RAM. If a machine doesn't have enough RAM, the system can keep swapping pages in and out endlessly, a process known as "thrashing." This is less of an issue on modern PCs with more RAM and faster SSDs displacing mechanical hard drives, but it's still something to be aware of


Comments ()


Sign in

Read Next

Major achievement

Blog banner

FIREWALL

Blog banner

Rain

Blog banner

Business Intelligence v/s Big Data

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Define Instagram.

Blog banner

OPERATING SYSTEM

Blog banner

Deadlock and Starvation

Blog banner

Self managing devices

Blog banner

FASHION

Blog banner

Stop Racism

Blog banner

Data Visualization in Decision-Making

Blog banner

Instagram

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

What is service level Agreement?

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

AOL Mail

Blog banner

Memory management and virtual memory

Blog banner

Operating System

Blog banner

Cyber Forensics on IOT Devices

Blog banner

The application udemy

Blog banner

Reconnaissance

Blog banner

What is 'Multi-core and Multi-threading' ?

Blog banner

What is Amazon?

Blog banner

Regression Analysis

Blog banner

ADD A SPICE TO YOUR LIFE.

Blog banner

Different types of scam frauds

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Synchronization

Blog banner

Memory Management in Operating System

Blog banner

AI and cyber Security

Blog banner

Security Issues

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

Emerging threats in cyber Forensics

Blog banner

10 Signs your Computer has Virus

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Advantage of freedom

Blog banner

Swiggi

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Network Forensics

Blog banner