Swap partition on Windows

I've always liked having a dedicated swap partition. The problem on Windows XP is that you get that annoying low disk space pop-up if you fill up a particular partition with the swap file. But there's a simple registry fix to solve that problem:

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Name: NoLowDiskSpaceChecks
Data Type: REG_DWORD
Value: 1
That's it. Thanks to http://www.winxpfix.com/page21.htm

5 comments:

Anonymous said...

And how do one make a SWAP partition?:)cuz i had one...but after my reinstallation of windos..it just..disappeared.

Unknown said...

You can use GParted (open source, free) or Partition Magic to resize an existing drive partition and use the freed up space to create a new one. Be warned that there is a remote possibility that this might cause loss of all data on the partition being resized.

Unlike *nix, windows doesn't have the concept of a dedicated swap partition, so create a regular windows NTFS partition. Rule of thumb is the size of your swap should be 2x the amount of RAM you have.

Once you've created and formatted the partition, you can point windows to it by right clicking My Computer-> Properties-> Advanced-> Performance-> click Settings-> Advanced-> Virtual memory

Set 'No paging file' for all other drives and select 'Custom size' for your newly created swap partition/drive. Set both initial size and maximum size to the full capacity of the partition - well a few MB less actually, because windows complains otherwise.
Say OK, do the registry hack and you're done.

HTH,
Sid.

Anonymous said...

thank you for the reply on how to create a swap file/partition.

another note: create swap partition on another hard drive (if you have one). and from what i know or heard or read, it must be the first partition of the drive. this will greatly speed up your system.

also you might want to create another small partition for your temp files. Again on another drive.

Anonymous said...

First, there is nothing that says it has to be the first partition.
Second, FAT is better (Linux Swap + SwapFS is even better than that), because a swap file gets written to a lot, and a journal means all the data has to be written twice. NTFS is a journalling file system. Could for file system protection, but not for write times.

Anonymous said...

You could try putting programs on the larger partition and data on the smaller one as discussed here tech help centre. There are a few other partition ideas on that thread as well.