Jerry said:
Many comments state that virtual memory should be 1.5
times your RAM. Increase yours if necessary.
1.5 times RAM is nonsense. It implies the more RAM you have
the more swapfile you need. I have 2GB RAM and I can assure
you I have no need nor desire to maintain a 2.5GB swapfile. 1GB
is more than sufficient for my needs (modern games are by far the
largest consumers of my swapfile, in my experience).
In general, the more RAM you have the LESS swapfile you need
but there is no "magic" formula based solely upon RAM. The actual
amount of swapfile you need is determined by the amount of RAM
you have compared to the number and type of applications you run
at any one time. The swapfile should simply cater for RAM that is
allocated but otherwise unused (wasted RAM), as well as to make
up for any shortfall in physical RAM. Note that unused allocations
are why you need a swapfile in the first place; without it, you cannot
use all your RAM (unused allocations need to be released or paged
before they can be used by other processes).
If Windows constantly requires more virtual memory then you should
either reduce the number of applications you run at one time, or increase
the paging file size to suit. Windows knows how much it needs, so you
never need to guess how much you need--so long as you keep your
usage in check. That is; close programs when you're finished with them.