Got it

Set the Allocation Unit Size When Formatting

Created: Jul 21, 2021 09:36:46Latest reply: Aug 16, 2021 06:58:16 274 5 1 0 0
  HiCoins as reward: 0 (problem unresolved)

Dear team,

I’m formatting a 2TB external hard drive as NTFS. This drive is mainly meant for music and video.


What should I choose for the allocation unit size setting? The options range from 512 bytes to 64K. Are there any guidelines that I might apply to other drive types? Should I stop poking around and just leave it as“default”? 


Thanks.


Featured Answers

Recommended answer

little_fish
Admin Created Jul 21, 2021 09:40:41

Dear Axe,


If you are a “Standard User” by Microsoft’s definition, you should keep the default 4096 bytes. Basically, the allocation unit size is the block size on your hard drive when it formats NTFS. If you have lots of small files, then it’s a good idea to keep the allocation size small so your hard drive space won’t be wasted. If you have lots of large files, keeping it higher will increase the system performance by having fewer blocks to seek.


But again, nowadays hard drive capacity is getting higher and higher it makes a small difference by choosing the right allocation size. Suggest you just keep the default.


Also, keep in mind that the majority of the file is relatively small, larger files are large in size but small in units.


Thanks.


View more
  • x
  • convention:

All Answers

Dear Axe,


If you are a “Standard User” by Microsoft’s definition, you should keep the default 4096 bytes. Basically, the allocation unit size is the block size on your hard drive when it formats NTFS. If you have lots of small files, then it’s a good idea to keep the allocation size small so your hard drive space won’t be wasted. If you have lots of large files, keeping it higher will increase the system performance by having fewer blocks to seek.


But again, nowadays hard drive capacity is getting higher and higher it makes a small difference by choosing the right allocation size. Suggest you just keep the default.


Also, keep in mind that the majority of the file is relatively small, larger files are large in size but small in units.


Thanks.


View more
  • x
  • convention:

Dear Axe,

In terms of space efficiency, smaller allocation unit sizes perform better. The average space wasted per file will be half the chosen AUS. So 4K wastes 2K per file and 64K wastes 32K. However, as Jonathon points out, modern drives are massive and a little wasted space is not worth fussing over and this shouldn’t be a determining factor (unless you are on a small SSD).


Compare 4K vs 64K average case waste (32K-2K = 30K), for 10,000 files that only comes out to 300,000KB or around 300MB.


Instead think about how the OS uses space. Let’s say you have a 3K file which needs to grow 2K. With a 4K AUS the data needs to be split over two blocks – and they may not be together so you get fragmentation. With a 64K AUS there are a lot fewer blocks to keep track of and less fragmentation. 16x the block size means 1/16th the number of blocks to keep track of.


For a media disk where you photos, music and videos are stored, every file is at least 1MB I use the biggest AUS. For a windows boot partition I use the Windows default (which is 4K for any NTFS drive smaller than 16TB).


To find out what the cluster size is on an existing disk:


fsutil fsinfo ntfsinfo X:


Thanks.

View more
  • x
  • convention:

Axe_Z
Axe_Z Created Jul 21, 2021 09:42:44 (0) (0)
 

Dear Axe,

In terms of space efficiency, smaller allocation unit sizes perform better. The average space wasted per file will be half the chosen AUS. So 4K wastes 2K per file and 64K wastes 32K. However, as Jonathon points out, modern drives are massive and a little wasted space is not worth fussing over and this shouldn’t be a determining factor (unless you are on a small SSD).

ntfs allocation unit size

Compare 4K vs 64K average case waste (32K-2K = 30K), for 10,000 files that only come out to 300,000KB or around 300MB.

Instead, think about how the OS uses space. Let’s say you have a 3K file that needs to grow 2K. With a 4K AUS the data needs to be split over two blocks – and they may not be together so you get fragmentation. With a 64K AUS there are a lot fewer blocks to keep track of and less fragmentation. 16x the block size means 1/16th the number of blocks to keep track of.

For a media disk where your photos, music, and videos are stored, every file is at least 1MB I use the biggest AUS. For a windows boot partition, I use the Windows default (which is 4K for any NTFS drive smaller than 16TB).

To find out what the cluster size is on an existing disk: 

fsutil fsinfo [drives]
fsutil fsinfo [drivetype] <volumepath>
fsutil fsinfo [ntfsinfo] <rootpath>
fsutil fsinfo [statistics] <volumepath>
fsutil fsinfo [volumeinfo] <rootpath>

Thanks.


View more
  • x
  • convention:

little_fish
little_fish Created Aug 17, 2021 01:19:20 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.