I have a Windows XP system with 1.5GB of RAM, but Windows seems to
insist on using Virtual Memory even when there is plenty of physical
memory left (>800MB).
If I open multiple programs and switch between them, Windows will
usually favor storing the inactive program in Virtual Memory even
though most of my physical memory is still free. So when I switch
back to the inactive program, I have to wait for it to be loaded from
disk.
Is there any way to force Windows XP to use Phyical Memory in favor of
Virtual Memory?
Windows will *always* use the virtual memory paging file space to
satisfy the memory address requirements for the unused portions of
memory allocation requests.
By definition Windows must identify specific memory address space to
satisfy all of the memory allocation requests that are issued by
windows components, device drivers, and application programs. And for
a variety of reasons these memory allocation requests are typically
overstated in comparison to the amount of memory that is actually used
under normal circumstances.
So what the memory manager does is to assign RAM only to those
portions of the requested memory that is actually being used and to
map the unused portions to locations in the page file. Note that no
disk activity is required for this - only a notation in the memory map
tables maintained by the CPU. And if some of the previously unused
memory is later required to be used then that memory portion can be
instantaneously remapped to an available location in RAM, again simply
by changing the table.
The only "dangerous" aspect of the type of situation that you describe
would be if Windows were actually moving memory content from RAM to
the page file while there still was a significant quantity of unused
RAM available. Unfortunately Windows does not provide an easy way of
determining how much, if any, memory content has been relocated from
RAM to the page file. However a free utility that will report this
figure can be downloaded from
http://www.dougknox.com/xp/utils/xp_pagefilemon.htm or from
http://billsway.com/notes_public/WinXP_Tweaks
If you download this utility you should find that the actual page file
usage will be zero or at least very little.
Hope this explains the situation.
Good luck
Ron Martell Duncan B.C. Canada
--
Microsoft MVP
On-Line Help Computer Service
http://onlinehelp.bc.ca
"The reason computer chips are so small is computers don't eat much."