What is Virtual Memory?
- A technique that allows a program to be executed even though they are not stored.
- Is computer system technique which gives an application program the impression that it has contiguous working memory (an address space), while in fact it may be physically fragmented and may even overflow on to disk storage.
How virtual memory works?
- In essence, the operating system uses a portion of the hard drive as "false memory," or virtual memory, to make applications believe they have more memory to work with than they actually do. Virtual memory begins by the computer comprehending the RAM available to it, then it calculates the amount of hard drive space available and tells the software that there is so much RAM available between the two sources of storage. Therefore, when a word processor looks for room to store information temporarily, the operating system tells it that there is more available than just the memory of the RAM. There is hard drive space for usage that functions logically like more RAM.
How virtual memory works in Windows?
- When the computer does not have enough RAM to run a program i.e. when RAM goes low on your PC/computer, virtual memory moves unused data from RAM to some temporary disk storage space called a paging file.The default location of the page file is in the root directory of the partition where Windows is installed. Swapping data to and from the paging file frees up RAM to complete its work.Thus virtual memory is a temporary solution to low RAM on your PC/computer as your application/program can continue to run smooth on a continuous working memory.
How virtual memory works in Linux?
- The virtual memory is part of most operating systems out there. On Linux, the virtual memory is called 'swap' and occupies a separate partition on the hard drive. Virtual memory is used by the operating system in order to enhance the storage capacity of the working memory, without requiring the installation of additional Random Access Memory modules.
How virtual memory works in ASX or Mac OSX?
- Memory, or RAM, is handled differently in Mac OS X than it was in earlier versions of the Mac OS. In earlier versions of the Mac OS, each program had assigned to it an amount of RAM the program could use. Users could turn on Virtual Memory, which uses part of the system's hard drive as extra RAM, if the system needed it.
In contrast, Mac OS X uses a completely different memory management system. All programs can use an almost unlimited amount of memory, which is allocated to the application on an as-needed basis. Mac OS X will generously load as much of a program into RAM as they can, even parts that may not currently be in use. This may inflate the amount of actual RAM being used by the system. When RAM is needed, the system will swap or page out those pieces not needed or not currently in use. It is important to bear this in mind because a casual examination of memory usage with the top command via the Terminal application will reveal large amounts of RAM being used by applications. (The Terminal application allows users to access the UNIX operating system which is the foundation of Mac OS X.) When needed, the system will dynamically allocate additional virtual memory so there is no need for users try to tamper with how the system handles additional memory needs. However, there is no substitute for having additional physical RAM.
Most Macintoshes produced in the past few years have shipped with either 128 or 256 MB of RAM. Although Apple claims that the minimum amount of RAM that's needed to run Mac OS X is 128 MB, users will find having at least 256 MB is necessary to work in a productive way and having 512 MB is preferable.
Starting with Mac OS 10.4 (Tiger) the minimum will be raised to 256 MB of RAM. Most new Macintoshes are shipping with 512 MB of RAM. For systems which have only 256 MB of RAM it is advisable for users to have at least 512 MB of RAM in order to run applications effectively.
Mac OS 10.5 (Leopard) requires at least 512 MB of RAM. Most users will find that a minimum of 1 GB of RAM is desirable. Less than 1 GB means the system will have to do make use of virtual memory which will adversely affect system performance.