The pagefile doesn't affect the amount of virtual memory available at all. Every 32-bit process has 2G available and for 64-bit processes it's some odd TB number that I don't feel like looking up right now, but both have the same exact amount of VM available regardless of the amount of physical memory installed. Removing the safety net provided by a pagefile serves no purpose other than saving a little bit of disk space.
Ahm no. That may work in Linux, but windows (and unix) doesn't let you overcommit memory.
Just tested this small juwel of code in VS08 compiled as a 64bit exe (and a small loop afterwards to make sure the compiler doesn't optimize it away).
int *test = (int*) malloc(8* 1024*1024*1024);
if(!test) {
printf("could not allocate memory\n");
return 1;
}
I get a nice fine error message when trying to allocate 8gb memory, ups.
Having a pagefile helps even when you're not low on memory because it lets Windows store modified pages that have no other on-disk backing store to make room for more data. If you've got pages in memory that haven't been referenced in hours or even days why would you want to force them to stay in memory? With Vista and Win7 this should be even more apparent as SuperFetch will watch your usage patterns and evict and preload data dependent on your usage patterns.
Ahem you missed the part with "dirty". Only a small subset of all pages will be modified and can't be stored, you don't need a pagefile to do that with unmodified pages.
And yes as I said if you are low on memory you'll be able to write dirty pages to the pagefile and that will help, but if you're not low on memory why bother.
Even if superfetch couldn't load one of the more infrequently used applications (and with 4gb especially for a laptop you've got plenty of ram for that usually), I think I'd prefer 10% more space to install thoes rarely needed applications on, especially since those will load fast nevertheless and superfetch won't even help anything shortly after the start when you most probably will start the majority of apps.
If you think 10% space is worth being able to start applications even faster on your SSD, but only several minutes after the start then say it and nobody will disagree with you, because that's a fact - the question remains how large that bonus is -, but we can discuss that and people can decide if they think that's worth that much space on such a small SSD.
Oh and if you'd stop to tell everyone who doesn't agree with you that they don't understand how virtual memory works, I think that would also help.. especially since you also aren't perfect *points upwards to the overcommiting example* (not that I blame you, that's something which is hardly important most of the time and you seem to be more of an linux guy)
It's not really wasted and if you think that pagefile usage is only relegated to old applications then you really don't know how virtual memory actually works or how the pagefile fits into it.
Not what I said. Some old applications use the pagefile in a rather strange way and you'll get a BSOD if you don't have one. That's the only thing that makes the system more reliable and I'm not sure how many people really run stuff like that (someone mentioned a game last time we had that discussion).