+ Responder ao Tópico
Resultados 1 a 4 de 4
  1. #1
    Data de Ingresso
    Nov 2004
    Localização
    Monte Mor - SP
    Posts
    3.822
    Poder de Reputação
    11

    [RAID-0] Strip Size, qual escolher?

    Pessoal,

    Acho que muitos devem ter esta dúvida, ou mal sabem para o que é o Strip Size em uma configuração de RAID por hardware, segue uma boa explicação:

    Stripe Sizes
    We suspect that many of you out there are interested in RAID for its performance advantage. Stripe sizes play a very important role in the performance of RAID arrays and thus it is critical to understand the concept of striping before we delve any further into RAID discussion.

    As we mentioned before, stripes are blocks of a single file that are broken into smaller pieces. The stripe size, or the size that the data is broken into, is user definable and can range from 1KB to 1024KB or more. The way it works is when data is passed to the RAID controller, it is divided by the stripe size to create 1 or more blocks. These blocks are then distributed among drives in the array, leaving different pieces on different drives.

    Like we discussed before, the information can be written faster because it is as if the hard drive is writing a smaller file, although it is really only writing pieces of a large file. At the same time, reading the data is faster because the blocks of data can be read off of all the drives in the array at the same time, so reading back a large file may only require the reading of two smaller files on two different hard drives at the same time.

    There is quite a bit of debate surrounding what stripe size is best. Some claim that the smaller the stripe the better, because this ensures that no matter how small the original data is it will be distributed across the drives. Others claim that larger stripes are better since the drive is not always being taxed to write information.

    To understand how a RAID card reacts to different stripe sizes, let's use the most drastic cases as examples. We will assume that there are 2 drives setup in a RAID 0 stripe array that has one of two stripe sizes: a 2KB stripe and a 1024KB stripe. To demonstrate how the stripe sizes influence the reading and writing of data, we will use also use two different data sizes to be written and read: a 4KB file and a 8192KB file.

    On the first RAID 0 array with a 2KB stripe size, the array is happy to receive the 4KB file. When the RAID controller receives this data, it is divided into two 2KB blocks. Next, one of the 2KB blocks is written to the first disk in the array and the second 2KB blocks is written to the second disk in the array. This, in theory, divides the work that a single hard drive would have to do in half, since the hard drives in the array only have to write a single 2KB file each.

    When reading back, the outcome is just as pretty. If the original 4KB file is needed, both hard drives in the array move to and read a single 2KB block to reconstruct the 4KB file. Since each hard drive works independently and simultaneously, the speed of reading the 4KB file back should be the same as reading a single 2KB file back.

    This pretty picture changes into a nightmare when we try to write the 8192KB file. In this case, to write the file, the RAID controller must break it into no less than 4096 blocks, each 2KB in size. From here, the RAID card must pass pairs of the blocks to the drives in the array, wait for the drive to write the information, and then send the next 2KB blocks. This process is repeated 4096 times and the extra time required to perform the breakups, send the information in pieces, and move the drive actuator to various places on the disk all add up to an extreme bottleneck.

    Reading the information back is just as painful. To recreate the 8192KB file, the RAID controller must gather information from 4096 places on each drive. Once again, moving the hard drive head to the appropriate position 4096 times is quite time consuming.

    Now let's move to the same array with a 1024KB stripe size. When writing a 4KB file, the RAID array in this case does essentially nothing. Since 4 is not divisible by 1024 in a whole number, the RAID controller just takes the 4KB file and passes it to one of the drives on the array. The data is not split, or striped, because of the large stripe size and therefore the performance in this instance should be identical to that of a single drive.

    Reading back the file results in the same story. Since the data is only stored on one drive in our array, reading back the information from the array is just like reading back the 4KB file from a single disk.

    The RAID 0 array with the 1024KB stripe size does better when it comes to the 8192KB file. Here, the 8192KB file is broken into eight blocks of 1024KB in size. When writing the data, both drives in the array receive 4 blocks of the data meaning that each drive only has the task of writing four 1024KB files. This increase the writing performance of the array, since the drives work together to write a small number of blocks. At the same time reading back the file requires four 1024KB files to be read back from each drive. This holds a distinct advantage over reading back a single 8192KB file.

    As you can see, the performance of various stripe sizes differ greatly depending on the situation. Just what stripe size should you use?
    Fonte: Anandtech [indisponível]

    Resumindo a história.

    Para quem busca performance todos sabem que RAID0 é a melhor opção.

    Configurar o Strip Size com o maior valor possível teoricamente irá fornecer um desempenho melhor, porque?

    Quando a controladora RAID grava os dados, divide as informações baseado no Strip Size e grava em ambos os discos para otimizar a gravação.

    Exemplo, arquivo com 1024Kb, com Strip Size de 8Kb é gravado 64 vezes pedaços de 8Kb em um disco e outras 64 vezes no outro disco em pedaços de 8Kb

    Utilizando um Strip Size de 1024Kb, a gravação seria feita somente uma vez e em um único disco.

    A leitura dos dados é feita da mesma maneira, com um strip size pequeno é necessário várias acessos da controladora ao disco, e utilizando um strip size de 1024Kb, o acesso é feito uma única vez, tirando esta carga da controladora.


    Ficou claro?

    Infelizmente, a controladora da P5Q permite somente Strip Size máximo de 128Kb, aqueles que possuem PCs com strip size maior, poderiam fazer um teste?

    Estou terminando de formatar o PC e posto uma SS do HDTach com strip size de 128Kb.


    Abs
    Última edição por mash; 24-02-10 às 10:53.
    ASUS P5Q / E7500 @ 2.9Ghz / OCZ HP 4x1GB @ 1066Mhz / VGA ECS GTX460 1GB Black Edition / Corsair 550W-VX / 2x500GB RAID0 / 1.5TB / LG LED E2350V => inside CM690
    PS2 Slim @ Matrix 1.4 / PS3 Slim / PSP 3000 / LED Samsung UN40D5500 / LCD Sony Bravia 32EX405

    -
    [ Adrenaline.com.br > Moderador > Internet & Redes > Área Windows > Área Linux & Open Source ]



  2. #2
    Data de Ingresso
    Aug 2004
    Localização
    Maringá - Pr
    Posts
    866
    Poder de Reputação
    8
    eu usei raid 0 por quase 2 anos,usava stripe size 64,,depois de fazer uns testes de instalaçao de jogos,carregamento de jogos e instalação do sistema e outros programas comparando o raid de 2 hds 160gb com 1 hd de 320,,desanimei com raid 0,,teve casos que a instalaçao de jogos foi mais rapida em um unico hd,do que em raid 0 .No geral a diferença de leitura de jogos e instalaçao foi quase nula

    Bom ,to com 2 hds parado la em casa e vou ver se tenho essa opçao de strip size 1024 e refazer meus testes..

    na epoca que usava raid ,tava com uma p5q e um e 7400.
    Intel i5-750 @ 3,6GHz 1.17V- Enzotech Ultra-X - Asus P7P55D LE- OCZ 2x2Gb DDR3 1600MHz- PowerColor HD 5850- Samsung Sata ll 320GB 2X160GB Backup- ACER AL2216WBD -Audigy 2 ZS - Inspire T7700 -SATELLITE SL-8600EPS - Cooler Master C-590 - Razer DeathAdder - eXactMatXcontrol - Windows 7

  3. #3
    Data de Ingresso
    Feb 2009
    Localização
    Jundiaí - SP
    Posts
    16.864
    Poder de Reputação
    34
    O "problema" é quando o arquivo é menor que o tamanho de 128Kb do Strip Size (arquivos de 50Kb vs. Strip Size 128Kb)...

    128Kb é o tamanho máximo - salvo engano -; nem placas mãe mais modernas permitem configurações superiores a isso.


    Abçs
    Última edição por cherojr; 24-02-10 às 11:42.

  4. #4
    Data de Ingresso
    Sep 2009
    Posts
    550
    Poder de Reputação
    3
    Citação Postado originalmente por cherojr Ver Post
    O "problema" é quando o arquivo é menor que o tamanho de 128Kb do Strip Size (arquivos de 50Kb vs. Strip Size 128Kb)...

    128Kb é o tamanho máximo - salvo engano -; nem placas mãe mais modernas permitem configurações superiores a isso.


    Abçs
    o que acontece é o seguinte... voce deve tentar imaginar pra que ira usar sua maquina futuramente, caso voce pretenda usar para jogos, filmes, e outros arquivos grandes... o recomendado é usar strip 128kb... para evitar desperdiçar tamanho em disco...
    caso voce utilize arquivos pequenos como musicas por exemplo, o recomendado é 32kb, ou até mesmo 16.... dessa forma, voce nao tera perda de espaço em disco... quanto ao desempenho vai ser semelhante, porem realmente 128kb tem o acesso mais rapido doq os demais como o amigo disse ai em cima...
    Gabinete > Cooler Master HAF 932 / Air Cooler > Cooler Master V6 GT / Mobo > ASUS M4A79T Deluxe / CPU > AMD Phenom 2 X4 955 3.8GHz / VGA> XFX ATI Radeon HD 4890 XXX Edition / Kit Memórias > G.SKILL Ripjaws Series 4GB (2 x 2GB) DDR3 - 1600mhz CL7 / Fonte > SevenTeam 850Z-AF Modular 850W / Armazenamento > Raid0 Western Digital Caviar Blue 500GB + 2TB Caviar Green / Monitor Wide > 22" LG W2252TQ / Periféricos > Microsoft Intellimouse Optical Black / Thermaltake Sports Challenger Pro / Sistema Operacional > Microsoft Windows 7 x64 Ultimate / Controladora de Fan > NZXT Sentry LX / Xbox 360 Slim 4GB Unlocked



Marcadores

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • Você não pode enviar respostas
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens



CANAIS: TECNOLOGIA | TELECOM | INTERNET | SEGURANÇA | GAMES |

SEÇÕES: NOTÍCIAS | REVIEWS | ENTREVISTAS | COLUNISTAS | COBERTURAS | DOWNLOADS | VÍDEOS | PODCAST | ENQUETES | BIBLIOTECA | PROMOÇÕES | FÓRUM | RSS

A EMPRESA | EQUIPE | PARCEIROS | PUBLICIDADE | FALE CONOSCO | CONDIÇÕES DE USO | POLÍTICA DE PRIVACIDADE

COPYRIGHT © 2001 - 2011 ADRENALINE.COM.BR. TODOS OS DIREITOS RESERVADOS. ADRENALINE É UMA MARCA REGISTRADA DA ADRENALINE FRANQUIAS.