© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 09:36:08 pm
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
>
Scripts, and other contributions
>
Is this the correct procedure to get File System > Game > Windows > Software
Pages: [
1
]
« previous
next »
Print
Author
Topic: Is this the correct procedure to get File System > Game > Windows > Software (Read 2676 times)
MonkSP
JkDefrag Junior
Posts: 5
Is this the correct procedure to get File System > Game > Windows > Software
«
on:
April 23, 2010, 02:41:00 pm »
Hello I am compeltly new about this scrpiting.
I looked into some mafde scripts and want to know if this one I am making is correct.
What I want to do do is this:
Begining of Disk:
- Windows File System
- Gap
- World of Warcraft Large Files
- Gap
- World of Wacraft Small Files
- Gap
- Windows
- Gap
- Software / everything else
End of Disk
---------------------------------
Quote
/* Select and process the volumes one by one. */
VolumeSelect
Name("C:")
VolumeActions
// Move files from the NTFS reserved area to normal disk space.
ReclaimNtfsReservedAreas()
// ZONE (1) All the NTFS system files.
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending, MftSize * 0.1)
AddGap(RoundUp(ZoneEnd, VolumeSize * 0.0001))
FileEnd
// ZONE (2) Directories "no files".
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneEnd, VolumeSize * 0.01))
FileEnd
// ZONE (3)
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft")
# small, frequently-read, frequently-written files
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Cache")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Interface")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Logs")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\WTF")
FileActions
Defragment(Fast)
FastFill()
# these files are unlikely to exceed 500M, so 1G is plenty
AddGap(1000Mi)
FileEnd
# enormous, kinda-freqently-read, almost-never-written files
FileSelect
DirectoryPath("D:\Games\World of Warcraft\Data")
FileActions
SortBySize(Descending)
FileEnd
// ZONE (4)
MakeGap(RoundUp(ZoneEnd + VolumeSize * 0.1, VolumeSize * 0.01))
// ZONE (5)
FileSelect
FullPath("C:\Windows\*","*")
FileActions
SortByName(Ascending)
FileEnd
// ZONE (6)
MakeGap(RoundUp(ZoneEnd + VolumeSize * 0.1, VolumeSize * 0.01))
// ZONE (7)
FileSelect
all
FileActions
Defragment(Fast)
FileEnd
VolumeEnd
So i think this does what I pretend doesnt it?
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #1 on:
April 23, 2010, 03:20:01 pm »
Code:
// Move files from the NTFS reserved area to normal disk space.
ReclaimNtfsReservedAreas()
This isn't needed as you are using
PlaceNtfsSystemFiles()
Code:
// ZONE (3)
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft")
# small, frequently-read, frequently-written files
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Cache")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Interface")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Logs")
OR DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\WTF")
FileActions
This uses incorrect syntax you can only have one FileSelect here.
If you want the large WoW files first you need to swap the two WoW zones.
Your comments specify more zones then there is (a MakeGap/FileSelect combo makes one zone)
jonib
Logged
MyDefrag script syntax highlighting generator
.
MonkSP
JkDefrag Junior
Posts: 5
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #2 on:
April 23, 2010, 08:15:37 pm »
Tkx for the tips. I worked this out after what you said.
Begining of Disk:
- Zone 1 - Windows File System
- Gap
- Zone 2 - World of Warcraft Large Files
- Gap 2Gb
- Zone 3 - World of Wacraft Small Files
- Gap 2Gb
- Zone 4 - Windows
- Zone 5 - Gap
- Zone 6 - Software / everything else
End of Disk
Quote
/* Select and process the volumes one by one. */
VolumeSelect
Name("C:")
VolumeActions
// ZONE (1) All the NTFS system files.
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending, MftSize * 0.1)
AddGap(RoundUp(ZoneEnd, VolumeSize * 0.0001))
FileEnd
// ZONE (2)
# enormous,freqently-read, almost-never-written files
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Data")
FileActions
SortBySize(Descending)
FileEnd
# these files are unlikely to exceed 1G, so 2G is plenty
MakeGap(2000Mi)
// ZONE (3)
# small, frequently-read, frequently-written files
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\")
FileActions
Defragment(Fast)
FastFill()
FileEnd
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Cache")
FileActions
Defragment(Fast)
FastFill()
FileEnd
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Interface")
FileActions
Defragment(Fast)
FastFill()
FileEnd
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\Logs")
FileActions
Defragment(Fast)
FastFill()
FileEnd
FileSelect
DirectoryPath("C:\Users\Public\Games\Blizzard Entertainment\World of Warcraft\WTF")
FileActions
Defragment(Fast)
FastFill()
FileEnd
# these files are unlikely to exceed 1G, so 2G is plenty
MakeGap(2000Mi)
// ZONE (4)
FileSelect
FullPath("C:\Windows\*","*")
FileActions
SortByName(Ascending)
FileEnd
// ZONE (5)
MakeGap(RoundUp(ZoneEnd + VolumeSize * 0.1, VolumeSize * 0.01))
// ZONE (6)
FileSelect
all
FileActions
Defragment(Fast)
FileEnd
VolumeEnd
Another thing.
In zone 3 i am defraging the game "root" directory. But in previous zone 2 i defraged the game "root/data"
So when i do that command I will not re-organise all directories which derivate from the game root? I hope u are following my thinking.
«
Last Edit: April 23, 2010, 08:54:57 pm by MonkSP
»
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #3 on:
April 23, 2010, 08:20:33 pm »
All AddGap()'s need to be between FileActions and FileEnd, or you need the change them to MakeGap().
jonib
Logged
MyDefrag script syntax highlighting generator
.
MonkSP
JkDefrag Junior
Posts: 5
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #4 on:
April 23, 2010, 08:26:17 pm »
I fized the MakeGap(). Can you also please look at my last comment? tkx so much!!
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #5 on:
April 23, 2010, 08:34:43 pm »
Quote from: MonkSP on April 23, 2010, 08:15:37 pm
In zone 3 i am defraging the game "root" directory. But in previous zone 2 i defraged the game "root/data"
So when i do that command I will not re-organise all directories which derivate from the game root? I hope u are following my thinking.
Any file that is placed in a previous zone wont be moved again, so there is no problem selecting the game root directory in a later zone.
This message is sponsored by:
MyDefrag script syntax highlighting generator
when you want to make script editing more colorful.
jonib
«
Last Edit: April 23, 2010, 08:36:20 pm by jonib
»
Logged
MyDefrag script syntax highlighting generator
.
BloodySword
JkDefrag Hero
Posts: 1113
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #6 on:
April 23, 2010, 09:07:42 pm »
So I make a summary: You want to make your GAME fast and slow down your whole system and applications? I won't support that. I refer to the scripting section of MyDefrag website. There you will find all information you like. Do what you think it is right for you.
Logged
Greetings from Germany!
MonkSP
JkDefrag Junior
Posts: 5
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #7 on:
April 26, 2010, 11:52:10 am »
Quote from: BloodySword on April 23, 2010, 09:07:42 pm
So I make a summary: You want to make your GAME fast and slow down your whole system and applications? I won't support that. I refer to the scripting section of MyDefrag website. There you will find all information you like. Do what you think it is right for you.
You think the system will be slowed down?
Logged
BloodySword
JkDefrag Hero
Posts: 1113
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #8 on:
April 26, 2010, 01:39:14 pm »
Yes and that drastically. Better use the original scripts. You can modify them to create zones for your games. A hard drive is fastet at the beginning, so the first zone should be the layout.ini files for booting and system files AND application files. If you are gaming very much, the files of your game will be placed in this zone, if they are not too large. Putting Windows System files and programs at the end of the disk / or as last zone will slow down your computer. If you have many games (and I think so) Windows Files are played at the very end of the disk. So the slowdown will be so dramatic, that it will also slow down your games, although they are placed at the very beginning on your drive.
A very good condition would be as follows:
Physical drive C:
Zone 1: NTFS files placed at the 30% of the free space size
Zone 2: Direcotys beneath the NTFS files
Zone 3 + 4: Very beginning: Windows System files and boot files as well as some recentyl accessed files from your applications and programs, the fourth zone will contain the files that are in the .PF file list.
Zone 5: Other files from your applications
Zone 6: Spacehogs with seldom accessed and very big files
Physical drive D:
Zone 1: All games
Zone 2: All small audio files and pictures as well as documents
Zone 3: All video files and movies, uncompressed or lossles compressed audio files, very large pictures
Zone 4: Other files such as backupimages of C:, big temp files, etc.
So you need at least two physical discs. This will give the most speed. If you can not afford a new disk, you can make partitions. On Windows Vista and 7, you can resize the partition c: to a smaller one, after compressing all files to the beginning of the drive (with the zones above). Then you can create a second partition called D:, for this drive look at the zones above for D:. It will give better results than your method.
Tipps for a fast and secure computing system
User files such as Documents, Pictures, Music, Videos and Movies
are NOBODIES on drive C:
!
Reason: They will slow down the system. Also it has one BIG disadvantage: If the System crashes and the FileSystem is damaged, you will likely loose your personal data. Having the personal data on another partition or drive has also following benefit: You can do a complete system backup image in less than 30 minutes. Restoring is also much faster.
Games are very big and large. Usually they dont have much small bitmap files for the textures, moste of them have very big zip archives till 4GB in size. It is very unhandy to handle such large files instead of some 256MB ones. So this will slow down the system, especially on defragmentation of C:. To consult them seperately, they should be placed on D: at the very beginning, wich should be a second pysical drive in best case. On a second physical drive, they will respond much faster than having them on the beginning of drive C:.
The cause is, while gaming, huge paging will occur. The drive must move its heads to the pagefile.sys and then to the game ressource files. Therefore it is much slower, even if you have much RAM. Today's games are not optimized for 64 bit. So the limit of physical memory is 2GB per process (working set) and the game won't get more than that. Paging WILL occur, even on a 64 bit system.
A game also won't be faster than the underlying system. So
putting the Windows files on the end of the drive is also a very bad idea
even if your game is actually more important to you than your system.
«
Last Edit: April 26, 2010, 01:53:54 pm by BloodySword
»
Logged
Greetings from Germany!
MonkSP
JkDefrag Junior
Posts: 5
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #9 on:
April 29, 2010, 12:59:08 pm »
Tkx for the info.
I just have 1 hard drive and have an external HD for music and movies. This is a laptop btw...
I will study the original scripts and marge them into the options I need. I dont have many games or files on HD. Just a few programs (50gb top).
Once I study a merge situation I will merge it here for your opinion!
Tkx once again!
Logged
BloodySword
JkDefrag Hero
Posts: 1113
Re: Is this the correct procedure to get File System > Game > Windows > Software
«
Reply #10 on:
April 29, 2010, 01:24:18 pm »
In case of a laptop, I installed the games on C: but used the layout of the standard scripts. The only change was in the Monthly script: I changed the FileAction for the last Spacehog zone to FastFill(WithShuffling). This will get the best possible results I think. Windows is booting as fast as an unoptimized Windows wich is running on SSD!! And that with Windows Vista! all you have to do is tweaking a little: Disable unimportant executables that will be run with windows, disable unused services that have tha automatic startup flag etc. Then only you have to do is waiting three days, then you run MyDefrag monhtly. While these three days, Windows is collecting information about your usage. It creates a layout as c:\windows\prefetch\layout.ini. Mydefrag uses this file list to determine the placing order Windows has computed to speed up boot and applications. This is the zone that will be placed on the very beginning of the drive/partition.
Logged
Greetings from Germany!
Pages: [
1
]
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...