Windows 7 - How to defragment pagefile.sys?

Asked By Oppie on 18-Feb-10 09:26 AM
Vista home basic
Windows' built-in defragmenter has not been doing too well. Tried running
Defraggler http://www.piriform.com/defraggler
This is working much better and gives a graphical window with the progress.
What I see is that  C:\pagefile.sys is hugely fragmented (1.5G and 500
fragments). This file seems to not to be able to be defragmented. Sort of
makes sense since it is an important system file.
Is there a way to get the pagefile to defragment?

Also tried UltraDefrag http://ultradefrag.sourceforge.net/
which has a boot mode operation that can be enabled to defrag system files
before they are locked. This does not seem to be working properly. It does
not seem to be doing anything with the pagefile (even though it is in the
explicit file list). Perhaps I have not found the correct command line
switches yet.

Both Defraggler and UltraDefrag were recommended by Kim Komando in her
newsletter www.komando.com

tia - Oppie




db replied to Oppie on 18-Feb-10 11:40 AM
you might try microsoft's
page defrag utility.

suppose to work on
xp and higher.

however, not sure why
you have the problem.

my page file seems to
be contiguous on it is own.

perhaps, you are running
low on disk space?

--

db???`?...?><)))?>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- Microsoft Partner
-  @hotmail.com
~~~~~~~~~~"share the nirvana" - dbZen
Leroy replied to Oppie on 18-Feb-10 11:50 AM
You'll need a third-party solution such as PerfectDisk
(http://www.perfectdisk.com/)which can perform an off-line defrag.
You can use the trial version free for 30 days.
Oppie replied to db on 18-Feb-10 11:50 AM
Where does one find the utility you mentioned?
As you had surmised, the system ran low on disc space at one time. I took
care of the problem long ago but the result of my stupidity remains.

Oppie
Oppie replied to db on 18-Feb-10 11:54 AM
Found the utility at
http://technet.microsoft.com/en-us/sysinternals/bb897426.aspx

Thanks. Will try this tonight.
db replied to Oppie on 18-Feb-10 12:25 PM
glad you found the link

also, download a freeware
from microsoft called autoruns.

and under one of the tabs
there will be a listing of what
launches at boot time.

page defrag should be listed
but the others you may have
installed should be removed -

know of to have installed"
--

db???`?...?><)))?>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- Microsoft Partner
-  @hotmail.com
~~~~~~~~~~"share the nirvana" - dbZen
Saucy replied to Oppie on 18-Feb-10 12:26 PM
Could you post back and say how well it worked for you? Thanks.
Oppie replied to Saucy on 18-Feb-10 02:56 PM
Will do. After all, that is the greatness of the cloud. There is no ME in
[Vista] newsgroups.
Russ SBITS.Biz [SBS-MVP] replied to Oppie on 18-Feb-10 03:35 PM
I cannot speak for MS
But true,
I do not think the public ones do not get scanned as much as the private ones.
Russ

--
Russell Grover - SBITS.Biz [SBS-MVP]
MCP, MCPS, MCNPS, SBSC
Microsoft Certified Small Business Specialist
SBS2003 SBS2008 Support - www.SBITS.Biz
Question or Second Opinion - www.PersonalITConsultant.com
Free Trial Microsoft Online Services - www.Microsoft-Online-Services.com
Russ SBITS.Biz [SBS-MVP] replied to Leroy on 18-Feb-10 03:46 PM
Oppie
Download this Tool from Microsoft
(works Great and is Free)

PageDefrag v2.32
http://technet.microsoft.com/en-us/sysinternals/bb897426.aspx

Russ

--
Russell Grover - SBITS.Biz [SBS-MVP]
MCP, MCPS, MCNPS, SBSC
Microsoft Certified Small Business Specialist
SBS2003 SBS2008 Support - www.SBITS.Biz
Question or Second Opinion - www.PersonalITConsultant.com
Free Trial Microsoft Online Services - www.Microsoft-Online-Services.com
Oppie replied to Oppie on 19-Feb-10 09:27 AM
Ran this utility last night and got questionable results.

1) on xp pro, I got a nice display of all the fragmented files that the
utility would address. With Vista sp1 (home basic), the list of fragmented
files was empty.
2) on the vista machine: clicked on the defragment on reboot. Rebooted the
machine and it did indeed go through some process upon reboot. The results
screen was too brief to read and appears to leave no log file. I think that
it reported 1 fragment each in all the sections it addressed.
3) re-ran the utility and file list still will not display (same as 1).
4) run Defraggler (defraggler.com). Shows over 500 fragments in
pagefile.sys.

At this point, I am taking a step back. Run chkdsk from right click on C:
icon/tools. both option check boxes set. Still running at this point (and
wife's ticked off that I am denying her the computer...). When this
completes. Will try the Vista defragmenter in command line mode.
Ref: http://www.winvistaclub.com/f19.html

I may yet have to delete some DVD images from the drive to make more free
space to work with. Will post results as they evolve.
Oppie
Oppie replied to Russ SBITS.Biz [SBS-MVP] on 19-Feb-10 09:29 AM
Yes, that is the one I did try. See notes posted to this thread 19Feb2010.
db replied to Oppie on 19-Feb-10 11:35 AM
well there is a trick
that might help if you
have a second partition
like a d drive.

what you can do is to
move the pagefile over
to the d drive.

then defrag your c drive.

then move the pagefile
back to the c drive.

when it moves back it
will be contiguous.

however, you may simply
want to forego fiddling
around with the pagefile.

the rationale is that though
the pagefile may be reported
as fragmented,

you will only use a tiny
percentage of the total
pagefile.

most of the work is done
inside the ram and will
only use pagefile if it
needs to.

--

db???`?...?><)))?>
DatabaseBen, Retired Professional
- Systems Analyst
- Database Developer
- Accountancy
- Veteran of the Armed Forces
- Microsoft Partner
-  @hotmail.com
~~~~~~~~~~"share the nirvana" - dbZen
+Bob+ replied to db on 19-Feb-10 02:56 PM
Or just change to use no page file. Reboot. Defrag. Change back to
using a page file.
Oppie replied to +Bob+ on 19-Feb-10 03:55 PM
Interesting. Hadn't even thought about that.
I am at my XP box right now. Found this under System Properties, Advanced
tab,
Performance <settings>

Performance Options: Advanced tab, Virtual memory <change>
(whew!).  On Vista, should be something similar (or not). Will take a look.

sometimes working with the OS is like an Easter Egg hunt.

Oppie
Jon replied to Oppie on 22-Feb-10 05:35 AM
Another possibility if you dual boot, is to delete the pagefile.sys from
another operating system. It will get recreated the next time you boot in.

--
Jon
Duncan McCormack replied to Oppie on 22-Feb-10 06:26 AM
Oppie@saynotospam.com says...

Try Puran Defrag...

http://www.puransoftware.com/


--
Duncan.