Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows swap file
Message
De
01/01/1999 08:05:36
 
 
À
01/01/1999 06:04:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00172049
Message ID:
00172064
Vues:
23
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform