The more virtual memory that's provided by memory chips in your computer, the faster Windows will run. Because of this, it's best to increase physical memory whenever possible. For example, if you have a RAM disk in extended memory, do not create a swap file on the RAM disk. Instead, remove the RAM disk so that Windows can use the memory directly. Creating a swap file on a network drive is not recommended.
Network swap files are extremely slow.
If you must create a swap file on a network drive, create a permanent swap file. Temporary vs. Permanent Swap Files Windows allows you to set up 2 types of swap files, temporary or permanent. Temporary swap files can be created out of fragmented hard disk space, but permanent swap files can only be created out of contiguous hard disk space. Depending on the amount of contiguous free hard disk space available, performance concerns, and the amount of hard disk space you need when not running Windows, one type of swap file may be better for your configuration than the other. Of the 2 types of swap files, temporary swap files are slower.