virtual memory
By CUTUABI
@CUTUABI (62)
India
March 20, 2007 10:46am CST
can anyone tell me what is vitual memory????? what is its function in computer??/
3 responses
@zeeshan_suleman (71)
• India
29 Mar 07
Virtual memory is a common part of most operating systems on desktop computers. It has become so common because it provides a big benefit for users at a very low cost.
Most computers today have something like 64 or 128 megabytes of RAM (random-access memory) available for use by the CPU (central processing unit). Often, that amount of RAM is not enough to run all of the programs that most users expect to run at once. For example, if you load the Windows operating system, an e-mail program, a Web browser and word processor into RAM simultaneously, 64 megabytes is not enough to hold it all. If there were no such thing as virtual memory, your computer would have to say, "Sorry, you cannot load any more applications. Please close an application to load a new one." With virtual memory, the computer can look for areas of RAM that have not been used recently and copy them onto the hard disk. This frees up space in RAM to load the new application. Because it does this automatically, you don't even know it is happening, and it makes your computer feel like is has unlimited RAM space even though it has only 32 megabytes installed. Because hard-disk space is so much cheaper than RAM chips, virtual memory also provides a nice economic benefit.
The area of the hard disk that stores the RAM image is called a page file. It holds pages of RAM on the hard disk, and the operating system moves data back and forth between the page file and RAM. (On a Windows machine, page files have a .SWP extension.)
Of course, the read/write speed of a hard drive is much slower than RAM, and the technology of a hard drive is not geared toward accessing small pieces of data at a time. If your system has to rely too heavily on virtual memory, you will notice a significant performance drop. The key is to have enough RAM to handle everything you tend to work on simultaneously. Then, the only time you "feel" the slowness of virtual memory is in the slight pause that occurs when you change tasks. When you have enough RAM for your needs, virtual memory works beautifully. When you don't, the operating system has to constantly swap information back and forth between RAM and the hard disk. This is called thrashing, and it can make your computer feel incredibly slow.
@serioushacker (121)
• India
20 Mar 07
In windows Xp A piece of HDD's drive is used as vitual RAM but this is later advanced by using USB Flash Drives in windows vista. Pen Drives are faster than HDD but slightly slower than RAM
@Myrrdin (3599)
• Canada
20 Mar 07
virtual memory is a chunk of hard drive space used by the computer as RAM, it is not actual RAM, but rather space set aside for this purpose, basically allowing the computer to think it has more ram then there is. The data on the virtual memory space is swapped back and forth from RAM to the HD. Virtual memory is slower than real RAM, but it does allow you to trick your computer into believing it has more RAM.