PC Review


Reply
Thread Tools Rate Thread

Defragging the page file?

 
 
michalchik@aol.com
Guest
Posts: n/a
 
      23rd Oct 2006
I have several questions regard defragging the pagefile on a windowsxp
system.

1) Will this help system performance or stability?
2) Will using regedit to go to this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Memory
Management

and setting the variable "ClearPageFileAtShutdown" to 1 from Zero

effectively defrag my pagefile every time I reboot my computer.

3) Will there be any side effects to doing this and if not why isn't
windowsxp set up this way by default?

Thanks

Michael

 
Reply With Quote
 
 
 
 
Nevermind
Guest
Posts: n/a
 
      23rd Oct 2006
(E-Mail Removed) wrote:
> I have several questions regard defragging the pagefile on a windowsxp
> system.
>
> 1) Will this help system performance or stability?
> 2) Will using regedit to go to this key:
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> Manager\Memory
> Management
>
> and setting the variable "ClearPageFileAtShutdown" to 1 from Zero
>
> effectively defrag my pagefile every time I reboot my computer.
>
> 3) Will there be any side effects to doing this and if not why isn't
> windowsxp set up this way by default?
>
> Thanks
>
> Michael
>

1) Yes, defragging the page file will help performance. You need a
special application to do this, however, because a file that is in use
cannot be moved, therefore cannot be defragmented with Windows Defrag.
There is a free application called "Page Defrag" available which can be
set up to defrag those unmovable files at startup.
2) Clearing the page file at shutdown will not defragment it. In fact
it is likely to make the problem worse because the page file will have
to be re-created at boot up and will be placed in the first available
space, which is not usually large enough to hold the entire file.
The way in which I solved my problem with this was to move the page file
to the beginning of another partition on my hard drive, so that it could
not become fragmented.
 
Reply With Quote
 
Robert Moir
Guest
Posts: n/a
 
      23rd Oct 2006
(E-Mail Removed) wrote:
> I have several questions regard defragging the pagefile on a windowsxp
> system.
>
> 1) Will this help system performance


Only if your system's drive is fragmented to the point where lots of other
things would also improve performance.

> or stability?


Pagefile fragmentation affecting stability used to be an issue in Windows NT
(the grandfather of Windows XP) back in 1996. As much as Microsoft often
deserve criticism for letting old problems carry on, this has been fixed.

> 2) Will using regedit to go to this key:


[snipped reg stuff to keep things short and sweet]

> effectively defrag my pagefile every time I reboot my computer.


Only if your system drive is defragmented already, so that a large area of
contiguous space can be allocated for the page file on boot.

> 3) Will there be any side effects to doing this


Sure. It will make your shutdowns slower. Possibly much slower.

> and if not why isn't
> windowsxp set up this way by default?


Because if you compiled a list of 1000 things that had a profound effect on
Windows XP performance, 'normal' levels of pagefile fragmentation would rank
somewhere in the 800 range.

.... And turning off the setting would rank somewhere in the top 1 of 1000
things that caused slow shutdowns.

A well performing system is all about balance. Balanced sets of hardware,
balanced settings, etc. Anyone who tells you that a magic piece of hardware
or a magic registry hack will solve your problems is either an idiot or that
is what they think you are.

--
Robert Moir

www.robertmoir.com


 
Reply With Quote
 
effdee
Guest
Posts: n/a
 
      23rd Oct 2006
> The way in which I solved my problem with this was to move the page file
> to the beginning of another partition on my hard drive, so that it could
> not become fragmented.
>


How do you do that??

effdee




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0642-5, 20/10/2006
Tested on: 23/10/2006 11:01:53 AM
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com



 
Reply With Quote
 
JS
Guest
Posts: n/a
 
      23rd Oct 2006
See: http://www.sysinternals.com/Utilities/PageDefrag.html

JS

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have several questions regard defragging the pagefile on a windowsxp
> system.
>
> 1) Will this help system performance or stability?
> 2) Will using regedit to go to this key:
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> Manager\Memory
> Management
>
> and setting the variable "ClearPageFileAtShutdown" to 1 from Zero
>
> effectively defrag my pagefile every time I reboot my computer.
>
> 3) Will there be any side effects to doing this and if not why isn't
> windowsxp set up this way by default?
>
> Thanks
>
> Michael
>



 
Reply With Quote
 
Frankster
Guest
Posts: n/a
 
      23rd Oct 2006

"effdee" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> The way in which I solved my problem with this was to move the page file
>> to the beginning of another partition on my hard drive, so that it could
>> not become fragmented.
>>

>
> How do you do that??
>
> effdee
>


One way is to move the pagefile to a newly created and formatted partition
as the first file on the new drive. Can't be fragmented that way.

-Frank


 
Reply With Quote
 
=?Utf-8?B?QW5kcmV3IEUu?=
Guest
Posts: n/a
 
      23rd Oct 2006
Those other responses were interesting but are wrong in what youre looking
to do...To defrag the page file is simple,open system properties,set C: drive
to "no page file" click set 2X,close out properties,restart pc.Back in
xp,go to
run,type:cmd In cmd type:CLEANMGR Run on C: Then typeefrag C: Once
thru,type:EXIT Reopen syatem,set page file to "let system manage" click set
2X,close out.The page file is defragged,sometimes you'll need to do this
every
few days to totally defrag all,however it does work.....

"(E-Mail Removed)" wrote:

