I have the following phenomena: I have 4GB RAM, and sometimes I use a program (program A) which uses up all the available memory, say 3.9GB. If there are more open programs, then their memory is probably saved to disk and on taskman I see they now use almost no memory. Once I close program A, the memory is freed instantly (I see it on the taskman), and I expect the rest of the programs to load back to memory fast. But unfortunately, it takes them several long minutes (up to 5-10 minutes) until they load up properly.
Example: I open program A while Firefox is minimized on the background. Since Firefox usually uses about 500MB, and A needs my entire memory, Firefox now uses about 10-20MB and I obviously can't open it (technically I can, but it will take forever to restore it). Now I close program A and watch Firefox slowly loading back into memory, and until it reaches 400-450MB it remains "stuck".
What causes the memory loading to be this slow? is it the memory speed? maybe hard disk speed? maybe I can control it via the OS preferences (I use win7)?
Thanks.