[FUG-BR] FS otimização SPACE to TIME

Thiago Damas tdamas em gmail.com
Quinta Agosto 18 15:23:08 BRT 2011


  No mesmo manual:

     The element fs_optim specifies whether the file system should try to min-
     imize the time spent allocating blocks, or if it should attempt to mini-
     mize the space fragmentation on the disk.  If the value of fs_minfree
     (see above) is less than 10%, then the file system defaults to optimizing
     for space to avoid running out of full sized blocks.  If the value of
     minfree is greater than or equal to 10%, fragmentation is unlikely to be
     problematical, and the file system defaults to optimizing for time.



Em 18 de agosto de 2011 15:20, Enio .'. Marconcini <eniorm at gmail.com> escreveu:
> 2011/8/18 Thiago Damas <tdamas at gmail.com>
>
>> SPACE = otimiza o uso de espaco no disco, agrupando preferencialmente
>> os blocos (mas o sistema deve fazer uma busca na tabela de blocos e
>> achar uma area com espaco equivalente);
>>
>> TIME = otimiza para que a gravacao seja mais rapida (espalha mais no
>> disco o arquivo)
>>
>> man 5 fs
>>
>>
>>     /*
>>      * Preference for optimization.
>>      */
>>     #define FS_OPTTIME      0       /* minimize allocation time */
>>     #define FS_OPTSPACE     1       /* minimize disk fragmentation */
>>
>>
>> Em 18 de agosto de 2011 14:55, Enio .'. Marconcini <eniorm at gmail.com>
>> escreveu:
>> > Pessoal, quando eu vou criar as partições do filesystem, no caso para
>> cache
>> > de squid eu costumo ajustar a otimização para TIME, e no caso do samba eu
>> > ajusto para SPACE, achei interessante o fato de que hoje eu estava
>> copiando
>> > uma grande quantidade de arquivos para um mapeamento do samba, cujo FS
>> está
>> > ajustado para SPACE, e resolvi acompanhar o messages, vi uma linha assim
>> >
>> > Aug 18 14:40:44 genesis kernel: /departamental/disco02: optimization
>> changed
>> > from SPACE to TIME
>> >
>> > achei interessante o fato de o kernel ter mudado isto automaticamente,
>> sem
>> > necessitar da minha intervenção
>> >
>> > gostaria saber então onde eu posso ler mais a respeito sobre isso?
>> >
>> > abraços
>> >
>> > --
>> > *ENIO RODRIGO MARCONCINI*
>> > @eniomarconcini <http://twitter.com/eniomarconcini>
>> > skype: eniorm
>> > facebook.com/eniomarconcini <http://www.facebook.com/eniomarconcini>
>> >
>> > *"UNIX was not designed to stop its users from doing stupid things,
>> > as that would also stop them from doing clever things."
>> > *
>> > -------------------------
>> > Histórico: http://www.fug.com.br/historico/html/freebsd/
>> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>> >
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>
>
> amigo Thiago, isto eu tenho ciência, já havia lido a respeito, o que eu
> achei interessante e não sabia que acontecia sozinho era o fato do kernel
> mudar a otimização automaticamente.
>
> abraços
>
> --
> *ENIO RODRIGO MARCONCINI*
> @eniomarconcini <http://twitter.com/eniomarconcini>
> skype: eniorm
> facebook.com/eniomarconcini <http://www.facebook.com/eniomarconcini>
>
> *"UNIX was not designed to stop its users from doing stupid things,
> as that would also stop them from doing clever things."
> *
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>


Mais detalhes sobre a lista de discussão freebsd