how to Reduce page file usage

D

Dale

How do I restrict Windows XP from using the page file?

I have 1.5 GB of RAM, and TaskManager tells me there is over 1 GB of
Physical Memory Available.
All my programs take, at most, 1 GB of memory once loaded (including shared
memory for video card). This info comes summary values in TaskManager; add
memory in use (Installed minus Available) plus PF usage.
This means that I would have half a Gig of spare memory, even if XP left
everything in RAM.

Windows keeps dumping stuff into the page file, even though there is no need
(since there is no shortage of memory). As a result of this behaviour, when
I go to use a previously loaded program that I have not switched to for an
hour, I have to wait half a minute for it to load into RAM from the PF. (It
is a large program.) Sometimes, after waiting for 5 minutes, the program
still is not ready for use. Maybe XP is thrashing, or fighting with itself;
it loads a page, sees there is less than 1 GB of available memory, so it
flushes another page that is also needed by the program... ?
What is the point of me waiting, when there is a ton of spare memory? It
should not be flushing ANY RAM to PF in the first place. I see no value in
the computer trying to keep 1 GB of Available memory at all times.

So I tried using Computer Properties \ Advanced \ Performance \ Settings \
Advanced \ Virtual memory setting to force the page file down to 256 MB.
Yes that's small, but it's not like the computer needs the extra memory
space. I can confirm that C:\pagefile.sys is 268,435,456 bytes.
TaskManager still gives PF Usage at over 500 MB though, and the computer is
still making me wait at least 30 seconds to start using the program again
after an hour delay.

Where is Windows dumping the info to disk, since C:\pagefile.sys is the
correct size?
So, how do I force XP to stop being stupid with the pagefile? I want to
force XP to keep ALL programs in physical RAM, since there is no shortage of
it.

Windows says MS recommends against eliminating the swap file entirely... How
important is that?

Dale
 
N

needlove

Not entirely positive about this so you may want to look elsewhere to
verify. Click Start Run type msconfig click ok. Click on system.ini tab and
then highlight [386enh] and then click "new" and add this without quotes:
"ConservativeSwapfileUsage=1". It should force Windows to use physical
memory over virtual when possible.


| How do I restrict Windows XP from using the page file?
|
| I have 1.5 GB of RAM, and TaskManager tells me there is over 1 GB of
| Physical Memory Available.
| All my programs take, at most, 1 GB of memory once loaded (including
shared
| memory for video card). This info comes summary values in TaskManager;
add
| memory in use (Installed minus Available) plus PF usage.
| This means that I would have half a Gig of spare memory, even if XP left
| everything in RAM.
|
| Windows keeps dumping stuff into the page file, even though there is no
need
| (since there is no shortage of memory). As a result of this behaviour,
when
| I go to use a previously loaded program that I have not switched to for
an
| hour, I have to wait half a minute for it to load into RAM from the PF.
(It
| is a large program.) Sometimes, after waiting for 5 minutes, the program
| still is not ready for use. Maybe XP is thrashing, or fighting with
itself;
| it loads a page, sees there is less than 1 GB of available memory, so it
| flushes another page that is also needed by the program... ?
| What is the point of me waiting, when there is a ton of spare memory? It
| should not be flushing ANY RAM to PF in the first place. I see no value
in
| the computer trying to keep 1 GB of Available memory at all times.
|
| So I tried using Computer Properties \ Advanced \ Performance \ Settings
\
| Advanced \ Virtual memory setting to force the page file down to 256 MB.
| Yes that's small, but it's not like the computer needs the extra memory
| space. I can confirm that C:\pagefile.sys is 268,435,456 bytes.
| TaskManager still gives PF Usage at over 500 MB though, and the computer
is
| still making me wait at least 30 seconds to start using the program again
| after an hour delay.
|
| Where is Windows dumping the info to disk, since C:\pagefile.sys is the
| correct size?
| So, how do I force XP to stop being stupid with the pagefile? I want to
| force XP to keep ALL programs in physical RAM, since there is no shortage
of
| it.
|
| Windows says MS recommends against eliminating the swap file entirely...
How
| important is that?
|
| Dale
|
|
 
R

Ron Martell

Dale said:
How do I restrict Windows XP from using the page file?

I have 1.5 GB of RAM, and TaskManager tells me there is over 1 GB of
Physical Memory Available.
All my programs take, at most, 1 GB of memory once loaded (including shared
memory for video card). This info comes summary values in TaskManager; add
memory in use (Installed minus Available) plus PF usage.
This means that I would have half a Gig of spare memory, even if XP left
everything in RAM.

Windows keeps dumping stuff into the page file, even though there is no need
(since there is no shortage of memory). As a result of this behaviour, when
I go to use a previously loaded program that I have not switched to for an
hour, I have to wait half a minute for it to load into RAM from the PF. (It
is a large program.) Sometimes, after waiting for 5 minutes, the program
still is not ready for use. Maybe XP is thrashing, or fighting with itself;
it loads a page, sees there is less than 1 GB of available memory, so it
flushes another page that is also needed by the program... ?
What is the point of me waiting, when there is a ton of spare memory? It
should not be flushing ANY RAM to PF in the first place. I see no value in
the computer trying to keep 1 GB of Available memory at all times.

