Until you go to access said inactive things... bam instant slow computer. No thanks.
What difference is there pulling the data from the page file which is on the hard drive or pulling it from the hard drive itself since it's not actively in RAM anymore. I don't see any reason whatsoever why it would be slower coming from the pagefile...it anything I would think it a bit faster than coming from the actual hard drive itself.
Hi there
without trying to get TOO technical you need to understand how an OS organises memory.
Very simply applications only need RAM when actual data instructions are being executed -- when an application isn't actually running (say in the other inactive windows) then parts of this application will be written to the Paging file. In addition depending on how you use the computer the OS will also store data it THINKS you'll need in future -- this is a complex algorithm but it actually works quite well and is known as "PRE FETCH" so when you need the data it's already in the system.
The paging file is also used when there isn't enough RAM in the system to run all the applications that the user wants to at the same time -- so again the "inactive" parts are copied to the paging file so RAM that is needed for another application is released and the data can be loaded to the freed "page". Of course if RAM is really short then the system will never run anything since it will be doing nothing but paging - this is called "thrashing" and you'll notice this by seeing a HDD light solid on and the computer won't be doing anything either.
Now this paging file is ALWAYS used by the OS - even if you "disable" a disk paging file and the default is usually 1/2 the main RAM size so if you have an 8GB system the OS will allocate a 4GB page file IN YOUR PRECIOUS RAM so your computer will effectively be a 4GB machine not an 8GB machine.
Now your system could hang in this case because once your paging file is full there isn't any area for the OS to write its temporary data to -- so your system will come to a total and 100% sudden HARD STOP.
So I would recommend NEVER disable the system paging file - and put it on THE FASTEST DISK(S) you have -- SSD's make a great place for paging files.
OS internals are complex -- but NEVER switch off the paging file even if you have oodles and oodles of RAM.
Finally Reading from the paging file IS different from reading normal data since this has the HIGHEST I/O priority and some of the data is always held in an internal "Instruction decode area" in the hardware chip. Paging info is often read whilst other operations are taking place so it's not a "normal data read" in the usual sense of the word.
Added
-- You NEVER need to defrag a pagefile -- it's re-built at each re-boot.
Also to the poster who is talking about "Virtual Memory" -- this is a DIFFERENT topic which involves swapping in and out users "Address spaces" and "data areas" in their entirety.
This can be a LONG slow process -- excessive "Swapping" will also kill a system stone dead - and is a sraight data address space image write.
Paging involves a totally DIFFERENT algorithm -- the two are often confused. Linux being a Multi User system will have provision for "Swapping" but Windows (not the SERVER versions) being a single user system won't need "Swapping" in the classical sense but will stick to paging.
Cheers
jimbo