Portál AbcLinuxu, 21. května 2025 12:47
iperf3 -c 192.168.2.100 Connecting to host 192.168.2.100, port 5201 [ 4] local 192.168.2.1 port 34286 connected to 192.168.2.100 port 5201 [ ID] Interval Transfer Bandwidth Retr Cwnd [ 4] 0.00-1.00 sec 1.15 GBytes 9.92 Gbits/sec 0 1.01 MBytes [ 4] 1.00-2.00 sec 1.14 GBytes 9.83 Gbits/sec 0 1.15 MBytes [ 4] 2.00-3.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.15 MBytes [ 4] 3.00-4.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.20 MBytes [ 4] 4.00-5.00 sec 1.15 GBytes 9.85 Gbits/sec 0 1.33 MBytes [ 4] 5.00-6.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.33 MBytes [ 4] 6.00-7.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.33 MBytes [ 4] 7.00-8.00 sec 1.14 GBytes 9.83 Gbits/sec 0 1.46 MBytes [ 4] 8.00-9.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.46 MBytes [ 4] 9.00-10.00 sec 1.15 GBytes 9.90 Gbits/sec 0 1.46 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 11.5 GBytes 9.88 Gbits/sec 0 sender [ 4] 0.00-10.00 sec 11.5 GBytes 9.88 Gbits/sec receiverPři zápisu dd if=/dev/zero do SaMBa mountpointu (default smb.conf, server storage ve vedlejším vlákně testovaný Crucial MP510) se docílilo průměrné rychlosti zápisu cca 720MB/s. Omezením byl patrně výkon relatinvně slabého HW SMB klienta (proces dd měl utilizaci 100%). Při čtení dd if=/smb_mountpoint/bigshit do /dev/null by dosaženo průměrné rychlosti 710MB/s. Předpokládám, že po tuningu SaMBy a při silnějším HW klienta by bylo asi dosaženo lepších výsledků.
### TUNING NETWORK PERFORMANCE ### # Default Socket Receive Buffer net.core.rmem_default = 31457280 # Maximum Socket Receive Buffer net.core.rmem_max = 12582912 # Default Socket Send Buffer net.core.wmem_default = 31457280 # Maximum Socket Send Buffer net.core.wmem_max = 12582912 # Increase number of incoming connections net.core.somaxconn = 4096 # Increase number of incoming connections backlog net.core.netdev_max_backlog = 65536 # Increase the maximum amount of option memory buffers net.core.optmem_max = 25165824 # Increase the maximum total buffer-space allocatable # This is measured in units of pages (4096 bytes) net.ipv4.tcp_mem = 65536 131072 262144 net.ipv4.udp_mem = 65536 131072 262144 # Increase the tcp-time-wait buckets pool size to prevent simple DOS attacks net.ipv4.tcp_max_tw_buckets = 1440000 #net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 ## tcp selective acknowledgements. net.ipv4.tcp_sack = 1 ##enable window scaling net.ipv4.tcp_window_scaling = 1 ## net.ipv4.tcp_no_metrics_save = 1 net.core.rmem_max=8388608 net.core.wmem_max=8388608 net.core.rmem_default=65536 net.core.wmem_default=65536 net.ipv4.tcp_rmem=4096 87380 8388608 net.ipv4.tcp_wmem=4096 65536 8388608 net.ipv4.tcp_mem=8388608 8388608 8388608 net.ipv4.route.flush=1a posli vysledky potom...
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.