0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自宅サーバー 自作NASボトルネック有無調査

Last updated at Posted at 2025-03-19

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?