Re: I now have 1 gb RAM - what to do with the Win XP Pro swap file?

From: Ron Martell (ron_at_onlinehelp.bc.ca)
Date: 04/17/04


Date: Sat, 17 Apr 2004 05:20:03 GMT


"Donald McDaniel" <orthocrossNOSPAMPLEASE@msn.com> wrote:

>Your understanding is incorrect. As an example, I currently have 512MB of
>memory, half of which is usually in use (that means 200+meg is usually
>available for use by the OS, but almost NEVER gets used, unless I open MANY
>windows). At the same time, XP Pro ALWAYS uses a swapfile of 180+mb. This
>may be due to my own misunderstanding of swapfile usage. Or it may just be
>due to allowing XP to manage virtual memory, instead of managing it myself.
>
>XP does not manage memory by using all available physical memory, then using
>the swapfile when there is no more physical memory available. Instead, it
>creates memory pools of "virtual memory" (some of which is swapfile, some of
>which is physical memory) and uses that.

Not quite correct.

What happens is that most programs, device drivers and also Windows
components always request more memory than they actually use under
normal circumstances, sometimes very substantially more.

By design Windows must provide memory address locations to satisfy all
of the memory requests that are issued, whether the full requested
amount is used or not. So what happens is that the portion of the
request that is actually used is mapped to addresses in RAM and the
unused portion of the request is mapped to the swap file. Because the
memory is unused this requires no disk activity or anything, just an
entry in the memory mapping tables maintained by the CPU.

And if something later decides to make use of more of the memory it
originally requested then that portion can be instantly remapped to an
available location in RAM.

Windows Task Manager, and many other reporting tools, report the swap
file space mapped to meet the unused portions of these memory requests
as being "in use" which is somewhat correct from a technical point of
view. But nothing has every been written to these swap file locations
and there is no disk activity associated with these items.

However it is also possible that Windows will move some items from RAM
to the swap file so as to allow that RAM to be used for other,
currently more important uses. This is the real 100% genuine "swap
file in use" that Windows XP does not have any convenient method of
identifying or reporting. You can download a free utility written by
MVP Bill James from
http://www.dougknox.com/xp/utils/xp_pagefilemon.htm or from
http://billsway.com/notes_public/WinXP_Tweaks that will report the
actual page file usage of your system, that is memory pages that have
been written out to the swap file and dropped from RAM.

One very useful purpose of this utility is to identify when adding
additional RAM is likely to provide a performance improvement. As a
general rule if this utility reports actual swap file usage of 50 mb
or more on a consistent basis then additional RAM is probably a
worthwhile consideration. But if it does not report 50 mb of actual
usage then there is little likelihood that adding RAM will improve
performance to any noticeable extent.

Using my computer as an example it is currently reporting in Task
Manager that I have Page File usage of 277 mb. However Bill James'
utility indicates that the actual usage at present 41 mb. These
figures taken together tell me that there is a total of 236 mb of
memory that has been requested but never used by the various items
that are currently running on the computer.

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."


Relevant Pages

  • Re: Windows uses 4 GB? Really?
    ... I bought 4 GB of RAM because I thought it would speed up my system a bit. ... Some info that is posted here as reference seems to suggest that it is a Windows issue, but others seem to suggest that it is also a hardware issue. ... "I have install total 4GB memory on my motherboard. ... On a SLI system, since PCI-Ex graphic cards will occupy around 256MB, another 256MB will be occupied after you install a 2nd PCI-Ex graphic card. ...
    (microsoft.public.windowsxp.general)
  • Re: HOW TO: optimal Windows XP Paging File size
    ... "Change the size of the virtual memory paging file" ... My advice to those genuinely interested in setting an optimum Windows XP ... Lastly, download, install and run Sysinternal PageDefrag ... For example, on a 32 bit WinXP Pro computer with 4 gig of RAM, any ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Problem with M2N32 and 4x1GB RAM modules
    ... I put 2x1GB corsair DDR2 800 modules into it. ... The IDENTICAL RAM modules that I bought when i built it ... Every time i sped through the windows boot process and got to the ... Since the same 2 GB memory was really ...
    (alt.comp.periphs.mainboard.asus)
  • Re: if i have many windows or programs running, I cannot open anym
    ... Ken Blake - Microsoft MVP Windows: ... much memory. ... If you don't have enough RAM, ...
    (microsoft.public.windowsxp.general)
  • Re: HOW TO: optimal Windows XP Paging File size
    ... "Change the size of the virtual memory paging file" ... My advice to those genuinely interested in setting an optimum Windows XP ... Lastly, download, install and run Sysinternal PageDefrag ... For example, on a 32 bit WinXP Pro computer with 4 gig of RAM, any ...
    (microsoft.public.windowsxp.perform_maintain)

Loading