Naar aanleiding van de problemen van mijn ZFS NAS doorvoersnelheid hier een aparte topic. Mijn systemen zijn als volgt samengesteld: gallery: CurlyMo
Vanaf het begin heb ik een RAIDZ pool gedraaid.
Mijn eerste build:
Supermicro X7SPA-HF
2GB DDR2
3x Samsung EcoGreen F4EG HD204UI, 2TB
Solaris 11 Express
De doorvoersnelheden waren dramatisch slecht. Hieronder een lijstje van alles wat ik op dit systeem heb geprobeerd.
iperf
DD
Samba
Allemaal verschillende combinaties geprobeerd zonder succes.
iperf test nr. 2
Tweede build
inventaris: NAS
Solaris 11 Express
iperf
DD
time sh -c "dd if=/dev/zero of=/zpool/testfile.bin bs=8k count=8000000 && sync"
166 MB/s
time sh -c "dd of=/dev/zero if=/zpool/testfile.bin bs=8k count=8000000 && sync"
169 MB/s
[/code]
IOZone -a
IOzone -t 2
Laatste Config
Zelfde systeem
ZFSguru FreeBSD 8.2
memtest
DD
Samba
Zie eerste kopje m.b.t. Samba.
Windows 7
Aan de cliënt side heb ik het volgende geprobeerd:
Energy Efficient Ethernet = Ingeschakeld -> uit
Groen Ethernet = Ingeschakeld -> uit
Prioriteit & VLAN = Prioriteit & VLAN ingeschakeld -> uit, tenzij je QoS of VLAN tagging gebruikt, maar verwacht van niet
Snelheid & duplex = Automatisch onderhandelen -> Force 1Gbit
Resultaten
Leesheden:
De snelheid is nu gemiddeld 25000 kbytes/s waar die voorheen gemiddeld 14000 kbytes/s
Het kopiëren begint met met gemiddeld 50000 kbytes/s maar zakt dan snel weg tot de hierboven genoemde resultaten.
Schrijven:
De snelheid is nu gemiddeld 7500 kbytes/s waar die voorheen gemiddeld 14000 kbytes/s
Het kopiëren begint met met gemiddeld 50000 kbytes/s maar zakt dan héél snel weg tot ongeveer 1000 kbytes/s met dus pieken naar de 14000 kbytes/s.
Wie o wie kan mij helpen om op de gehoopte doorvoersnelheden te komen zoals verwacht bij een gigabit netwerk....
Vanaf het begin heb ik een RAIDZ pool gedraaid.
Mijn eerste build:
Supermicro X7SPA-HF
2GB DDR2
3x Samsung EcoGreen F4EG HD204UI, 2TB
Solaris 11 Express
De doorvoersnelheden waren dramatisch slecht. Hieronder een lijstje van alles wat ik op dit systeem heb geprobeerd.
iperf
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| Iperf: (Server) --> (Cliënt) Solaris --> Windows 7: ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 125 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.0.140 port 5001 connected with 10.0.0.144 port 50633 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 345 MBytes 289 Mbits/sec Windows 7 --> Solaris ------------------------------------------------------------ Client connecting to 10.0.0.144, TCP port 5001 TCP window size: 48.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.139 port 53137 connected with 10.0.0.144 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 906 MBytes 759 Mbits/sec |
DD
code:
1
2
3
4
| DD Test Write: +/- 110 Read: +/- 231 |
Samba
code:
1
2
3
4
5
6
| socket options = TCP_NODELAY SO_RCVBUF=13172 SO_SNDBUF=13172 SO_KEEPALIVE IPTOS_LOWDELAY IPTOS_THROUGHPUT use sendfile = yes min receivefile size = 16384 aio read size = 16384 aio write size = 16384 aio write behind = yes |
Allemaal verschillende combinaties geprobeerd zonder succes.
iperf test nr. 2
code:
1
2
3
4
5
6
7
8
| Windows 7 --> Solaris 11 8KB (default) 252Mb/s 125KB (default) 16KB 559Mb/s 125KB 32KB 800Mb/s 125KB 64KB 1.08Gb/s 125KB Windows 7 <-- Solaris 11 8KB (default) 1001Mb/s 48KB (default) 64KB 1009Mb/s 125KB |
Tweede build
inventaris: NAS
Solaris 11 Express
iperf
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| Solaris --> Ubuntu: ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.0.142 port 5001 connected with 10.0.0.140 port 59001 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 1.00 GBytes 862 Mbits/sec Ubuntu --> Solaris ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 125 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.0.140 port 5001 connected with 10.0.0.142 port 59379 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 1.05 GBytes 903 Mbits/sec |
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Solaris --> Windows 7 ------------------------------------------------------------ Client connecting to 10.0.0.140, TCP port 5001 TCP window size: 8.00 KByte (default) ------------------------------------------------------------ [208] local 10.0.0.142 port 50168 connected with 10.0.0.140 port 5001 [216] local 10.0.0.142 port 50169 connected with 10.0.0.140 port 5001 [200] local 10.0.0.142 port 50167 connected with 10.0.0.140 port 5001 [176] local 10.0.0.142 port 50164 connected with 10.0.0.140 port 5001 [168] local 10.0.0.142 port 50163 connected with 10.0.0.140 port 5001 [156] local 10.0.0.142 port 50162 connected with 10.0.0.140 port 5001 [192] local 10.0.0.142 port 50166 connected with 10.0.0.140 port 5001 [184] local 10.0.0.142 port 50165 connected with 10.0.0.140 port 5001 [ ID] Interval Transfer Bandwidth [ 208] 0.0-10.0 sec 136 MBytes 114 Mbits/sec [ 192] 0.0-10.0 sec 132 MBytes 111 Mbits/sec [ 184] 0.0-10.0 sec 135 MBytes 113 Mbits/sec [ 156] 0.0-10.0 sec 136 MBytes 114 Mbits/sec [ 176] 0.0-10.0 sec 136 MBytes 115 Mbits/sec [ 200] 0.0-10.0 sec 138 MBytes 116 Mbits/sec [ 168] 0.0-10.0 sec 138 MBytes 115 Mbits/sec [ 216] 0.0-10.0 sec 141 MBytes 118 Mbits/sec [SUM] 0.0-10.0 sec 1.07 GBytes 917 Mbits/sec |
DD
time sh -c "dd if=/dev/zero of=/zpool/testfile.bin bs=8k count=8000000 && sync"
166 MB/s
time sh -c "dd of=/dev/zero if=/zpool/testfile.bin bs=8k count=8000000 && sync"
169 MB/s
[/code]
IOZone -a
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| random random bkwd record stride KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread 64 4 192775 349627 1065453 1164490 771871 319833 913733 438026 928745 447763 466884 761754 941544 64 8 344180 719961 1423256 1121540 1164744 582179 1105563 604394 1208201 556618 645896 998544 1526297 64 16 447608 800261 2904533 3191614 2204640 955301 1458477 939851 1831353 1425489 998769 1641233 2057954 64 32 753122 1309144 4293656 5291248 3355605 1333578 1882776 1360525 2452831 1105287 1361883 1945645 2672829 64 64 1282262 1596289 5795012 5790434 2677450 1774195 2364133 1779409 3040650 781010 1522316 1527820 3034356 128 4 194857 561125 1360480 1622540 1049850 505987 941559 498193 1040172 571296 556664 913964 984784 128 8 313806 707273 1709234 2169860 1094335 15342 1268107 680623 1254116 684226 711319 1254522 1561726 128 16 377664 1122960 3046826 3197239 1999035 1075087 1880532 1163349 2101745 1067160 1093763 1601609 2206312 128 32 901760 1439023 4431744 4922046 3554700 1599084 2615617 1706261 3049108 1378074 1599547 2838943 3880509 128 64 1727634 1937519 7965970 9083189 6728748 2672888 4587069 2843208 5569204 2556224 2561220 3460858 4567803 128 128 2102147 2331444 7130838 7545679 5806459 2460571 2848224 2027975 4272070 780347 1048858 2134853 2508862 256 4 246877 555414 1532322 1651533 1153321 489552 1053125 492273 892199 514069 531150 955023 992425 256 8 430195 740086 1827112 1742827 1524608 661535 1305623 656232 1413558 577994 689922 1560178 1650856 256 16 717285 1190233 3085114 3240170 2440327 1098250 2152391 1023781 2369659 1137638 1108265 2151321 2327446 256 32 1108214 1684293 4570956 4923512 3766669 1651042 2696130 1650949 3043773 1580481 1663543 2725259 3013483 256 64 1571418 2247630 6079351 6569836 5325851 2227675 3509486 2461296 6258033 2751988 1895274 2879591 3464294 256 128 2563035 2640698 6915970 7735465 6094886 2640501 3414987 2639902 4407875 1361231 1306317 2031396 2245461 256 256 2169288 2667105 3657698 3706214 3506022 2666423 2876100 3706664 2669190 812823 1561832 1840690 1924980 512 4 51200 412885 1145446 1204937 851827 364927 802516 364654 775703 52941 392654 893358 1011713 512 8 513081 767512 1735936 2142059 1542020 673666 1177159 678969 1426256 724164 705328 1575938 1684578 512 16 828348 1254581 2437665 3218472 2474149 1147748 2254759 1202028 2316811 1168884 1137529 2179184 2317980 512 32 1590345 2474027 5630587 6742098 5278582 2286071 4263862 2509757 5168025 2284903 2317197 3846214 4342642 512 64 1624926 2402541 5957845 6481850 4923849 2347646 4527748 2611844 4783027 2022977 2811965 4455026 4973078 512 128 3030821 2944022 6729409 7422261 6394637 2890901 4342934 3102428 6329134 1646922 1636275 2640459 2860516 512 256 2996148 2890840 4002608 3999507 3935337 2892437 3461145 3141365 3767008 1604487 1528258 1777083 1960908 512 512 2975637 3086543 5024856 5067807 4970992 3846651 4377219 3938106 4745656 1112848 2246400 2611516 2640704 1024 4 89864 420875 1110698 1141536 838626 365307 800050 359284 795598 402824 402531 908694 1015882 1024 8 582508 91103 2540958 2942615 2129267 110332 1410396 668423 1337021 724149 695200 1549022 1698215 1024 16 935154 1317748 2805074 3251552 2521471 1159755 2155666 1207411 2178520 1175767 1116600 2076963 2398265 1024 32 1678669 1992526 3437290 4786314 3969841 1738361 2852996 1862125 3291348 1750405 1670230 2667176 3092555 1024 64 2256021 2592302 5503119 6439429 5474431 2376399 4411691 2270243 5690961 2241256 2192763 3249793 3671230 1024 128 3314025 3435611 6281877 7476428 6559328 2926498 6356632 4078097 6917902 1700959 2211831 2695288 2933383 1024 256 3313866 4340129 5391698 5567281 5388349 4097806 4901523 4284312 4127836 1789885 1759746 2036222 2760350 1024 512 3261362 3113207 4094268 4180523 4063427 3039314 3710437 3357843 4017474 1765440 1721284 1996560 2039573 1024 1024 3130428 3219024 121369 120641 4971965 4063843 4452550 4195474 3542486 111838 2003545 1976417 2020105 2048 4 98655 583804 1111861 1189292 839347 95340 798163 365586 784658 401338 389436 198217 208385 2048 8 627056 191292 1856661 2120118 1549306 684470 1452497 698233 1386553 716854 700390 1537422 1681573 2048 16 989802 1363450 2824872 3179720 2372834 1171673 2265503 1222035 2228722 1185136 1131459 2162652 226372 2048 32 1335869 2085363 3946907 4582199 3841912 1780920 3266188 1937737 3281504 1791721 2270448 2760046 3089035 2048 64 2265626 3657000 5030614 5186323 5043674 2340489 4491725 2844277 6321514 3070436 2172036 3224752 3518912 2048 128 3524471 3384610 5643040 5198856 6057744 2863943 4644763 3308283 7338238 1729806 1728211 2656370 2884398 2048 256 3495297 3549589 4024291 4223446 4105018 3220471 3879434 3663348 4376496 220594 2381349 2096145 2338061 2048 512 4572515 3345834 4187370 4285520 4196619 3234959 3953290 3643398 4356709 1845013 1860031 2107170 2107093 2048 1024 4385513 3373853 5318569 5519501 5360070 4312335 4947371 4328922 5007768 2461578 1933986 2054082 2087888 2048 2048 3292854 233711 3765365 3792212 3786109 4321298 3555358 237337 3592311 1168299 221743 224218 225279 4096 4 209761 430706 1121237 1153444 139738 100560 817417 415925 138042 221406 389943 954563 1041986 4096 8 132668 805200 386447 1998965 1500981 739231 370711 701378 1407570 716967 185013 1526664 1606278 4096 16 1014356 1377245 2794077 2908914 2340586 1162007 2265556 1222708 2169438 205519 1519293 2117771 2233318 4096 32 1379577 405060 4871005 5298413 4676366 228597 4096273 2646193 4128584 2350016 1693946 3726975 3842105 4096 64 386813 2966191 4881389 455470 4541454 418509 4343655 2866386 4432952 2199790 2184470 433809 3253646 4096 128 3586414 4780024 6748748 7037388 6883682 4329987 6379508 4971066 4958831 1723824 1719518 2696350 422354 4096 256 4639209 4735258 432022 457909 5177933 4491073 3842240 3537267 4546241 1837507 1833392 2088681 2080355 4096 512 3558742 4665530 4141112 4289331 4231167 3410781 4003792 444969 6032676 2464582 1889396 406953 2743562 4096 1024 3555378 447604 5475340 5468447 5411436 4526465 4035284 3733579 4375774 1898838 1910361 2136556 2082368 4096 2048 3430825 452695 4015738 4047558 5132116 4602772 445896 4756888 4047682 1909505 1908601 2090769 2121272 4096 4096 4092046 434220 456281 5113145 5051216 4096023 451105 449027 3904979 902405 1952240 2181161 2206825 8192 4 280335 266407 1137130 608071 1109290 337133 200225 503785 308840 221687 139341 202566 267319 8192 8 399199 1086338 1909092 2001013 592375 292917 398908 138373 655413 962410 946732 405706 407319 8192 16 269730 597909 2757334 2835606 740214 1648305 626010 1662017 2239494 533053 532014 2875426 2958464 8192 32 1487276 2872318 3820987 3974616 3375388 1885801 396264 1966870 3351741 1726473 1705935 738091 2895656 8192 64 1737845 2959629 4743791 4885051 4401657 2713511 4218115 2827653 4246652 2240017 690142 3254673 4192421 8192 128 3629691 3648891 5132861 5339883 5079051 3463730 827315 3812193 5022702 632489 387840 2687720 2698267 8192 256 3637563 812385 3821044 4017610 3996047 3511442 804392 838665 3919674 1820000 2391756 2097330 724568 8192 512 784222 787840 805662 811568 843406 826811 4063462 3723507 4683793 1894574 1904625 2129455 406812 8192 1024 828320 3600883 4218387 4282333 4203308 780266 4122695 3796166 821752 414300 408763 2178715 2171152 8192 2048 3497687 3605618 4055550 5312786 5244821 4716097 4047239 3639208 5494691 406250 1929779 2144479 724828 8192 4096 4222745 4293530 4114531 4007639 5241428 4240250 4067736 4390103 4175193 656568 2463020 409026 410398 8192 8192 3160470 3259781 5319463 845321 5319846 4027649 5278038 4141326 4173345 525192 1972129 2230335 2238875 |
IOzone -t 2
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| Children see throughput for 2 initial writers = 635968.72 KB/sec Parent sees throughput for 2 initial writers = 13804.81 KB/sec Min throughput per process = 311928.91 KB/sec Max throughput per process = 324039.81 KB/sec Avg throughput per process = 317984.36 KB/sec Min xfer = 496.00 KB Children see throughput for 2 rewriters = 492281.19 KB/sec Parent sees throughput for 2 rewriters = 10322.56 KB/sec Min throughput per process = 0.00 KB/sec Max throughput per process = 492281.19 KB/sec Avg throughput per process = 246140.59 KB/sec Min xfer = 0.00 KB Children see throughput for 2 readers = 1926058.31 KB/sec Parent sees throughput for 2 readers = 94095.60 KB/sec Min throughput per process = 952574.81 KB/sec Max throughput per process = 973483.50 KB/sec Avg throughput per process = 963029.16 KB/sec Min xfer = 500.00 KB Children see throughput for 2 re-readers = 1163698.00 KB/sec Parent sees throughput for 2 re-readers = 48493.98 KB/sec Min throughput per process = 0.00 KB/sec Max throughput per process = 1163698.00 KB/sec Avg throughput per process = 581849.00 KB/sec Min xfer = 0.00 KB Children see throughput for 2 reverse readers = 835271.88 KB/sec Parent sees throughput for 2 reverse readers = 48462.35 KB/sec Min throughput per process = 0.00 KB/sec Max throughput per process = 835271.88 KB/sec Avg throughput per process = 417635.94 KB/sec Min xfer = 0.00 KB Children see throughput for 2 stride readers = 1502496.31 KB/sec Parent sees throughput for 2 stride readers = 102410.81 KB/sec Min throughput per process = 749671.31 KB/sec Max throughput per process = 752825.00 KB/sec Avg throughput per process = 751248.16 KB/sec Min xfer = 512.00 KB Children see throughput for 2 random readers = 820612.50 KB/sec Parent sees throughput for 2 random readers = 48111.54 KB/sec Min throughput per process = 0.00 KB/sec Max throughput per process = 820612.50 KB/sec Avg throughput per process = 410306.25 KB/sec Min xfer = 0.00 KB Children see throughput for 2 mixed workload = 1116094.59 KB/sec Parent sees throughput for 2 mixed workload = 9078.51 KB/sec Min throughput per process = 337888.66 KB/sec Max throughput per process = 778205.94 KB/sec Avg throughput per process = 558047.30 KB/sec Min xfer = 220.00 KB Children see throughput for 2 random writers = 424610.14 KB/sec Parent sees throughput for 2 random writers = 8556.80 KB/sec Min throughput per process = 6666.64 KB/sec Max throughput per process = 417943.50 KB/sec Avg throughput per process = 212305.07 KB/sec Min xfer = 56.00 KB |
Laatste Config
Zelfde systeem
ZFSguru FreeBSD 8.2
memtest
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| memtest 486m 2 Stuck Address : ok Random Value : ok Compare XOR : ok Compare SUB : ok Compare MUL : ok Compare DIV : ok Compare OR : ok Compare AND : ok Sequential Increment: ok Solid Bits : ok Block Sequential : ok Checkerboard : ok Bit Spread : ok Bit Flip : ok Walking Ones : ok Walking Zeroes : ok 8-bit Writes : ok 16-bit Writes : ok |
DD
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| dd if=/dev/label/disk1 of=/dev/null bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 7.965443 secs (134800015 bytes/sec) dd if=/dev/label/disk2 of=/dev/null bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 8.320615 secs (129045972 bytes/sec) dd if=/dev/label/disk3 of=/dev/null bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 7.793387 secs (137776014 bytes/sec) |
Samba
Zie eerste kopje m.b.t. Samba.
Windows 7
Aan de cliënt side heb ik het volgende geprobeerd:
Energy Efficient Ethernet = Ingeschakeld -> uit
Groen Ethernet = Ingeschakeld -> uit
Prioriteit & VLAN = Prioriteit & VLAN ingeschakeld -> uit, tenzij je QoS of VLAN tagging gebruikt, maar verwacht van niet
Snelheid & duplex = Automatisch onderhandelen -> Force 1Gbit
Resultaten
Leesheden:
De snelheid is nu gemiddeld 25000 kbytes/s waar die voorheen gemiddeld 14000 kbytes/s
Het kopiëren begint met met gemiddeld 50000 kbytes/s maar zakt dan snel weg tot de hierboven genoemde resultaten.
Schrijven:
De snelheid is nu gemiddeld 7500 kbytes/s waar die voorheen gemiddeld 14000 kbytes/s
Het kopiëren begint met met gemiddeld 50000 kbytes/s maar zakt dan héél snel weg tot ongeveer 1000 kbytes/s met dus pieken naar de 14000 kbytes/s.
Wie o wie kan mij helpen om op de gehoopte doorvoersnelheden te komen zoals verwacht bij een gigabit netwerk....
Sinds de 2 dagen regel reageer ik hier niet meer