Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows swap file
Message
From
01/01/1999 08:05:36
 
 
To
01/01/1999 06:04:04
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00172049
Message ID:
00172064
Views:
22
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform