NFS - tuning
Richard Willmann
ml at foofree.sk
Tue Sep 30 10:46:18 CEST 2008
>>> Ano, rikal jsem si, jestli by to neslo treba dvakrat rychleji.
>
> ^-- Hmm. Ak by sa potvrdilo, ze relativne jednoduchou konfiguraciou
> mozno dosiahnut tak dramaticke zvysenie rychlosti, videl by
> opodstatneny PR pozadujuci bud zmenu hodnot, alebo aspon pridanie
> kapitolky do tuning(7).
>
> Btw, ked sme pri tom, triky z tuning(7) pre siet nepomahaju? Resp.
> sysctl.conf(5), neviem teraz, co je kde.
skusim byt konkretnejsi v "radach". Toto su nastavenia z niektorych nasich
strojov. Avsak, treba sa na to pozerat v kontexte hardverovej konfiguracie
tj. najma napr. velkost RAM atd.
#; defaults to 400 MB
#; echo "vm.kmem_size=1G" >> /boot/loader.conf
#; defaults to 384
echo "kern.maxusers=512" >> /boot/loader.conf
#; defaults to 25600, see `netstat -m`, calculate as (net.inet.tcp.sendspace
+ net.inet.tcp.recvspace) * max concurent connections * 2 [in 2kB blocks]
echo "kern.ipc.nmbclusters=65536" >> /boot/loader.conf
#; defaults to 128, see `netstat -Lan`
echo "kern.ipc.somaxconn=8192" >> /etc/sysctl.conf
#; this defaults to 25600
echo "kern.ipc.maxsockets=131072" >> /etc/sysctl.conf
#; this defaults to 262144
echo "kern.ipc.maxsockbuf=524288" >> /etc/sysctl.conf
#; this defaults to 12328/11095
echo "kern.maxfiles=131072" >> /etc/sysctl.conf
echo "kern.maxfilesperproc=100000" >> /etc/sysctl.conf
#; this defaults to 32768/65536
echo "net.inet.tcp.sendspace=131072" >> /etc/sysctl.conf
echo "net.inet.tcp.recvspace=131072" >> /etc/sysctl.conf
#; this defaults to 0
echo "net.inet.tcp.nolocaltimewait=1" >> /etc/sysctl.conf
d~
rwi
More information about the Users-l
mailing list