Pas encore inscrit ? Creez un Overblog!

Créer mon blog

All about virtual memory

In computing, virtual memory is a memory management technique developed for multitasking kernels. This technique virtualises a computer architecture's various forms of computer data storage, such as Random Access Memory and disk storage, thus allowing a program to be designed as though there is only one kind of memory, "virtual" memory, which behaves like directly addressable read/write memory. (RAM) . Read this article to learn more about virtual memory.

History

Virtual memory was introduced to the x86 architecture with the protected mode of the Intel 80286 processor, but its segment swapping technique scaled poorly to larger segment sizes. The Intel 80386 introduced paging support underneath the existing segmentation layer, enabling the page fault exception to chain with other exceptions without double fault. However, loading segment descriptors was an expensive operation, causing operating system designers to rely strictly on paging rather than a combination of paging and segmentation.

Page tables

Page tables are used to translate the virtual addresses seen by the application into physical addresses used by the hardware to process instructions. Such hardware that handles this specific translation is often known as the memory management unit. Each entry in the page table holds a flag, indicating whether the corresponding page is in real memory or not. If it is in real memory, the page table entry will contain the real memory address at which the page is stored. When a reference is made to a page by the hardware, if the page table entry for the page indicates that it is not currently in real memory, the hardware raises a page fault exception, invoking the paging supervisor component of the operating system.

Paging supervisor

This part of the Operating System creates and manages page tables. If the hardware raises a page fault exception, the paging supervisor accesses secondary storage, returns the page that has the virtual address that resulted in the page fault, updates the page tables to reflect the physical location of the virtual address and tells the translation mechanism to restart the request. When all physical memory is already in use, the paging supervisor must free a page in primary storage to hold the swapped-in page. The supervisor uses one of a variety of page replacement algorithms, such as least recently used to determine which page to free

Articles de la même catégorie Digital & online

Mavis Beacon - "Typing": Review and Rate

Mavis Beacon - "Typing": Review and Rate

The Mavis Beacon typing course by Broderbund has successfully taught typing skills, and touch typing since 1987. It is the world's best-selling typing program available. The software comes with a guarantee that you will be typing faster within two weeks. This article reviews this typing course and evaluates its strong and weak points.
A guide to Grand Theft Auto video games

A guide to Grand Theft Auto video games

Grand Theft Auto (GTA) has been one of the most successful, and controversial games franchises in history. The saga starts in 1997 and as of 2011, four versions of the game had been released, with a variety of expansion packs in between.
Earning cash online: The facts

Earning cash online: The facts

With the rise in popularity of the internet has come many different ways of earning cash online, such as selling stuff, game streaming, stocks and shares, gambling, surveys, data entry and freelance writing. In this article, I will detail some of the ways how to earn cash from home online and look at the respective strengths and weaknesses.
A guide to translating Spanish to English online

A guide to translating Spanish to English online

The third most spoken language in the world, Spanish is used by over 500 million people. Spread by Spanish conquistadors during the Age of Exploration, Spanish is the official language of 20 nations. Those who are searching for a guide to translate Spanish to English online will benefit from the tips found in this article.