Benchmark de disco



  • Pessoal,

    Existe um parametro de sysctrl que pode aumentar a performance do disco, sem a necessidade de reinstalar o pfsense para habilitar o soft updates

    veja o resultado de um benchmark feito em uma vm que roda squid e dansguardian (executando o bonnie na pasta/disco sem parametros adicionais)

    |   –-----Sequential Output--------   | ---Sequential Input--     |  --Random-- |
       |-Per Char-  |--Block---  |-Rewrite--  |-Per Char-  |--Block---    |--Seeks---   |
    MB  |K/sec  %CPU |K/sec  %CPU |K/sec  %CPU |K/sec  %CPU |K/sec   %CPU  |/sec    %CPU |
    100 |102990 89.8 |203047 93.1 |520031 96.2 |198078 99.2 |1183719 101.0 |38408.0 146.7| ufs + vfs.read_max=32
    100 |166494 99.4 |216921 88.6 |516720 91.4 |202810 99.9 |1448189 100.0 |43889.5 150.3| ufs + vfs.read_max=128
    100 |134635 90.1 |192540 73.1 |357890 97.0 |204878 99.9 |1414560 101.3 |41190.4 154.4| ufs + vfs.read_max=32 +soft updates
    100 |165053 99.8 |235127 93.7 |451421 97.8 |188664 100  |1270644 100.9 |44058.7 159.6| ufs + vfs.read_max=128 +soft updates

    para alterar o parametro read_ahead de 32 para 128 , vá em:
    system->advanced-> system_tunables -> vfs.read_max

    o pacote para medir o benchmark é o bonnie:

    amd64
    pkg_add -r http://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/All/bonnie-2.0.6_1.tbz

    i386
    pkg_add -r http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/bonnie-2.0.6_1.tbz

    documento explicando o read-ahead em filesystem ufs
    http://ivoras.sharanet.org/blog/tree/2010-11-19.ufs-read-ahead.html


Log in to reply