YearOfTheLinuxDesktop wrote:
I keep my PCs turned on 24/7 and windows, both Vista and XP, kept swapping on disk despite having 8, yes, 8Gb of ram and never used more than 4. during the night something was being swapped to disk and every morning when I started using my PC that was left on all the night the applications that I left open before going to bed every now and then would hang for a few instants during which the swapped pages were being loaded from disk. and all this was caused by page faults, that I could clearly see on the task manager.
after I removed the swapfile it never happened again so actually it isn't a myth like many think: no matter how much ram you could put in a system windows will still use the swap file, no matter what you do, until you get rid of it.
Windows trims the working set of processes that are idle, especially if they're minimized. Vista is a bit smarter about this, but you have can't expect the operating system to really understand your work habits very well. It doesn't know the difference between some service running that is never used and a program that is idle for hours, they're just idle processes.
Now here's the kicker, if you disable the paging file, you are NOT preventing memory pages from getting pushed back to disk. Paging is a fundamental part of how the memory manager works, how files are loaded from disk, and how program code is loaded into memory.
You are only preventing the OS from paging out data allocated by programs, it still will page out program