© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 08:41:33 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Questions and help
>
Move pagefile to start of disk? (recreating pagefile doesn't do this)
Pages:
1
[
2
]
« previous
next »
Print
Author
Topic: Move pagefile to start of disk? (recreating pagefile doesn't do this) (Read 6492 times)
SchoolDaGeek
JkDefrag Supporter
Posts: 11
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #15 on:
November 09, 2009, 01:14:10 am »
I am not well versed in how MyDefrag determines "Zones" but my question is that if Zone 1 is determined to be where most of your startup/boot activity is taken from, say greater than 60% or so, would it make sense to create a script for MyDefrag to place the pagefile.sys in between zone 1 and zone 2 for example? Or a script that says pagefile.sys is the first file of zone 2? Is anyone doing this already or could write a fast script and post it here or in the scripts section?
I have an old laptop with only a 4GB hard drive that I plan on upgrading to a 44pin to Compact Flash adapter and put in an 8GB Compact Flash, but right now with the pagefile smack dead center in the middle of the disk the laptop feels very slow. It only has 64mb of memory right now but I also plan on upgrading to 288mb, so I am trying to squeeze out some extra performance from the pagefile location.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #16 on:
November 09, 2009, 01:37:28 am »
Wauw, your computer must be really old. Take a look at the free Microsoft
PageDefrag
utility to defragment your pagefile. MyDefrag cannot move the pagefile on a system disk on a running computer.
Logged
antikythera
JkDefrag Senior
Posts: 46
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #17 on:
November 09, 2009, 06:47:42 pm »
if the notebook has a cd drive (or can boot from an external one) you could boot from a bartPE disc and run Mydefrag to move all the files on the hard drive that way. if you use the sortbyname script it would then be able to move the pagefile to the beginning of the drive.
Logged
SchoolDaGeek
JkDefrag Supporter
Posts: 11
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #18 on:
November 09, 2009, 08:12:59 pm »
Ah, OK, I had read that somewhere now I understand. Yes the CD Rom works. So does the BartPE disk come with MyDefrag or do I have to add it into the .iso? (and yes JK, a very old laptop but it has a working floppy, serial port, and a PRISM 2.5 Pcmcia card for internet so it is a good 'field' computer for diagnostics)
Logged
antikythera
JkDefrag Senior
Posts: 46
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #19 on:
November 09, 2009, 08:45:27 pm »
Quote from: SchoolDaGeek on November 09, 2009, 08:12:59 pm
Ah, OK, I had read that somewhere now I understand. Yes the CD Rom works. So does the BartPE disk come with MyDefrag or do I have to add it into the .iso? (and yes JK, a very old laptop but it has a working floppy, serial port, and a PRISM 2.5 Pcmcia card for internet so it is a good 'field' computer for diagnostics)
no it isn't included within the standard BartPE setup. you would need to copy the contents of the MyDefrag program folder to the ISO image using the PEBuilder. when you boot from the CD open command prompt and navigate to the MyDefrag directory you created and use the command:
MyDefrag -r <scriptfilename>
e.g. "MyDefrag -r D:\MyDefrag\Example Scripts\SortByName.Myd"
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #20 on:
November 09, 2009, 09:16:35 pm »
Quote from: SchoolDaGeek on November 09, 2009, 08:12:59 pm
So does the BartPE disk come with MyDefrag or do I have to add it into the .iso?
BartPE does not come with MyDefrag. You can add MyDefrag into the iso, but it's a bit complicated, for more information see
How to use MyDefrag from a bootable CD-ROM or memory stick?
. It's easier to boot a standard BartPE CD-ROM and then run the MyDefrag that you have already installed on your harddisk. Still easier is to run MyDefrag in Windows "safe" mode, press F8 while booting.
Logged
SchoolDaGeek
JkDefrag Supporter
Posts: 11
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #21 on:
November 10, 2009, 07:37:41 am »
Well I tried in safemode but it did not move the pagefile so I tried the BartPE disc and navigated to the Program Files section, etc. and viola! Along with the nice script that was presented in this thread:
http://www.mydefrag.com/forum/index.php?topic=2336.0
Everything worked exactly as I wanted it to, so I can report great success. Thanks JK and everyone for helping out!
Logged
poutnik
JkDefrag Hero
Posts: 1105
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #22 on:
November 10, 2009, 08:04:47 am »
Quote from: gemisigo on June 22, 2009, 09:12:44 am
........How can you determine which files are frequently used?
By elimination of most of files that are not frequently used, accessed long time ago ?
E.g.
(....) and LastAccess(3 day ago,) selects both frequently and just recently accessed files.
(....) and not (LastAccess(,3 day ago)) eliminates files not accessed recently, and therefore not accessed frequently.
«
Last Edit: November 10, 2009, 10:19:32 am by poutnik
»
Logged
It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
fxm
JkDefrag Senior
Posts: 35
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #23 on:
November 11, 2009, 08:19:13 pm »
Quote from: jeroen on September 26, 2009, 09:51:42 am
I don't know how exactly Windows allocates the pagefile, but I would expect it to use the largest gaps available. Not the first gap and then upward from there.
It seems to be some kind of mixture. I needed to allocate 2G on a drive with several ~1G gaps followed by 40G empty.
Windows XP chose one of the gaps and completed the file in a higher one. Lower ~400M gaps weren't used and the 40G area wasn't touched.
Logged
fxm
JkDefrag Senior
Posts: 35
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #24 on:
November 11, 2009, 08:27:26 pm »
Quote from: Huggu on June 18, 2009, 06:22:29 am
run your windows WITHOUT swapfile.
Without a swap file at least as large as the real memory Windows (at least XP) won't generate memory.dmp when a crash occurs.
AFAIK that's all you lose, so if you don't have crashes or don't need dumps for debugging or reporting, you should be all set.
BTW: even with paging disabled, XP still has a small swap file that can't be disabled.
Logged
BloodySword
JkDefrag Hero
Posts: 1113
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #25 on:
November 11, 2009, 08:31:34 pm »
Quote from: fxm on November 11, 2009, 08:27:26 pm
Without a swap file at least as large as the real memory Windows (at least XP) won't generate memory.dmp when a crash occurs.
AFAIK that's all you lose, so if you don't have crashes or don't need dumps for debugging or reporting, you should be all set.
BTW: even with paging disabled, XP still has a small swap file that can't be disabled.
'Cause it is not possible to manage memory without a swap file.
Logged
Greetings from Germany!
fxm
JkDefrag Senior
Posts: 35
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #26 on:
November 11, 2009, 09:05:42 pm »
Quote from: BloodySword on November 11, 2009, 08:31:34 pm
it is not possible to manage memory without a swap file.
At risk of starting an OT and pointless discussion: just because Windows doesn't do it, doesn't mean that it can't be done.
Logged
TEMHOTA
JkDefrag Junior
Posts: 6
Re: Move pagefile to start of disk? (recreating pagefile doesn't do this)
«
Reply #27 on:
December 02, 2009, 04:29:25 am »
Quote from: DWalker59 on June 17, 2009, 11:44:13 pm
SO, I'll ask again... If we run MyDefrag from UBCD4Win, or BartPE, and tell it to put "pagefile.sys" near the start of the disk, will it work? (I plan to try this as soon as I get some time, unless you say it won't work.)
Boot from your favotite boot cd, and use this script - it's works for me.
Code:
Title('pagefile.sys')
Description("Optimize pagefile.sys")
VolumeSelect
CommandlineVolumes()
and Removable(no)
and Writable(yes)
and Mounted(yes)
VolumeActions
MakeGap(0)
FileSelect
FileName("pagefile.sys")
FileActions
MoveDownFill()
FileEnd
VolumeEnd
Logged
Pages:
1
[
2
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...