O que devo definir o tamanho da unidade de alocação para quando a formatação?

Índice:

O que devo definir o tamanho da unidade de alocação para quando a formatação?
O que devo definir o tamanho da unidade de alocação para quando a formatação?

Vídeo: O que devo definir o tamanho da unidade de alocação para quando a formatação?

Vídeo: O que devo definir o tamanho da unidade de alocação para quando a formatação?
Vídeo: Aprenda como se tornar um Insider Xbox e testar as novidades no Console - YouTube 2024, Maio
Anonim
Além de solicitar o sistema de arquivos que você deseja usar, as ferramentas de formatação de disco também solicitarão um "Tamanho da unidade de alocação". O que isso significa e qual valor você deve selecionar?
Além de solicitar o sistema de arquivos que você deseja usar, as ferramentas de formatação de disco também solicitarão um "Tamanho da unidade de alocação". O que isso significa e qual valor você deve selecionar?

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia do SuperUser, uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

A questão

O leitor do SuperUser Andrew Keeton está curioso sobre o que exatamente ele deve colocar na seção de alocação ao formatar uma unidade. Ele escreve:

I’m formatting a 1TB external hard drive as NTFS. This drive is mainly meant for storing media such as 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 at “default?”

Enquanto a configuração padrão é geralmente a melhor escolha para a maioria dos usuários, vamos nos aprofundar um pouco mais.

As respostas

Os colaboradores do SuperUser Jonathan e Andrew oferecem algumas dicas. Jonathan escreve:
Os colaboradores do SuperUser Jonathan e Andrew oferecem algumas dicas. Jonathan escreve:

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 harddrive space won’t be wasted. If you have lots of large files, keeping it higher will increase the system performance by having less blocks to seek.

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

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

Andrew expande a resposta de Jonathan com:

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:

Tem algo a acrescentar à explicação? Soe fora nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: