© J.C. Kessels 2009
MyDefrag Forum
February 09, 2010, 06:13:15 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
>
JkDefrag v3 Forum
>
Requests for new features
>
about layout.ini support
Pages: [
1
]
2
« previous
next »
Print
Author
Topic: about layout.ini support (Read 17193 times)
rdsu
JkDefrag Hero
Posts: 70
about layout.ini support
«
on:
June 09, 2007, 02:55:50 am »
Hi Jeroen,
I know that adding support for "layout.ini" is on top of your list for JkDefrag, and I would like to suggest to put that files next to directories (zone 1).
What you think?
Regards
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 6137
Re: about layout.ini support
«
Reply #1 on:
June 09, 2007, 05:16:05 am »
I am thinking about placing them after the regular files and before the spacehogs. The layout.ini file is a list of all the files that are needed to boot the computer, in the order in which they are accessed. If they are placed in that order on disk then the harddisk head doesn't have to move about so much.
Most of those files will never be accessed again after booting. From then on only the "regular files" will be accessed. By placing the layout.ini files after the regular files I think there will be a small speed penalty when booting, and a big speed gain when running.
Logged
rdsu
JkDefrag Hero
Posts: 70
about layout.ini support
«
Reply #2 on:
June 09, 2007, 12:34:31 pm »
You can try both methods and tell us the results to compare...
Logged
Astroman
JkDefrag Hero
Posts: 88
about layout.ini support
«
Reply #3 on:
November 13, 2007, 05:40:16 am »
Just looking for one of these layout.ini posts. I have a question that has to do with a suggestion. Currently, Jkdefrag does not support the layout.ini, I use a registry file that I made, that has over 300 tweaks to win xp and vista (haven't tested on 2000), for the computers that I work on. Anyway, since jkdefrag does not support that layout.ini function. And ProccessIdleTasks runs every 3 days by default, (undoing what jkdefrag does) I change the following registry keys
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]
"EnableAutoLayout"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
"Enable"="N"
that way, jkdefrag's work isn't undone, now my question is when Jkdefrag finally supports the layout.ini for prefetching, should those registry keys be set back, or set to how they are now, or certain ones. Basically what i'm asking is, how is jkdefrag going to go about implimenting the layout.ini I hope I worded this correctly, from what I have read/experienced. Or am I using the wrong keys, etc.
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 6137
about layout.ini support
«
Reply #4 on:
November 13, 2007, 11:18:08 am »
My advise is Don't Mess About In The Registry. Instead see the "How do I disable Vista's build-in defragger?" question in the frequently asked questions chapter on the JkDefrag homepage. And disabling the prefetcher is a bad idea, your system will be noticeably slower.
Logged
Astroman
JkDefrag Hero
Posts: 88
about layout.ini support
«
Reply #5 on:
November 13, 2007, 12:56:48 pm »
Ooops, a typo, I have it set to
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003
But what about, i remember discussing this before, that JKdefrag undoes what this work does.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]
"EnableAutoLayout"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
"Enable"="N"
What I have noticed is that after JKdefrag has run, then ProcessIdleTasks, it puts several files in the middle of the disk to make room for what it wants to put in the front. I believe ProcessIdleTasks does the same thing as BootVis
Logged
Lundholm
JkDefrag Hero
Posts: 208
about layout.ini support
«
Reply #6 on:
November 13, 2007, 02:09:27 pm »
The layout.ini file is only created, if the Windows boot prefetch is enabled. This means that JkDefrag and Windows will fight forever about the placement of the boot files.
The only scenario that works, is disabling boot prefetch and basing the Jkdefrag optimization on implicit knowledge about the boot process.
Cheers
Logged
"O, there has been much throwing about of brains." -- Guildenstern{alt. Gyldenstern[alt. Gyldenstjerne(anc. Gyllenstierna{knight of Lundholm})], knight of Hamlet}.
Astroman
JkDefrag Hero
Posts: 88
about layout.ini support
«
Reply #7 on:
November 13, 2007, 02:50:21 pm »
so what you're saying, in order to prevent this "fighting" the prefetch needs to be set to
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000001
But what about the defualt settings that Windows optimizes the hard disk every three days?
Logged
Lundholm
JkDefrag Hero
Posts: 208
about layout.ini support
«
Reply #8 on:
November 13, 2007, 03:05:48 pm »
Quote from: "Astroman"
But what about the defualt settings that Windows optimizes the hard disk every three days?
Yes, you have to accept this in order to get the layout.ini file. This means that a JkDefrag run will last only 3 days or less.
Anyway, there are lots of posts on this subject in various threads. It seems simple, but it isn't. The project preconditions are wrong.
Cheers
Logged
"O, there has been much throwing about of brains." -- Guildenstern{alt. Gyldenstern[alt. Gyldenstjerne(anc. Gyllenstierna{knight of Lundholm})], knight of Hamlet}.
Lundholm
JkDefrag Hero
Posts: 208
about layout.ini support
«
Reply #9 on:
November 14, 2007, 07:05:44 am »
Quote from: "Astroman"
so what you're saying, in order to prevent this "fighting" the prefetch needs to be set to
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000001
Yes, that is what I have done. I don't want Windows to blow away my JkDefrag optimization.
Jeroen should make this a general recommendation, but he will never do that! :wink:
Cheers
Logged
"O, there has been much throwing about of brains." -- Guildenstern{alt. Gyldenstern[alt. Gyldenstjerne(anc. Gyllenstierna{knight of Lundholm})], knight of Hamlet}.
Ash
Newbie
Posts: 4
about layout.ini support
«
Reply #10 on:
November 15, 2007, 09:22:05 pm »
Quote from: "jeroen"
...And disabling the prefetcher is a bad idea, your system will be noticeably slower.
Jeroen is correct. People need to hear this one loud and clear. There is a lot of misinformation on the board about exactly how the prefetching in XP works, and a belief by some that it slows your system down.
Logged
Lexar
JkDefrag Hero
Posts: 89
Re: about layout.ini support
«
Reply #11 on:
December 04, 2007, 07:27:10 am »
I believe this is something that hasn't really come up in the version 4 scripting language topic. If this is something that is already planned for the scripting, please ignore this message.
Since C:\Windows\Prefetch\Layout.ini, (which seems to contain not only the names of the files read into memory at the boot time but also the names of those that applications opens to read from or write to), is maintained by Windows itself, we would be able to do a quick daily optimization if JkDefrag were able to read from a text file what items to defrag or not to defrag.
Suppose "@" were to be used to tell JkDefrag to read items from a file, the commandline would be something like:
Code:
JkDefrag.exe -a 3 @ "C:\Windows\Prefetch\Layout.ini" -e@ excludes.txt -u DisableDefaults -u@ spacehogs.txt
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 6137
Re: about layout.ini support
«
Reply #12 on:
December 04, 2007, 06:25:11 pm »
Quote from: Lexar on December 04, 2007, 07:27:10 am
If this is something that is already planned for the scripting, please ignore this message.
Thanks for sharing your idea, I appreciate it! But yes, this is already on the wishlist.
Quote
Suppose "@" were to be used to tell JkDefrag to read items from a file
The scripting language is designed to replace the commandline, because the commandline is simply not flexible enough for all the things that people want to do. I will keep the current commandline for backward compatibility, but will not add more arguments.
Logged
CeeJay.dk
JkDefrag Junior
Posts: 5
Re: about layout.ini support
«
Reply #13 on:
December 07, 2007, 08:44:33 pm »
Could someone find out what it is the "Ultrafast booting (rearrange boot files)" option in TuneXP does ?
I suspect that it's reading the layout.ini and moving all the files to the start of the disk in the sequence they are loaded.
In any case , it's extremely effective and really speeds up booting.
It's freeware - you can find it here :
http://www.download.com/TuneXP/3000-2086_4-10290928.html
I'd like to see whatever it does , duplicated in JKdefrag.
BTW .. it is really necessary to disable the BootOptimizeFunction ? - Couldn't you just find out where Windows prefers those files and put them there in the first place so they are never moved , even if BootOptimizeFunction is enabled ?
Logged
JDPower
JkDefrag Hero
Posts: 207
Re: about layout.ini support
«
Reply #14 on:
December 08, 2007, 02:24:13 am »
Quote from: CeeJay.dk on December 07, 2007, 08:44:33 pm
I suspect that it's reading the layout.ini and moving all the files to the start of the disk in the sequence they are loaded.
I thinks that's what it does. And yes, it does work very well (I used it a while back)
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...