>>I wanted to keep windows swap file on the ram drive?
>>Is it possible.
>>Please help me.
>
>No it is not.
>
>Why would you want to? The swap file is for virtual memory. Virtual memory is needed when you run out of real memory. A ramdisk is allocated out of your pool of real memory.
>
You can do it, and I can construct some artifical scenarios where it'd even be desirable (a ton (if you have a desktop system with 1GB+ of memory, it might qualify as a ton) limited IPC and clipboard requirements) but it's not a good idea in most circumstances. there are products designed to be Solid State drives not allocated from the main pool of memory (the old JTree and SSD boards are some examples; the JTree stuff even provided for battery backup of the memory for a 'permanent' RAM disk that persisted between reboots/powerdowns) and those work fine, as long as they're big enough to meet Window's swap file requirements.
>You can turn off the virtual memory, that will prevent the use of the swap file. Remember, RAM is cheap.
It's almost never advisable to disable virtual memory under any of the Win32 environments; the swap file is used for other things besides providing RAM emulation, like buffering large Clipboard objects and for various IPC mechanisms like memory-mapped files.