So I tried using Computer Properties \ Advanced \ Performance \ Settings \
Advanced \ Virtual memory setting to force the page file down to 256 MB.
Yes that's small, but it's not like the computer needs the extra memory
space. I can confirm that C:\pagefile.sys is 268,435,456 bytes.
TaskManager still gives PF Usage at over 500 MB though, and the computer is
still making me wait at least 30 seconds to start using the program again
after an hour delay.

Where is Windows dumping the info to disk, since C:\pagefile.sys is the
correct size?
So, how do I force XP to stop being stupid with the pagefile? I want to
force XP to keep ALL programs in physical RAM, since there is no shortage of
it.

Windows says MS recommends against eliminating the swap file entirely... How
important is that?

Hi Dale.

Gerry Cornell pointed you in the right direction.

One concept that is hard to appreciate unless it is explained to you
is that Windows reports a lot of "phantom" page file usage. That is
why it is better to make your decisions based on the utility that
Gerry mentioned rather than on what Task Manager reports as PF Usage.

The starting point for all of this has to do with the way memory is
allocated. Various items, such as application programs, device
drivers, and Windows components, issue Memory Allocation Requests to
the operating system. By design, Windows must sufficient memory
address space to all of these requests. However the reality is that
almost everything tends to ask for memory allocations that are larger
than what is actually needed under normal circumstances.

So what Windows does is to allocate RAM only to those portions of the
requests that are actually used, with the unused portions being mapped
to locations in the paging file. Note that this mapping of the
unused portions of memory requests to the paging file does not require
any actual disk activity - all that is necessary is to make
appropriate entries in the memory mapping tables maintained by the
CPU.

Windows Task Manager (and most other Windows reporting functions)
count this mapping of unused requests as usage of the paging file; and
technically they are correct because the memory addresses represented
by that paging file space have been allocated and cannot be used
elsewhere until released.

MVP Bill James' utility (the one Gerry referred you to) on the other
hand only counts the actual valid memory content that has been moved
from RAM to the paging file. This is the true physical usage of the
paging file, and should be a relatively low figure. There is about
50 mb or so of memory content used by Windows and various startup
items that is seldom or never used again but which must remain in
memory in order to preserve integrity. Very often some or all of that
will be moved to the paging file as a routine housekeeping measure.
But anything more than 50 mb or so of actual valid memory content in
the paging file is usually an indicator that your system would benefit
from having more RAM installed.

