Moving the swap file

Posted: 08-25-2004, 06:01 PM
Is it possible to move the swap file in XP to another
drive? Even an external USB harddrive?
Reply With Quote

Responses to "Moving the swap file"

Will Denny
Guest
Posts: n/a
 
Re: Moving the swap file
Posted: 08-25-2004, 06:17 PM
Hi

Please have a look at the following article by Alex Nichol:

"Virtual Memory in Windows XP"
http://aumha.org/win5/a/xpvm.htm

--

Will Denny
MS-MVP Windows - Shell/User
Please reply to the News Groups


"Daniel Byrne" <daniel.byrne@adtran.com> wrote in message
news:cf7501c48ac5$28b0ead0$a501280a@phx.gbl...
| Is it possible to move the swap file in XP to another
| drive? Even an external USB harddrive?

Reply With Quote
francis gérard
Guest
Posts: n/a
 
Re: Moving the swap file
Posted: 08-27-2004, 07:21 PM

"Daniel Byrne" <daniel.byrne@adtran.com> wrote in message
news:cf7501c48ac5$28b0ead0$a501280a@phx.gbl...
> Is it possible to move the swap file in XP to another
> drive? Even an external USB harddrive?
YES, all things being equal, for performance reasons, the pagefile should be
placed on the 'most used partition of the least used *physical* drive'

NO, the pagefile cannot be put on an external drive (USB, Firewire, etc)...
imagine what would happen if you inadvertently dismounted/disconnected that
external drive... Windows would instantly lose access to data that has been
paged-out to the pagefile... and subsequently generate a STOP error, aka,
BSOD. Windows will not create a pagefile.sys on an external drive, even if
you set one for that drive through the Virtual Memory dialogue, the memory
manager is smart enough to know the drive is external

ALSO, the pagefile(s) can be configured to span multiple drives, if you have
more than one *physical* drive in your system. perhaps the simplest
approach is to allow Windows to manage the pagefile on each drive

[Create Windows Managed Pagefile(s)]
Start menu, Settings, Control Panel, System applet, Advanced tab,
Performance - Settings button, Advanced tab, Change button, on the Virtual
Memory dialogue, first select a drive from the list, then click the
radio-button 'System managed size', press the Set button. select the next
drive from the list, System managed size, press Set, and so on. when you're
done, press OK, OK, OK. a restart will likely be required.

TIP - do NOT forget to press the SET button after configuring the pagefile
for each drive, (many people forget to press SET)

the advantage to spanning the pagefiles across multiple physical drives is
that Windows' virtual memory management algorithms will choose among the
least busy drive(s) while the system is in use and automatically switch b/w
them

NOTE - physical drive is an important consideration, by 'physical drive' i
am referring to the hardware itself, discrete physical hard drives in your
machine. the pagefile should NOT be placed on a logical drive (separate
partition on the same physical drive as the operating system), performance
will be reduced (need explanation, ask me). the pagefile(s) should ONLY be
placed on separate physical drives, no need to create separate partitions to
hold the pagefile, that would be a horrible waste and impact performance.
allow windows to manage the pagefile(s) on all drives for optimal
performance, as explained above.

here are a couple of good KB articles to get you started:

http://support.microsoft.com/default.aspx?kbid=308417

http://support.microsoft.com/default...b;EN-US;314482

--
francis


Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap file ~Jeff~ Windows XP Configuration & Management 4 12-10-2004 05:50 PM
spoolsv.exe consumes CPU and Swap-File Florian Spisla Windows XP Printers / Scanners / Fax 0 08-22-2003 10:28 AM
Swap file problems null Windows XP Basics 1 08-12-2003 10:11 PM
Swap file size Donald Link Windows XP Basics 4 07-01-2003 04:31 AM