Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

What's virtual memory?

Thread Tools
 
Search this Thread
 
Old 21 June 2004, 07:32 PM
  #1  
Gridlock Mikey
Scooby Regular
Thread Starter
 
Gridlock Mikey's Avatar
 
Join Date: Jan 2001
Location: http://www.facebook.com
Posts: 15,233
Likes: 0
Received 0 Likes on 0 Posts
Question What's virtual memory?

And why does my home pc keep telling me that I haven't got enough and therefore it's increasing it?

Forever your techno retard SN member

Mikey
Old 21 June 2004, 07:50 PM
  #2  
Manners
Scooby Regular
 
Manners's Avatar
 
Join Date: Aug 2001
Location: Buxton
Posts: 527
Likes: 0
Received 0 Likes on 0 Posts
Default

virtual memory is when your system has not got enough ram and it uses the hard drive for temp. storage.
Old 21 June 2004, 07:50 PM
  #3  
jjones
Scooby Regular
 
jjones's Avatar
 
Join Date: Apr 1999
Posts: 4,410
Received 1 Like on 1 Post
Default

right

your pc has 3 types of memory.

cache on the processor, system RAM and then virtual memory.

virtual memory is where the pc uses space on the hardrive as "virtual memory". i.e. it uses a set space on the hard disk to read and write temporary data to. your system is requesting more hard disk space to use as virtual memory. check that you have free space on your "c" drive (this is where by default your virtual memory is). you can tell the pc to use more space if you have it available.

fkcu croatia score DOH

stuff ya memory i'm off to cry at the tv
Old 21 June 2004, 07:52 PM
  #4  
Iain Young
Scooby Regular
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

Basically, your average pc has not got enough memory to run all the applications and the operating system at the same time. What happens is that a large file is created on your hard disc, and data in memory that isn't currently being used is unloaded from your ram chips, and saved in the file for later retrieval. (swapped from memory to the file, and back again when needed - which is why it's often called a swap file).

Generally speaking, the size of your swap file should be the same size (or greater) than the amount of physical ram you have in the machine. So, if you have 128Mb of memory, you should have a 128Mb or greater swap file. If your system is reporting low vitual memory, then you are running too much stuff for the current settingws to handle, and you probably need to increase the size of the swap file.

Iain
Old 21 June 2004, 07:52 PM
  #5  
Dracoro
Scooby Regular
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default

I know what it is but it's far easier to paste stuff from howstuffworks.com

bascially it's like normal memory but using hdd space rather than ram.
If it happens a lot then consider adding more ram.

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
Old 21 June 2004, 07:56 PM
  #6  
Nog
Scooby Regular
 
Nog's Avatar
 
Join Date: Jul 2003
Posts: 141
Likes: 0
Received 0 Likes on 0 Posts
Default

Mikey

Virtual Memory is a solution used by many operating systems to make it possible to run many programs at once, without needing masses of memory.

Basically, you have physical memory - the stuff that you shove onto the motherboard, and virtual memory. Virtual memory is an area of your computer's hard disk(s) that is set aside for "paging".

Paging can be analogised (sp?) as follows:

Imagine you're working with loads of files from a filing cabiniet. Your desk represents how much memory you have. You start placing more and more files onto your desk until you run out of space (you're out of physical memory). So, you have a look at the files on the desk, work out which ones you haven't used for a while, and shove them in a box (this is "paging out"). As you carry on working, you keep looking at files on the desk, and this is done very quickly. However, you then realise you need a file that's not on the desk (known as a hard page fault), so you open the box and dig it out, swapping it with a file on the desk that hasn't been used for a while. This process takes a long time.

In computer terms, to access information from the "page file" or "swap file" takes many thousands times longer than accessing information from memory.

You can increase the size of your page file, or even move it to a fast disk, but ultimately, the more physical RAM the better.

To change the size, or move your page file(s) [on Windows XP], right-click My Computer, select Properties. Select the Advanced tab, click Settings. Select the Advanced tab and click Change.

Cheers

Nog
Old 21 June 2004, 08:44 PM
  #7  
_Meridian_
Scooby Regular
iTrader: (1)
 
_Meridian_'s Avatar
 
Join Date: Jun 2004
Location: Mancs
Posts: 2,806
Likes: 0
Received 1 Like on 1 Post
Default

From the above:

1) Get more RAM - most games etc need 256MB minimum, 512MB is OK, 1GB is good.

2) Set the pagefile to about 1GB, but set max and min to be the same - dynamically altering the size of the pagefile slows it down. Set more if you want, but keep the size rule.

4) Stop running Windows - all this happens 'cos every version of Windows ever made has a meory leak. It's not as bad as 3.1 (GDI.EXE errors anyone?) but XP is still poor at clearing out unused registers.


M
Old 21 June 2004, 11:43 PM
  #8  
TopBanana
Scooby Regular
 
TopBanana's Avatar
 
Join Date: Jan 2001
Posts: 9,781
Likes: 0
Received 0 Likes on 0 Posts
Default

Pedantic mode - virtual memory is actually an abstract view the operating system has of both the physical memory AND the swap file(s).
Old 22 June 2004, 01:10 PM
  #9  
Gridlock Mikey
Scooby Regular
Thread Starter
 
Gridlock Mikey's Avatar
 
Join Date: Jan 2001
Location: http://www.facebook.com
Posts: 15,233
Likes: 0
Received 0 Likes on 0 Posts
Default

Cheers nog, i'm liking the desk analogy See Hanslow, told you it wasn't hard to explain computer stuff.

Anyways, i'm off home in a while to stop my computer "Thrashing" about

Ha see how anyone can talk techie

Cheers guys

Mikey
Old 22 June 2004, 01:20 PM
  #10  
SCOSaltire
Scooby Regular
 
SCOSaltire's Avatar
 
Join Date: Mar 2001
Posts: 1,809
Likes: 0
Received 0 Likes on 0 Posts
Talking

Its Memory Jim, but not as we know it
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
XRS
Computer & Technology Related
18
16 October 2015 01:38 PM
nik52wrx
Non Scooby Related
4
29 September 2015 05:38 PM
B0DSKI
Non Car Related Items For sale
2
27 September 2015 06:58 PM
andy97
Computer & Technology Related
12
16 September 2015 08:07 PM



Quick Reply: What's virtual memory?



All times are GMT +1. The time now is 02:51 AM.