NASが流行っているがまだまだ高い
ので自作しよう。
目標
ネットワーク速度上限まで速度をあげたい
→達成を確認
ボトルネックを調査する
結論ボトルネックはなく、ネットワーク帯域をおおむね使い切れているとわかった。安心。
我が家のネットワークは1000Mbpsが仕様。
まとめ
測定箇所 | Gbps | 取得値 | Note |
---|---|---|---|
SMB転送 | 0.88 | 112647.1 kb/s | |
ネットワーク | 0.936 | 936Mbits/sec | |
ディスクWrite | 2.696 | 337MB/sec | HWスペックより大きな値で疑問あり |
ネットワーク速度
server
$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 1] local 192.168.1.29 port 5001 connected with 192.168.1.70 port 42854
[ ID] Interval Transfer Bandwidth
[ 1] 0.0000-10.0201 sec 1.09 GBytes 936 Mbits/sec
client
$ iperf -c 192.168.1.29
------------------------------------------------------------
Client connecting to 192.168.1.29, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 1] local 192.168.1.70 port 42854 connected with 192.168.1.29 port 5001 (icwnd/mss/irtt=14/1448/314)
[ ID] Interval Transfer Bandwidth
[ 1] 0.0000-10.0214 sec 1.09 GBytes 936 Mbits/sec
ファイル書き込み速度
server
$ dd if=/dev/zero of=/tmp/testfile bs=1M count=2048 oflag=direct
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 6.36633 s, 337 MB/s
SMBでの実転送速度
client
$ smbclient //192.168.[server address]/ -U [username] -t 60 --max-protocol=SMB3
Password for [WORKGROUP\user]:
Try "help" to get a list of possible commands.
smb: \> put dummy_2GB.bin
putting file dummy_2GB.bin as \dummy_2GB.bin (91263.8 kb/s) (average 91263.8 kb/s)
kb/sがkbit/sなのかkbyte/sなのかわからず、下記で時間を測定したところ、結論、kByte/sであることがわかった。
2GB/20sec = 100MB/sec =
$ time smbclient //192.168.[server address]/ -U [username] -t 60 --max-protocol=SMB3 -c "put dummy_2GB.bin"
Password for [WORKGROUP\username]:
putting file dummy_2GB.bin as \dummy_2GB.bin (112647.1 kb/s) (average 112647.2 kb/s)
real 0m20.594s
user 0m0.064s
sys 0m2.681s