> I have several questions regard defragging the pagefile on a windowsxp
> system.
>
> 1) Will this help system performance or stability?
> 2) Will using regedit to go to this key:
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> Manager\Memory
> Management
>
> and setting the variable "ClearPageFileAtShutdown" to 1 from Zero
>
> effectively defrag my pagefile every time I reboot my computer.
>
> 3) Will there be any side effects to doing this and if not why isn't
> windowsxp set up this way by default?
>
> Thanks
>
> Michael
>
>

 
Reply With Quote
 
=?Utf-8?B?V2lsbGlhbQ==?=
Guest
Posts: n/a
 
      23rd Oct 2006


"Andrew E." wrote:

> Those other responses were interesting but are wrong in what youre looking
> to do...To defrag the page file is simple,open system properties,set C: drive
> to "no page file" click set 2X,close out properties,restart pc.Back in
> xp,go to
> run,type:cmd In cmd type:CLEANMGR Run on C: Then typeefrag C: Once
> thru,type:EXIT Reopen syatem,set page file to "let system manage" click set
> 2X,close out.The page file is defragged,sometimes you'll need to do this
> every
> few days to totally defrag all,however it does work.....
>
> "(E-Mail Removed)" wrote:
>
> > I have several questions regard defragging the pagefile on a windowsxp
> > system.
> >
> > 1) Will this help system performance or stability?
> > 2) Will using regedit to go to this key:
> >
> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> > Manager\Memory
> > Management
> >
> > and setting the variable "ClearPageFileAtShutdown" to 1 from Zero
> >
> > effectively defrag my pagefile every time I reboot my computer.
> >
> > 3) Will there be any side effects to doing this and if not why isn't
> > windowsxp set up this way by default?
> >
> > Thanks
> >
> > Michael
> >
> >

That can be a problem. Don't attempt it. If you have low memory, your system
may crash forever. (Unless you go into Safe Mode.) Instead, buy PerfectDisk
from Raxco, and defrag the pagefile once every two weeks around using the
Offline Defrag option. (Remember to set the configuration menu correctly!) If
you need help with that, just Google search.
 
Reply With Quote
 
Al Dykes
Guest
Posts: n/a
 
      23rd Oct 2006
In article <#(E-Mail Removed)>,
Nevermind <(E-Mail Removed)> wrote:
>(E-Mail Removed) wrote:
>> I have several questions regard defragging the pagefile on a windowsxp
>> system.
>>
>> 1) Will this help system performance or stability?
>> 2) Will using regedit to go to this key:
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
>> Manager\Memory
>> Management
>>
>> and setting the variable "ClearPageFileAtShutdown" to 1 from Zero
>>
>> effectively defrag my pagefile every time I reboot my computer.
>>
>> 3) Will there be any side effects to doing this and if not why isn't
>> windowsxp set up this way by default?
>>
>> Thanks
>>
>> Michael
>>

>1) Yes, defragging the page file will help performance. You need a
>special application to do this, however, because a file that is in use
>cannot be moved, therefore cannot be defragmented with Windows Defrag.
>There is a free application called "Page Defrag" available which can be
>set up to defrag those unmovable files at startup.
>2) Clearing the page file at shutdown will not defragment it. In fact
>it is likely to make the problem worse because the page file will have
>to be re-created at boot up and will be placed in the first available
>space, which is not usually large enough to hold the entire file.
>The way in which I solved my problem with this was to move the page file
>to the beginning of another partition on my hard drive, so that it could
>not become fragmented.



All the commercial (i.e. $$$) defrag products will
defrag the page file. It is done during the boot process.


This great tool is still free, I think.
http://www.sysinternals.com/Utilities/PageDefrag.html

If you set page file size as a fixed min and max in control panel and
then run one of the above tools you will wind up with a page file that
never fragments. I know that XP is supposed to work best with a
variable size page file, but I did the above with NT and w2k systems
for years.

Never put a PF in a second partition. A second drive is OK
if it's on it's own channel

If XP is now a Real Operating System(tm) you should be able to put
pagefile space on all drives and the OS will always write to the drive
that has the shortest IO queue, but that may be asking to much for a
desktop system.

Actually, page file size and location are not as important as page IO
rate which TaskMan and Perfmon can measure. If your page rate is low
enough then it doesn't matter how fragmented your page file is.





--
a d y k e s @ p a n i x . c o m
Harrison for Congress in NY 13CD www.harrison06.com
Don't blame me. I voted for Gore. A Proud signature since 2001
 
Reply With Quote
 
Nevermind
Guest
Posts: n/a
 
      23rd Oct 2006
effdee wrote:
>> The way in which I solved my problem with this was to move the page file
>> to the beginning of another partition on my hard drive, so that it could
>> not become fragmented.
>>

>
> How do you do that??
>
> effdee
>

I first moved everything on that partition to a directory which I
created in another partition, then set the computer to put the page file
on Drive D, and remove it from Drive C. I rebooted the computer, then
checked it to make sure that the page file was the first thing on the
partition, then moved everything back to it. I have O&O Defrag, which
gives you a block map of the content of the drives, so I could use that
to check that the page file was at the beginning of the partition.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Defragging & page file flamer die.spam@hotmail.com Windows XP General 1 19th Apr 2009 02:17 PM
Defragging page file? Kenny Windows XP General 20 28th Oct 2004 10:43 AM
Defragging page file? Kenny Windows XP Basics 11 21st Oct 2004 02:09 AM
Defragging or Defragging-Related Tools Ben Alias Freeware 0 29th Sep 2004 07:50 PM
Swap file and defragging Arawak Windows XP General 11 17th Dec 2003 07:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.