Computer Memory, Physical and Virtual Memory
Computer Memory, Physical and Virtual Memory
Physical and virtual memory are related forms of digital memory, that is, the storage of information within computers and other digital devices. Physical memory exists on chips (random-access memory or RAM) and on bulk storage devices such as tapes, optical disks, and hard disks. Before a program can be executed, it must first load into RAM memory (also termed main memory). Since RAM is expensive and volatile (or if not volatile, slow)—that is, loses its data when the power is off—programs and data are stored on hard drives or other bulk devices until needed for execution.
Virtual memory is a management process whereby data (e.g., programming code) can be rapidly exchanged between physical memory storage locations and RAM memory during execution. The rapid interchanges of data are (hopefully) seamless and transparent to the user, who perceives the machine as having more RAM than it actually does. The use of virtual memory allows the use of larger programs and enables those programs to run faster.
In modern operating systems, data can be constantly exchanged between the hard disk and RAM memory via virtual memory. A process termed swapping is used to exchange data via virtual memory. The use of virtual memory makes it appear that a computer has a greater RAM capacity because virtual memory allows the emulation of the transfer of whole blocks of data, enabling programs to run smoothly and efficiently. Instead of trying to put data into often-limited volatile RAM memory, data is actually written onto the hard disk. Accordingly, the size of virtual memory is limited only by the size of the hard disk, or the space allocated to virtual memory on the hard disk. When information is needed in RAM, the exchanges system rapidly swaps blocks of memory (also often termed pages of memory) between RAM and the hard disk.
Modern virtual-memory systems replace earlier forms of physical file swapping and fragmentation of programs.
In a sense, virtual memory is a specialized secondary type of data storage, and a portion of the hard drive is dedicated to the storage of specialized virtual-memory files (also termed pages). The area of the hard drive dedicated to storing blocks of data to be swapped via virtual memory interface is termed the page file. In most operating systems, there is a preset size for the page file area of the hard disk, and page files can exist on multiple disk drives. Users of most modern operating systems can, however, vary the size of the page file to meet specific performance requirements. As with the page file size, although the actual size of the pages is preset, modern operating systems usually allow the user to vary the size of the page. Virtual memory pages range in size from a thousand bites to many megabytes.
The use of virtual memory allows an entire block of data or programming (e.g., an application process) to reside in virtual memory, while only the part of the code being executed is in physical memory. Accordingly, the use of virtual memory allows operating systems to run many programs and thus, increase the degree of multiprogramming within an operating system.
Virtual memory integration is accomplished through either a process termed demand-segmentation or through another process termed demand-paging. Demand-paging is more common because it is simpler in design. Demand-paging virtual-memory processes do not transfer data from disk to RAM until the program calls for the page. There are also anticipatory paging processes utilized by operating systems that attempt to read ahead and execute the transfer of data before the data is actually required to be in RAM. After data is paged, paging processes track memory usage and constantly call data back and forth between RAM and the hard disk. Page states (valid or invalid, available or unavailable to the CPU) are registered in the virtual page table. When applications attempt to access invalid pages, a virtual-memory manager that initiates memory swapping intercepts the page fault message. Rapid translation of virtual addresses into a real physical address is via a process termed mapping. Mapping is a critical concept to the virtual-memory process. Virtual-memory mapping works by linking real hardware addresses (a physical storage address) for a block or page of stored data to a virtual address maintained by the virtual-memory process. The registry of virtual address allows for the selective and randomized translation of data from otherwise serial reading drives. In essence, virtual-memory processes supply alternate memory addresses for data, and programs can rapidly utilize data by using these virtual addresses instead of the physical address of the data page.
Virtual memory is a part of many operating systems, including Windows, but is not a feature of DOS. In addition to increasing the speed of execution and operational size of programs (lines of code), the use of virtual memory systems provide a valuable economic benefit. Hard-disk memory is currently far less expensive than RAM memory. Accordingly, the use of virtual memory allows the design of high-capacity computing systems at a relatively low cost.
Although swaps of pages of data (specific lengths of data or clocks of data) via virtual-memory swaps between the hard drive and RAM memory are very fast, an over-reliance upon virtual-memory swaps can slow overall system performance. If the amount of the hard drive dedicated to storing page files is insufficient to meet the demands of a system that relies heavily on the exchange of data via virtual memory, it is possible for users to receive “OUT OF MEMORY” messages and faults, even though they have large amounts of unused hard disk space.
By 2006, personal computers with RAM capacities of in the several-gigabyte (1 gigabyte equals 1 billion bytes) range were widely available in the United States and many personal computers boasted hard disk capacities of hundreds of GB, with one-terabye (one thousand gigabyte, one trillion byte) drives due on the market within the next year or two. The relative limits of both hard disk capacity and RAM memory capacity improve steadily with advances in microchip and magnetic storage technology.
See also Computer languages; Computer memory, physical and virtual memory; Computer software; Computer, analog; Computer, digital.
Cite this article
Pick a style below, and copy the text for your bibliography.
|
Crime-prevention jurisprudence? A response to Andrews and Dowden.(response to D.A. Andrews and Craig Dowden, Canadian Journal of Criminology and Criminal Justice, vol. 49, p. 439, October 2007)
Magazine article from: Canadian Journal of Criminology and Criminal Justice; 1/1/2009; ; 700+ words
; ...concept described as crime-prevention jurisprudence, where "a purpose of the courts is...called an exercise in therapeutic jurisprudence ... but we are not comfortable with...citations omitted). However, therapeutic jurisprudence is a conceptual framework (rather...
|
|
Scholars of the Law: English Jurisprudence from Blackstone to Hart.
Magazine article from: Michigan Law Review; 5/1/1997; ; 700+ words
; ...are people who are passionate about jurisprudence, people who dislike it, and people...difficult. Admitting a dislike of jurisprudence is a rather unlearned thing to do...For those who speak in defense of jurisprudence. however, the rarity of such admissions...
|
|
The jurisprudence of punishment.
Magazine article from: William and Mary Law Review; 4/1/2007; ; 700+ words
; ...punishment matches which school of jurisprudence. We assume that an aretaic...necessarily part of a natural law jurisprudence or that a consequentialist punishment...connection between Dworkinian jurisprudence and deontological punishment...
|
|
The ethics of therapeutic jurisprudence: a critical and theoretical enquiry of law, psychology and crime.
Magazine article from: Psychiatry, Psychology and Law; 4/1/2004; ; 700+ words
; ...For more than a decade, therapeutic Jurisprudence has informed legal procedures, rules...The expressed purpose of therapeutic jurisprudence is to assess, through social and behavioral...and processes. As such, therapeutic jurisprudence aims to conceive of and rely upon the...
|
|
Law as communicative praxis: toward a rhetorical jurisprudence.
Magazine article from: Argumentation and Advocacy; 3/22/1994; ; 700+ words
; ...continued for hundreds of years in jurisprudence, or the "philosophy of law...the theory and practice of jurisprudence have changed markedly over...history. In fact, contemporary jurisprudence is such that it bears almost...
|
|
Principles of Islamic Jurisprudence/Western Muslims and the Future of Islam
Magazine article from: The Muslim World; 4/1/2007; ; 700+ words
; Principles of Islamic Jurisprudence By Muhammad Hashim Kamali The...Kamali's Principles of Islamic Jurisprudence. It appeared at a time when religious...or another particular school of jurisprudence in its verdicts but not its methods...
|
|
Postmodern Legal Movements: Law and Jurisprudence at Century's End.
Magazine article from: Michigan Law Review; 5/1/1997; ; 700+ words
; ...capture the whole sweep of American jurisprudence. In SO doing, he purports to explain...book provides an overview of American jurisprudence, from Christopher Columbus Langdell...to understand "postmodern forms of jurisprudence, we must first explore what came before...
|
|
Holistic jurisprudence: Law shaped by people of faith
Magazine article from: St. John's Law Review; 7/1/2000; ; 700+ words
; ...school of thought known as therapeutic jurisprudence,10 which suggests that law should have...further step-the development of a new jurisprudence, which I have named "holisitc jurisprudence." Holistic jurisprudence reflects the...
|
|
Restorative justice, therapeutic jurisprudence and the rise of emotionally intelligent justice.(Australia)
Magazine article from: Melbourne University Law Review; 12/1/2008; ; 700+ words
; ...offender rehabilitation. Therapeutic jurisprudence has suggested reforms to minimise the...of Restorative Justice IV Therapeutic Jurisprudence A The Nature and Scope of Therapeutic Jurisprudence B Criticisms of Therapeutic Jurisprudence...
|
|
Practical jurisprudence: Deconstructing and synthesizing the art and science of thinking like a lawyer
Magazine article from: The University of Memphis Law Review; 10/1/1998; ; 700+ words
; ...These new lawyers require a thorough grounding in "practical jurisprudence."6 Many, if not most, attorneys recoil when they read the word "jurisprudence." They view jurisprudence as an impractical discipline that involves the contemplation...
|
|
Jurisprudence
Encyclopedia entry from: International Encyclopedia of the Social Sciences
Jurisprudence The term jurisprudence refers generally to the science or study of law and encompasses...jurisprudential efforts can be divided into two types: applied jurisprudence and the philosophy of law. Applied, or empirical, jurisprudence...
|
|
Feminist Jurisprudence
Encyclopedia entry from: West's Encyclopedia of American Law
FEMINIST JURISPRUDENCE A philosophy of law based on the...of the sexes. Overview Feminist jurisprudence is a burgeoning school of legal...issues. Each strain of feminist jurisprudence evaluates and critiques the law...
|
|
Mechanical Jurisprudence
Encyclopedia entry from: West's Encyclopedia of American Law
Mechanical Jurisprudence Roscoe Pound, 1908 roscoe pound followed in...Wendell Holmes's footsteps. In "Mechanical Jurisprudence" (1908), Pound coined the term mechanical jurisprudence to refer to the common but odious practice...
|
|
Sociological Jurisprudence
Book article from: The Oxford Companion to the Supreme Court of the United States
Sociological Jurisprudence In a series of law review articles...he called “mechanical jurisprudence.” He denied that just...termed a “sociological jurisprudence.” Such a judicial outlook...
|
|
jurisprudence
Book article from: The Columbia Encyclopedia, Sixth Edition
jurisprudence , study of the nature and the origin and development...Bibliography: See J. Hall, ed., Readings in Jurisprudence (1938); W. S. Carpenter, Foundations of Modern Jurisprudence (1958); D. Lloyd, Introduction to Jurisprudence...
|