Re: how to calculate correctly the cluster size

From: Josiah Carlson (jcarlson_at_uci.edu)
Date: 04/21/04


Date: Tue, 20 Apr 2004 21:13:29 -0700


> These are all FAT32 partitions. Don't know how to, if possible,
> change clusters on my XP laptop using NTFS.
>
> While I used Partition Magic to do the partitioning, the sizes
> are the smallest cluster size possible in the partition size. One reason
> I have so many partitions:

The Windows 2k "Disk Administrator" software for 2K always uses 4k
cluster sizes by default. I believe your varied cluster sizes are the
result of using Partition Magic to create them.

> It took forever to defrag a 300GB (two partitions) firewire
> drive under NTFS (this drive is used with my XP laptop for miniDV
> captures and editing). I actually had to double the memory of my laptop
> (now 768 MB) before the defrag could run to completion.

There exists an algorithm for defragmenting a drive that only needs to
read and write the entire drive twice (I wrote one for a database
defragmenter), and there likely exists one that reads and writes even less.

If you have a 150 gig drive (and it is filled), your computer will need
to read and write a around 600 gigs (read, write, each twice, 150 gigs).
  Even if your drive is fast, like say 30 megs/second (probably on the
high-end for defragmenting), 600,000/30/3600 ~ 5.5 hours. In reality,
you're probably getting closer to 5-15 megs/second during a defragment,
which would give you 11-33 hours to defrag each of your 150 gig partitions.

It's the whole capacity vs bandwidth issue on hard drives, which is
similar to the bandwidth vs latency issue with RAM. Ahh, technology.

  - Josiah



Relevant Pages

  • Re: 2 large hard drive questions
    ... 4K cluster size is fine for windows partition. ... would have on these big drives. ... I noticed that Disk Manager in Windows XP SP2 reports the disk as ...
    (microsoft.public.windowsxp.hardware)
  • Re: Cluster size ? - experience
    ... FAT) will grow whenever you reduce the cluster size because it needs to have ... couple of times by formatting a few new drives of different sizes with 2K ... also thinking of arranging my old " Archive partition" by size. ... So to not waste so ...
    (microsoft.public.windowsxp.general)
  • Re: Resizing FAT partitions
    ... full cluster, and are thus part of the volume, but unused. ... determining the max amount of space to partition on a given drive. ... each type of FAT with a fixed table used for floppies. ... not be able to copy to such small drives. ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Cloned XP Professional boot partition - and lost the login prompt
    ... > active boot partition to a new hard drive using Norton Ghost, ... > and did a bitwise comparison of the partition on both drives. ... If you have a failed cluster the same cluster would be empty on the cloned partition i.e. a bitwise comparison would be passed. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: 2 large hard drive questions
    ... However, on the cluster issue, I was wondering what effect cluster size ... would have on these big drives. ... I did install my OS on its own partition, ... I noticed that Disk Manager in Windows XP SP2 reports the disk as ...
    (microsoft.public.windowsxp.hardware)