When there isn't enough RAM resources and more space is needed, the
Virtual Memory Manager (VMM) scans the memory for sections that are
not in use and transfers them to a swap file on the hard drive. The
virtual memory is not as fast as real RAM because your hard drive
isn't, but it can still help your computer run smoother.
If your swap file is too small, you don't have enough RAM, or you are
running an application with a memory leak, your computer will start
freezing up and you'll start getting the "Virtual memory too
low" error. So it's really important to set the correct amount
of virtual memory. The size of the swap file is set automatically by
the operating system. However, in most cases it's best to configure
virtual memory yourself. By default, Windows sets your page file 1.5
times the size of your physical memory. You can improve performance
by setting your page file to twice the size of your RAM. If you don't
feel like assigning that amount of disk space to your swap file, you
can always set it to 1.75 the size of your RAM, as it will still be
better than setting it to 1.5 the size. Here is how you can configure
virtual memory:
Windows XP:
- Right-click on My Computer and go to Properties
- Click on the Advanced tab and then click on the Settings button in the Performance section
- A new window will open. Go to the Advanced tab
- Find the Virtual memory section and click on the Change button
- Select the System managed size option or manually change the size of the swap file. Alternatively, you can set a Custom size by typing in the new size in MB in the Initial size (MB) and Maximum size (MB) boxes. Make sure it's the same amount to prevent your CPU from constantly adjusting virtual memory
- Click on Set and then click OK
- You might need to restart your PC for the changes to take effect.
Windows 7:
- Click Start, right-click on Computer and go to Properties to open System
- Click the Advanced System Settings link to open Advanced Tab
- Click Settings under Performance
- Go to the Advanced tab, find Virtual memory and click Change
- Uncheck the Automatically manage paging file size for all drives checkbox.
- Under Drive [Volume Label], click on the drive where you want to change the size of virtual memory
- Click Custom size and type the new size in MB in the Initial size (MB) and Maximum size (MB) boxes. Make sure it's the same amount to prevent your CPU from constantly adjusting virtual memory
- Click Set and then click OK
- You might need to restart your system for the changes to take effect.
However, it's not always good to have a large page file. In fact,
those of you who have 4GB of RAM or more will benefit from disabling
the swap file altogether. Do not disable your swap file if you have
less than 4GB of RAM, as you will start encountering multiple
problems. Like applications crashing because there isn't enough
memory for them to work.
You can also increase performance by moving the swap file to a drive
or partition other than where your operating system is installed. To
do that, just select a different drive or click on C drive when
changing the size of virtual memory and select a different partition.
When you are done, click Set and then click OK.
No comments:
Post a Comment