Ceci est une ancienne révision du document !
Performance NFS
tuning leger
Options de montage:
192.168.99.1:/bt on /srv/stockage type nfs4 (rw,noatime,addr=192.168.99.1,clientaddr=192.168.99.111)
Options sysctl:
# Tuning reseaux net.core.wmem_max=12582912 net.core.rmem_max=12582912 net.ipv4.tcp_rmem=10240 87380 12582912 net.ipv4.tcp_wmem=10240 87380 12582912 net.ipv4.tcp_no_metrics_save=1 net.core.netdev_max_backlog=5000
Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP dl01.virt.linuxe 2G 1978 92 17852 0 16464 1 4337 99 954090 50 985.9 5 Latency 3858us 7828ms 10516ms 4652us 21973us 5519us Version 1.96 ------Sequential Create------ --------Random Create-------- dl01.virt.linuxed.n -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 12 0 13770 44 4248 32 14 0 16441 48 7845 36 Latency 2284ms 10998us 176ms 2515ms 373us 2825us
Avec tuning
Options de montage:
192.168.99.1:/bt on /srv/stockage type nfs4 (rw,nosuid,noatime,soft,intr,rsize=8192,wsize=8192,addr=192.168.99.1,clientaddr=192.168.99.111)
Options sysctl:
# Tuning reseaux net.core.wmem_max=12582912 net.core.rmem_max=12582912 net.ipv4.tcp_rmem=10240 87380 12582912 net.ipv4.tcp_wmem=10240 87380 12582912 net.ipv4.tcp_no_metrics_save=1 net.core.netdev_max_backlog=5000
Résultats Bonnie++:
Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP dl01.virt.linuxe 2G 1871 89 73775 4 1124 0 3878 98 325599 21 997.9 4 Latency 5052us 4126ms 209s 2497us 2424us 107ms Version 1.96 ------Sequential Create------ --------Random Create-------- dl01.virt.linuxed.n -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 14 0 13817 44 4278 33 13 0 16423 47 7821 36 Latency 2094ms 10870us 177ms 2549ms 597us 1201us