FRANK said:
When a program or application of about 4mb is loaded int RAM from the hard
drive--- how long will it reside there before being swapped back out?
It will remain in RAM as long as the program itself remains open
*unless* the program is not being used and there is a need to provide
additional RAM for another application. At that point Windows will
identify which items currently in RAM are being actively used and will
move these items, or as many of them as is necessary, from RAM to the
paging file so as to free up the needed RAM.
Note that it may only be part of the program that is moved to the
paging file. The decision as to which item to move is based on the
amount of activity that each specific memory page (4K block) has had,
and perhaps also on how the program's author has coded the application
program. Some programs, or parts of them, may be coded so as not to be
swapped out from RAM.
Also if there is no shortage of RAM then the program code, or part of
it, may even remain in RAM after the application is closed. Windows
will have the RAM flagged as available for other uses if needed but if
no other use comes along the code will remain there, anticipating the
possibility that you may launch that same application again. Having
the code already in RAM greatly speeds up the second program launch.
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."