Just to illustrate the various paging file figures here is the current
data for my own computer:
PF Usage (Task Manager) = 524 mb
Actual usage (Bill James' utility) = 86 mb
Actual physical size of the paging file (c:\pagefile.sys) = 128 mb

The computer presently has 1 gb of RAM installed.

Ron Martell Duncan B.C. Canada
--
Microsoft MVP (1997 - 2006)
On-Line Help Computer Service
http://onlinehelp.bc.ca
Syberfix Remote Computer Repair

"Anyone who thinks that they are too small to make a difference
has never been in bed with a mosquito."
 
N

needlove

Why then does Windows only see the initial size of the pagefile? If I set
the initial size to say 180 MBs and the maximum to 300 MBs then when the
initial size is reached (180 MBs) windows gives me a caution sign and says
it is increasing the size of the virtual memory. That doesn't make sense it
should only increase it when the maximum is reached. I use the Bill James
monitor and it shows my pagefile size at the minimum i have set "188MBs".
What is the point of having a minimum and a maximum if only the minimum is
seen as the actual size?
|
| >How do I restrict Windows XP from using the page file?
| >
| >I have 1.5 GB of RAM, and TaskManager tells me there is over 1 GB of
| >Physical Memory Available.
| >All my programs take, at most, 1 GB of memory once loaded (including
shared
| >memory for video card). This info comes summary values in TaskManager;
add
| >memory in use (Installed minus Available) plus PF usage.
| >This means that I would have half a Gig of spare memory, even if XP left
| >everything in RAM.
| >
| >Windows keeps dumping stuff into the page file, even though there is no
need
| >(since there is no shortage of memory). As a result of this behaviour,
when
| >I go to use a previously loaded program that I have not switched to for
an
| >hour, I have to wait half a minute for it to load into RAM from the PF.
(It
| >is a large program.) Sometimes, after waiting for 5 minutes, the
program
| >still is not ready for use. Maybe XP is thrashing, or fighting with
itself;
| >it loads a page, sees there is less than 1 GB of available memory, so it
| >flushes another page that is also needed by the program... ?
| >What is the point of me waiting, when there is a ton of spare memory?
It
| >should not be flushing ANY RAM to PF in the first place. I see no value
in
| >the computer trying to keep 1 GB of Available memory at all times.
| >
| >So I tried using Computer Properties \ Advanced \ Performance \ Settings
\
| >Advanced \ Virtual memory setting to force the page file down to 256 MB.
| >Yes that's small, but it's not like the computer needs the extra memory
| >space. I can confirm that C:\pagefile.sys is 268,435,456 bytes.
| >TaskManager still gives PF Usage at over 500 MB though, and the computer
is
| >still making me wait at least 30 seconds to start using the program
again
| >after an hour delay.
| >
| >Where is Windows dumping the info to disk, since C:\pagefile.sys is the
| >correct size?
| >So, how do I force XP to stop being stupid with the pagefile? I want to
| >force XP to keep ALL programs in physical RAM, since there is no
shortage of
| >it.
| >
| >Windows says MS recommends against eliminating the swap file entirely...
How
| >important is that?
| >
|
| Hi Dale.
|
| Gerry Cornell pointed you in the right direction.
|
| One concept that is hard to appreciate unless it is explained to you
| is that Windows reports a lot of "phantom" page file usage. That is
| why it is better to make your decisions based on the utility that
| Gerry mentioned rather than on what Task Manager reports as PF Usage.
|
| The starting point for all of this has to do with the way memory is
| allocated. Various items, such as application programs, device
| drivers, and Windows components, issue Memory Allocation Requests to
| the operating system. By design, Windows must sufficient memory
| address space to all of these requests. However the reality is that
| almost everything tends to ask for memory allocations that are larger
| than what is actually needed under normal circumstances.
|
| So what Windows does is to allocate RAM only to those portions of the
| requests that are actually used, with the unused portions being mapped
| to locations in the paging file. Note that this mapping of the
| unused portions of memory requests to the paging file does not require
| any actual disk activity - all that is necessary is to make
| appropriate entries in the memory mapping tables maintained by the
| CPU.
|
| Windows Task Manager (and most other Windows reporting functions)
| count this mapping of unused requests as usage of the paging file; and
| technically they are correct because the memory addresses represented
| by that paging file space have been allocated and cannot be used
| elsewhere until released.
|
| MVP Bill James' utility (the one Gerry referred you to) on the other
| hand only counts the actual valid memory content that has been moved
| from RAM to the paging file. This is the true physical usage of the
| paging file, and should be a relatively low figure. There is about
| 50 mb or so of memory content used by Windows and various startup
| items that is seldom or never used again but which must remain in
| memory in order to preserve integrity. Very often some or all of that
| will be moved to the paging file as a routine housekeeping measure.
| But anything more than 50 mb or so of actual valid memory content in
| the paging file is usually an indicator that your system would benefit
| from having more RAM installed.
|
| Just to illustrate the various paging file figures here is the current
| data for my own computer:
| PF Usage (Task Manager) = 524 mb
| Actual usage (Bill James' utility) = 86 mb
| Actual physical size of the paging file (c:\pagefile.sys) = 128 mb
|
| The computer presently has 1 gb of RAM installed.
|
| Ron Martell Duncan B.C. Canada
| --
| Microsoft MVP (1997 - 2006)
| On-Line Help Computer Service
| http://onlinehelp.bc.ca
| Syberfix Remote Computer Repair
|
| "Anyone who thinks that they are too small to make a difference
| has never been in bed with a mosquito."
 
K

Ken Blake, MVP

Dale said:
How do I restrict Windows XP from using the page file?

I have 1.5 GB of RAM, and TaskManager tells me there is over 1 GB of
Physical Memory Available.
All my programs take, at most, 1 GB of memory once loaded (including
shared memory for video card). This info comes summary values in
TaskManager; add memory in use (Installed minus Available) plus PF
usage.
This means that I would have half a Gig of spare memory, even if XP
left everything in RAM.


No, it doesn't mean that at all. Wanting to minimize the amount of memory
Windows uses is a counterproductive desire. Windows is designed to use all,
or nearly all, of your memory, all the time, and that's good not bad. Free
memory is wasted memory. You paid for it all and shouldn't want to see any
of it wasted.

Windows works hard to find a use for all the memory you have all the time.
For example if your apps don't need some of it, it will use that part for
caching, then give it back when your apps later need it. In this way Windows
keeps all your memory working for you all the time.


Windows keeps dumping stuff into the page file, even though there is
no need (since there is no shortage of memory).


Please don't make the mistake of confusing page file use with page file
allocation. They are not the same thing. Far and away the best piece on the
page file written is this article by the late MVP Alex Nichol: "Virtual
Memory in Windows XP" at http://www.aumha.org/win5/a/xpvm.php I recommend
you read this to better understand how all this works.

To find out how much page you actually use (as opposed to allocate), go to
http://billsway.com/notes_public/winxp_tweaks/ and download
WinXP-2K_Pagefile.zip to monitor your pagefile usage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Page file usage 8
Windows 7 Setting up Wake on LAN 3
PF Usage confusion 5
Page File size won't change 15
Is it possible to avoid using virtual memory? 6
What makes people want to buy this NetBook 2
Increase PF Usage 2
Slow performance 7

Top