Marc,
You didn't read my post correctly.
Aparantly I read it just fine. But it seems that you didn't read MY
post correctly.
No swap file is best, although in my opinion and my researched
experience, a swapfile on a RAM disk is stupendously quicker than your
usual Windows swapfile, and works substantially quicker than is enabled
by Windows' memory management, which I believe is crap.
Of course a swapfile on a ramdisk is much faster than a swapfile on
harddisk. Just like any file on ramdisk is much faster than a
harddisk.
But that doesn't mean that it is wise to put your swapfile on a
ramdrive.
You have to look at WHY and WHEN a swapfile is used.
You use a swapfile when you don't have enough memory. When you create
a ramdisk you are decreasing the amount of memory available for
applications. This means that windows start swapping much earlier then
woul be the case when you had not created that swapfile.
Look at the following scenarios.
You have machine with 1 GB RAM.
In situation A you create a 500MB ramdrive and put your swapfile on
that. You thus have 500MB available for the OS and applications.
In siutation B you do not create a ramdrive and just have a swapfile
on disk. You have 1000MB available for the OS and applications.
1) Your applications use 250MB ram.
A: The application fits in the 500MB available physical memory and
thus no swapping is needed.
B: The application fits in the 1000MB availabe physical memory and now
swapping is needed.
Result: No performance difference between the configurations
2) You applications use 750MB ram.
A: The system needs to swap 250MB to the swapfile on the RAMdrive.
Even though the ramdrive is very fast, swapping is taking place and
the system is slowed down because of this. The slowdown is not very
big, but it is there.
B: The 750MB fits in the 1000MB, so no swapping is needed.
Result: The configuration with the Ramdrive is marginally slower then
the other configuration.
3) Your applications use 1.5GB ram.
A: The system swaps 500MB to the swapfile on the RAMdrive. And it
swaps 500MB to a swapfile on disk. (or if you don't have a swapfile on
disk your system crashes)
B: The system swaps 500MB to a swapfile on disk.
Result: Both configurations are slowed down considerably due to the
swapping to disk. (the performance loss of the swapping to ramdrive is
neglectable in comparison)
Conclusion: Do not put a swapfile on ramdisk.
Ramdrives are usefull when you have a disk bottleneck on creating temp
files. Lots of applications don't write data to memory but use
tempfiles. (smtp gateways for example) In that situation a ramdrive
can increase performance a lot.
Marc