Dil said:
I've been wondering about this ever since I came to know about virtual memory.
We know that the idea behind virtual memory is to use part of the hard disk
as if it were RAM, when the actual RAM is not enough.
If I have more than 2 GB of RAM (and I tell windows not to use page file),
will it stay that way? will there be no pagefile.sys? Then what will be
displayed in the PF Usage graph in the Performance tab in the task manager?)
Or is it the case that no matter how much RAM you have, windows will still
use page files?
Windows XP is designed to operate with a page file and not having one
will actually make your RAM usage less efficient. Here is why.
Almost everything - Windows components, device drivers, application
programs, etc - always asks for larger memory allocations than what is
usually needed under normal circumstances. And by design Windows must
identify memory address space to satisy all of the requests that are
issued.
So what normally happens is that Windows allocates addresses in RAM
only to those portions of the allocation requests that are actually
being used, and uses space in the page file for the unused portions.
If there is no page file then Windows is forced to allocate RAM for
the full amount of all requests, including the unused portions.
Here, for example, is some current data from my own machine:
Physical RAM: 1 gb
PF Usage (from Task Manager): 556 mb
Actual size of the page file: 80 mb
Actual page file usage (= active memory content currently in the page
file) = 36 mb
What these figures tell me is that there is 520 mb of "phantom" page
file usage, mostly attributable to unused portions of memory
allocation requests. If there were no page file then RAM would have
to be used for this, resulting in reduced disk cache etc. And that in
turn would adversely affect overall performance. In fact with my
current load of open applications the system would probably crash due
to "out of memory" if there were no page file.
Hope this clarifies the situation.
Good luck
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."