Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Changing the swap file

04 Feb 2010   #1

windows 2000 pro sp4
Changing the swap file

Hi all,

I would like to move the swap file from the hard drive its currently residing in to a 4 gb USB stick id like to install.

How would I do this and what would be the best size to make the swap file.

Also, is there any mileage in my doing this in Win7? It used to be a handy speed up for windows 2000 and XP but dont know about 7.

My System SpecsSystem Spec
04 Feb 2010   #2

Windows 7 64

Putting the pagefile on a usb stick doesn't seem like a good idea to me as it is written to and read from frequently and usb sticks aren't designed to copy with that in a long term. Furthermore the usb stick is slower than your hd so I don't see any benefit of it performance wise either.
My System SpecsSystem Spec
04 Feb 2010   #3

Linux CENTOS 7 / various Windows OS'es and servers

Hi there
read my post in the performance section


My System SpecsSystem Spec

23 Aug 2010   #4

Win 7 Enterprise x64, WinXP-Pro, Linux: Multiboot
moving swap/paging file from drive C: to partitioned drive D:


I'm new to Windows 7 but having relocated swap- and paging files in earlier OS'es and even in Linux.

My system has a separate swap partition defined for Windows 7 and one for WinXP being on the same computer, but on different partitions.

The thread in your link was quite interesting, but had nothing to to with the original posting, because my main interest ist more or less the same question as the guy who asked for it in the early stage of your posting, namely, how to relocate the pagefile.

He didn't get the answer he was looking for.

OK, he now knows that a USB-stick is a bad choice, but he still doesn't know how to relocate and I neither, had to register to ask you experts to please answer the main question.

My main interest is what I have to do to relocate the pagefile, i.e., what config files I need to edit, how to become a admin user on my newly installed system and take the appropriate actions to get Windows 7 to look for it's pagefile on volume D: next time it boots or to creat the file there if it's missing.

In the main setup the options are very limited and setting up a pagefile is only possible on the very same drive.

Now please, I don't need a discussion on if it is useful or not, just what to do to have it done.

If it kills my system performance I'll see that and change back to earlier stage with default pagefile settings, more or less.

It's just that I want to give it a try. If it fails, I'll use the spare partition for something else like installing a new linux distro on the 5gb partition.

Thanks for any support you can give me. I do hope this thread is still being monitored.


My System SpecsSystem Spec
23 Aug 2010   #5

Windows 10 Pro x64

The paging file is easy to configure - Control Panel > System applet > Advanced System Settings link > Advanced tab > Settings button (under "Performance" section", 1st Settings button) > Advanced tab > Change button. However, it is worth noting in passing that if you're moving the paging file to just a separate partition on the same physical disk that the Windows partition is installed to, you will at best get zero performance gain, and at worst actually see a performance decrease. However, test for yourself to see what works for you and your usage habits - one size does not fit all (although underlying paging file location and sizing guidelines for performance in general do not change).
My System SpecsSystem Spec

 Changing the swap file

Thread Tools

Similar help and support threads
Thread Forum
Swap file !!!
hi, i have win 7 64 bit os loaded with 4 gb RAM ... have disable swap file use from performance ... whot size should i put for speedy Win ??? C drive has 150 gb vacant ... Thanx
General Discussion
Can't remove SWAP file without restart
Hello, could you please help, I wish to make possible of removing swap file from my ram disk before pc goes into hibernation. Is it possible to make this without system restart? How to stop system using swap file without restart? thanks in advance, rambit:geek:
Performance & Maintenance
Recommended size of swap file with 4 GB ram
Hi. I'm wondering what the recommended size of the swap file is for a system with 4 GB of ram & a AMD Dual-core CPU.
Performance & Maintenance
Do I need a Swap File....if so how big?
Hello I've just bought a new computer from PC World. So far I have ripped the guts out of the eMachine case and put it into another case along with my ATI graphics card and 8gb of new RAM to go with the 2GB that came with the computer. The computer also has 3 hard drives, one dedicated...
Performance & Maintenance
Swap File
I am using Windows 7 Ultimate X64, where is my swap file located as i want to clean or encrypt it???
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 09:24.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App