 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I finally bit the bullet and converted my games FAT32 partition into an
NTFS partition (MS has made that surprisingly easy and much more surprisingly
fast). I got tired of defragging taking something like 30-40 *hours* on that
200GB partition. (Also Windows refuses to move directory entries in a FAT32
partition, which means that the partition is littered with small unmovable
clusters which make a clean defragging much more difficult.)
After the conversion I tried defragging (the partition was quite badly
fragmented) and it took a bit over an hour. That's quite a huge improvement
over the typical 30-40-hour defragging of the old FAT32 partition.
(This was not just Windows' own defrag, which is content with just
defragging individual files, regardless of where they might end up in
the disk, in other words, the files themselves end up defragmented yes,
but the disk itself still becomes completely littered with holes of random
sizes. Instead, I used MyDefrag's full defragmentation mode, which moves
all files inside a directory to be physically consecutive in the disk,
without empty space between the files, so almost every single byte in the
disk is moved at least once. In fact, if I had run this on the FAT32
partition it might have taken 30 days rather than 30 hours.)
I'm really wondering why defragmenting an NTFS partition is so much faster
than a FAT32 partition.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> I'm really wondering why defragmenting an NTFS partition is so much faster
> than a FAT32 partition.
NTFS has a journal, do you don't have to fsync() every change on every moved
block. If you crash out during an NTFS defrag, the system can recover by
simply taking a snapshot while you're working, and scanning the snapshot for
used clusters not assigned to a file. Otherwise, moving a file is just a
matter of copying the data, then stuffing the changed file structure blocks
into the journal to be rolled out at leisure.
With FAT, every time you move a file, you have to rewrite both FAT tables
and sync it out in order to insure the space is reserved before you update
the directory, and then clear out the newly-freed space in the FAT table and
sync that out again.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Small piece of advice:
- To avoid fast fragmentation, redirect 'TMP' and 'TEMP' environment
variables (Windows key+Pause, Advanced options, Environment variables)
to a dedicated partition, same for 'pagefile.sys' and 'My Documents';
keep 'C:' only for Windows and programs. Acronis Disk Director for easy
re-partitioning, MS 'DiskPart' sucks so much at it and 'diskmgmt.msc' is
very rudimentary.
- IMO the best defragger is 'Raxco PerfectDisk 10', with its Boot-time
Defragmentation defraggs Windows system files and with its 'Stealth
Patrol' scheduler you can defrag in second plane while your PC/Notebook
is idle, also it has a 'Performance' Tab and an Analysis option that
gives you a very detailed and clear vision of any partition and is very
easy to use. It has a x64 version and recognizes Vista partitions. You
can't ask for more.
- You can speed up even more your HDD by disabling the 'Last Access time
stamp' that NTFS uses, unless you need it.
- Reducing the MFT Zone helps reclaim 'wasted' disk space.
I use 2 .bat files after I install Windows for the first time or when I
service a PC/Notebook for the first time to help me with the disk
performance:
ft.bat
-------
@echo off
echo -------------------------------------
fsutil behavior query mftzone
fsutil behavior query disablelastaccess
pause
echo -------------------------------------
fsutil behavior set mftzone 1
fsutil behavior set disablelastaccess 1
echo .
echo -------------------------------------
fsutil behavior query mftzone
fsutil behavior query disablelastaccess
echo -------------------------------------
pause
usn.bat
-------
@echo off
echo -------------------------------------
fsutil usn queryjournal c:
echo -------------------------------------
pause
fsutil usn createjournal m=0 a=0 c:
echo -------------------------------------
fsutil usn queryjournal c:
echo -------------------------------------
pause
I hope it helps, good luck.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga <sau### [at] netscape net> wrote:
> - Reducing the MFT Zone helps reclaim 'wasted' disk space.
I thought the whole idea of a large MFT zone (which it is, by default)
is to reduce fragmentation.
It's not like the MFT zone is away from data. It's just that data is
written there only after everything else is full.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Saul Luizaga <sau### [at] netscape net> wrote:
>> - Reducing the MFT Zone helps reclaim 'wasted' disk space.
>
> I thought the whole idea of a large MFT zone (which it is, by default)
> is to reduce fragmentation.
True, but the typical use of the MFT Zone is about 10-20% at most, in
some rare cases goes to 50%, you really need to have lots of files to
actually start filling up the MFT Zone.
>
> It's not like the MFT zone is away from data. It's just that data is
> written there only after everything else is full.
>
also true, but the MFT Zone at its default is far larger than you'll
ever need, so probably you'll never even get pass 75% of it, I'm not
saying is bad, is just a little over dimensioned and it doesn't have
much adaptability as the Page File does. But for what is worth 'fsutil
behavior set mftzone 1' command is Windows default setting and the
smallest MFT Zone possible, but some times is not set and the MFT Zone
tends to be big.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga wrote:
> True, but the typical use of the MFT Zone is about 10-20% at most, in
> some rare cases goes to 50%, you really need to have lots of files to
> actually start filling up the MFT Zone.
It depends how you work, really. If you often sling lots of small files
around, it's pretty easy to get 750,000 file entries.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Saul Luizaga wrote:
>> True, but the typical use of the MFT Zone is about 10-20% at most, in
>> some rare cases goes to 50%, you really need to have lots of files to
>> actually start filling up the MFT Zone.
>
> It depends how you work, really. If you often sling lots of small files
> around, it's pretty easy to get 750,000 file entries.
>
Well prerty easy I don't think is the word I would use to get 750K files.
How much of your MFT uses those 750K files?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga wrote:
> How much of your MFT uses those 750K files?
I don't even understand what that sentence means.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Saul Luizaga wrote:
>> How much of your MFT uses those 750K files?
>
> I don't even understand what that sentence means.
>
Pardon my English, still learning, let me rephrase please:
Well, pretty easy are not the words I would choose to describe getting
750,000 files.
How much of your MFT Zone is used by those 750,000 files?
If I made grammar errors please point them out so I can learn from them,
thanks.
Cheers.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga wrote:
> Pardon my English, still learning, let me rephrase please:
No problem.
> Well, pretty easy are not the words I would choose to describe getting
> 750,000 files.
I often use the file system as a quick-and-easy database. :-)
> How much of your MFT Zone is used by those 750,000 files?
I don't know, offhand. I wound up using a defrag tool that didn't respect
the boundaries, so it fragmented my MFT. Unfortunately, I did this on my
boot disk, which is far more difficult to backup, reformat, and restore
file-by-file.
> If I made grammar errors please point them out so I can learn from them,
> thanks.
The confusion from
>> How much of your MFT uses those 750K files?
is that the MFT is the subject in that sentence, and the sentence implies it
is using 750K files. A better way to phrase it would be
"How much of the MFT space do the files use?"
or
"How much of the MFT space is used by the files?"
Then "files" is the subject, and the files use the MFT space, which makes
more sense.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> The confusion from
> >> How much of your MFT uses those 750K files?
> is that the MFT is the subject in that sentence, and the sentence implies it
> is using 750K files. A better way to phrase it would be
> "How much of the MFT space do the files use?"
> or
> "How much of the MFT space is used by the files?"
> Then "files" is the subject, and the files use the MFT space, which makes
> more sense.
Perhaps the sentence could be reworded completely to reflect the intent.
I'm assuming it would be something like:
"How much NTFS bookkeeping data is required (which the system puts inside
the MFT zone) if you have 750000 small files?"
Or if we ask the same thing a bit differently: "How many files can you
have in an NTFS partition before a 1MB MTF zone gets full?"
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> "How much NTFS bookkeeping data is required (which the system puts inside
> the MFT zone) if you have 750000 small files?"
Oh. MFT records are 1K, I think.
The "MFT zone" is different. That's an area of the disk that's right after
the main block of MFT that Windows tries not to put files into. It's there
because you can't defrag the MFT, so as the MFT grows, it's best to have
space right after it to grow into. However, if you *do* fill up the disk (or
use a defragger that moves files into there, d'oh!) you can use that space.
It'll just get allocated last of all.
If you look at the MyDefrag, one of the defrag options is to move files out
of that space.
By default, it starts at 12.5% of the disk, and you can half that or double
that when you format the drive, depending on your anticipated needs.
> Or if we ask the same thing a bit differently: "How many files can you
> have in an NTFS partition before a 1MB MTF zone gets full?"
From defrag -v -a:
Master File Table (MFT) fragmentation
Total MFT size = 264 MB
MFT record count = 256,999
Percent MFT in use = 95
Total MFT fragments = 3
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Saul Luizaga wrote:
>> Pardon my English, still learning, let me rephrase please:
>
> No problem.
:-)
>
>> Well, pretty easy are not the words I would choose to describe getting
>> 750,000 files.
>
> I often use the file system as a quick-and-easy database. :-)
>
I would hate that 750K partition unless is fully defragged with
PerfectDisk 10 and even so the MFT would be big and searching a file a pain.
>> How much of your MFT Zone is used by those 750,000 files?
>
> I don't know, offhand. I wound up using a defrag tool that didn't
> respect the boundaries, so it fragmented my MFT. Unfortunately, I did
> this on my boot disk
PerfectDisk 10, is all you need...
>, which is far more difficult to backup, reformat,
> and restore file-by-file.
Acronis True Image?
>> If I made grammar errors please point them out so I can learn from
>> them, thanks.
>
> The confusion from
> >> How much of your MFT uses those 750K files?
> is that the MFT is the subject in that sentence, and the sentence
> implies it is using 750K files. A better way to phrase it would be
>
> "How much of the MFT space do the files use?"
> or
> "How much of the MFT space is used by the files?"
>
> Then "files" is the subject, and the files use the MFT space, which
> makes more sense.
>
Exactly, thanks for the correction, I end up getting to the same
conclusion but is very reassuring when a English Language native give
you the right answer too :-) Spanish is mine, hence the confusion, when
you think "too fast" in a foreign language you end up mixing it with
your own and writing/saying phrases/sentences that won't make sense on
either language.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Warp wrote:
>> "How much NTFS bookkeeping data is required (which the system puts
>> inside
>> the MFT zone) if you have 750000 small files?"
>
> Oh. MFT records are 1K, I think.
>
> The "MFT zone" is different. That's an area of the disk that's right
> after Date: Tue, 20 Oct 2009 10:32:44 -0700
> From: Darren New <dne### [at] san rr com>
> Organization: Not very...
> User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
> MIME-Version: 1.0
> Newsgroups: povray.off-topic
> Subject: Re: NTFS vs. FAT32 defragmenting speed
> References: <4ad61462@news.povray.org> <4ad98b1a$1@news.povray.org>
> <4ad9d775@news.povray.org> <4ada2aea$1@news.povray.org>
> <4adb3dc6$1@news.povray.org> <4adc379c$1@news.povray.org>
> <4adc99d6$1@news.povray.org> <4add82cf$1@news.povray.org>
> <4adddb8b@news.povray.org> <4adde059@news.povray.org>
> In-Reply-To: <4adde059@news.povray.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Content-Transfer-Encoding: 7bit
> NNTP-Posting-Host: 76.88.29.4
> Message-ID: <4addf43d@news.povray.org>
> X-Trace: news.povray.org 1256059965 76.88.29.4 (20 Oct 2009 13:32:45 -0400)
> Lines: 33
> X-No-Archive: Yes
> X-Copyright: This copyrighted article comes from a private news server
> and may NOT be distributed on USENET or other news servers.
> X-POV-Header: --- --- --- --- --- --- --- --- --- --- --- ---
> Path: news.povray.org!not-for-mail
> Xref: news.povray.org povray.off-topic:236847
>
> Warp wrote:
>> "How much NTFS bookkeeping data is required (which the system puts
>> inside
>> the MFT zone) if you have 750000 small files?"
>
> Oh. MFT records are 1K, I think.
>
> The "MFT zone" is different. That's an area of the disk that's right
> after the main block of MFT that Windows tries not to put files into.
Exactly, the whole this is just MFT.
> It's there because you can't defrag the MFT,
Actually PerfectDisk 10 can among other optimizations it does at
Boot-time defrag, and even it changes its size to best fit a partition
when needed. Unless you have an NTFS encrypted filePerfectDisk 10
defrags *everything*, this give me the following brag right: don't blame
me for having the best defragger out there, hehehehe :-D
> so as the MFT grows, it's
> best to have space right after it to grow into. However, if you *do*
> fill up the disk (or use a defragger that moves files into there, d'oh!)
lol :-D
> you can use that space. It'll just get allocated last of all.
>
> If you look at the MyDefrag, one of the defrag options is to move files
> out of that space.
>
> By default, it starts at 12.5% of the disk, and you can half that or
> double that when you format the drive, depending on your anticipated needs.
really? I didn't know this, how do you do this?
>> Or if we ask the same thing a bit differently: "How many files can you
>> have in an NTFS partition before a 1MB MTF zone gets full?"
>
> From defrag -v -a:
>
> Master File Table (MFT) fragmentation
> Total MFT size = 264 MB
> MFT record count = 256,999
> Percent MFT in use = 95
> Total MFT fragments = 3
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Perhaps the sentence could be reworded completely to reflect the intent.
> I'm assuming it would be something like:
>
> "How much NTFS bookkeeping data is required (which the system puts inside
> the MFT zone) if you have 750000 small files?"
>
> Or if we ask the same thing a bit differently: "How many files can you
> have in an NTFS partition before a 1MB MTF zone gets full?"
>
Thanks Warp.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga wrote:
> really? I didn't know this, how do you do this?
GIYF.
http://forums.guru3d.com/showthread.php?t=137432
fsutil behavior set mftzone
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Saul Luizaga wrote:
> Actually PerfectDisk 10 can among other optimizations it does at
> Boot-time defrag,
Clearly, it's *possible* to do so. :-) I'll keep that product in mind if I
ever need it.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> fsutil behavior set mftzone
oh yeah, if look into my first post I give a hint how to reduce the MFT
at the minimum size but, halve it when on the minimum setting that is
something I don't know how only PerfectDisk 10 does it; if you didn't
meant this I apologize for the misunderstanding.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I forgot to add that, IIRC NTFS was first introduced in HP Unix OS long
ago and it was called HPFS, then improved and used in WinNT 4.X NTFS
v.4), some more improvement in Win2K (NTFS v.5), little improvement in
WinXP (NTFS v.5.1 if I'm not mistaken, don't recall it clearly).
Improvement of course in speed, security, self-protection and fault
tolerant, even some viruses have problem damaging purposely the NTFS,
and you need to really mess around your PC a lot to have a warning in
the System Event Viewer (eventvwr.msc, System)and then an error message
saying the NTFS is damaged. Most of the times, not always, Windows will
start the chkdsk utility at boot-time to check and repair the File
System if the partition is marked as "dirty" (a byte on each partition
system area volume status area).
Cheers.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |