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: Swapfile question


22 Jan 2009   #1

Windows 7 Professional 64bit
 
 
Swapfile question

Ok.... I have XP Pro installed and to date I always use a small partition @ the start of my slave drive for a set pagefile. about 3.5 gigs. I wonder if I dual boot Windows 7 and XP will I be able to use the same pagefile for Windows 7? Seeing as both Windows 7 and XP uses a pagefile, but they aren't running @ the same time?

My System SpecsSystem Spec
.

22 Jan 2009   #2

 

You might encounter problems as Windows 7 has enhanced file and folder and drive security, and if you create a pagefile under one OS and try to access it from another the security parameters, permissions ,etc will be off.

However, You may *seem* to use the same one - as each OS that you boot into may over write the other one.

This is going to be tricky, to be sure....
My System SpecsSystem Spec
22 Jan 2009   #3

Windows 7 Professional 64bit
 
 

Well I thought Windows created an up to date pagefile each time it started up? Which led to think maybe it could be used by any Windows OS. Hmmm... I wonder if I should attempt this path anyway..
My System SpecsSystem Spec
.


22 Jan 2009   #4
Microsoft MVP

Vista and now 7 in 32 and 64 bit.
 
 

Do you have any reason to keep the pagefile after use?
It can be yet another security leak, as it stores cookies etc as you work.
One way out of your dilemma, could be to clear the pagefile everytime you have finished. It adds a small amount to your switch off time, but nothing serious.
If that solution interests you, do this

Start Regedit. Navigate to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Select ClearPageFileAtShutdown from the list on the right.
Right on it and select Modify.
Change the value to 1 to enable.
Reboot your computer.
My System SpecsSystem Spec
22 Jan 2009   #5

 
 

If it doesn't work well, then you'll know

Although it's probably not the best idea
My System SpecsSystem Spec
22 Jan 2009   #6

 

If you use Dave's method to remove the pagefile then you're in effect making a new pagefile every time you boot - and thus removing it every time you shutdown / restart. This will have a bit of a performance impact, but the main thing is that you will still not be using the *same* pagefile.sys file.
My System SpecsSystem Spec
22 Jan 2009   #7

Win7 Ultimate x64 on Desktop / Win7 Ultimate x86 on laptop / Win7 x86 Starter on Netbook
 
 

Quote   Quote: Originally Posted by Beginning View Post
Ok.... I have XP Pro installed and to date I always use a small partition @ the start of my slave drive for a set pagefile. about 3.5 gigs. I wonder if I dual boot Windows 7 and XP will I be able to use the same pagefile for Windows 7? Seeing as both Windows 7 and XP uses a pagefile, but they aren't running @ the same time?
You can have your page/swap file on another drive/partition without problems.
My System SpecsSystem Spec
22 Jan 2009   #8

Windows 7 Professional 64bit
 
 

@davehc - No I don't do anything with it, I'm also a linux fan and almost every linux version out there uses a seperate small partition for the swapfile. I'm quite positive thats why most linux distro's are so quick. I'd like to give Windows 7 a partition for the swapfile also.. I just thought it may be able to use the same one.

@
smarteyeball - Hehehe... although it's not rocket science to reinstall everything now is it? It's just time consuming...
My System SpecsSystem Spec
22 Jan 2009   #9

Windows 7 Professional 64bit
 
 

@ RomulinX2 - I've been doing it for years.... But now it sounds like davehc is saying it's a security risk? No don't tell me this now......
My System SpecsSystem Spec
22 Jan 2009   #10

 

Not removing the swap file on your system *can* be a security risk.

It is not *definitely* a security risk, it is also dependent upon a variety of factors, including but not limited to:

what sort of info you actually store on your machine (usernames and PWs for sites, banking info, etc) as well as browser cache settings, etc.

In addition, it is a risk only if someone gets a hold of the file / drive and is able to extract data from it.

Then again it is only a risk if they can actually make out the data that is extracted.

A variety of factors. The bottom line, though, is that *sharing* swap *files* is not a good idea.

Sharing the space is fine - but the files themselves? Bad bad idea.

Also, *nix is not faster only* because of the small swap file at the beginning of the system, although this helps a bit. Other factors that help out in the speed factor are *much much smaller kernel code (on a P4 I was compiling kernel code in less than 45 minutes - I am pretty *positive* that compiling XP's kernel alone back then would have taken much much longer) and thus smaller apps as well - even a full blown GUI is not nearly as large as the Windows system -0 last I checked The latest KDE can be obtained on *CD ROM - but both Windows 7 *and* Vista came on DVDs. Now, I know you'll say that those are OSs and that there are plenty of *nix distributions on DVD - and I'll turn right back around and say that those DVDs have a *lot* more installed with them than an OOB Windows install has with it.

If your system OSs are not all that mission critically important, have a go at it and see what happens - at worst you'll need to reinstall again, at best it *might* actually work simply because this is a Beta and Windows 7 is going to be looking for multi-boot situations to deal with.
My System SpecsSystem Spec
Reply

 Swapfile question




Thread Tools



Similar help and support threads for2: Swapfile question
Thread Forum
Solved Thermal Paste Question..(Noobish Question) PC Custom Builds and Overclocking
Answer Question, Ask Question. Chillout Room
Solved Logitech 5.1 surround question and soundcard question IDT and Realtek Sound & Audio
Solved A Mac Question. Chillout Room
Question. :/ General Discussion
Just a Question Chillout Room
optimizing Windows7 swapfile..?? Performance & Maintenance

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 06:16 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33