wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory

profile
Abhijit Rajpurohit
Jul 11, 2023
0 Likes
0 Discussions
97 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

Memory Management

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

Intrusion Detection System

Blog banner

PPT methodology

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Why Skipping Afternoon Meals Affects More Than Just Your Hunger?

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner

Dal Bafla Recipe

Blog banner

Security Issues

Blog banner

Beauty of indian railway

Blog banner

Deadlock and Starvation

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Smart Eating Habits for Office Professionals to Stay Healthy

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Linux Threads:

Blog banner

Concurrency management in operating systems

Blog banner

Security issues

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Explain website hacking issues

Blog banner

Operating system and overviews

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Life of a 2020-2021 student

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

Embedded Operating System

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Memory input output management

Blog banner

Technical SEO : Total Guide

Blog banner

Therapy Myths That Need to End in 2025

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

OLA

Blog banner

What makes Nugget RC Racing Florida’s Most Exciting Racing Events?

Blog banner

Steganography and Steganalysis

Blog banner

memory cache

Blog banner

Google classroom

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

Virtual memory

Blog banner

internet email and it's applications

Blog banner

Ubiquitous Computing

Blog banner

IT service level agreement

Blog banner

Virtual memory

Blog banner