안녕하세요? 잇힝잇힝 입니다.
오늘은 Synology 시놀로지 NAS를 특집으로 작성 해봅니다.
아래 블로그에 먼저 올렸던 글인데, NAS 당에도 옮겨서 올려봅니다.
http://blog.naver.com/vicki1003/220967821876
얼마 전, 시놀로지에서 multichannel 을 성공하신 분 후기를 보고 검색을 좀 해봤습니다.
아래와 같은 방법으로 적용하니 Quad Port를 모두 쓸 수 있어서 좋더라고요 :-)
주제 : Synology SMB 3.0 Multichannel 같은 네트워크 전송속도 높이기
요약 : Synology 에서 smb.conf 수정으로 Multichannel 같이 NAS-PC 간의 파일 전송속도를 높이고자 함
환경 :
- NAS : Synology DS1815+ (WD Red 4TB Disk 6EA + Crucial 525GB 2EA (Cache) / RAID-5 구성
- PC : ASrock 내장 Dual LAN (Brocade) + Intel PT Dual LAN Card (MS Windows 10 Professional)
- Network : NETGEAR GS724T v3 (1Gbps x 24port Switch)
- Connection : DS1815+ <-> Switch <-> PC 모두 1Gbps Quad Port (4-port) 연결
개요 : 시놀로지 DSM 6.1 현재 Defaullt 상태로는 Multichannel을 지원하지 않습니다. 그러나 /ete/samba/smb.conf 에 옵션을 넣어주면, Multichannel 과 유사하게 사용이 가능 합니다.
방법 : 요약하자면, Synology에 SSH 로 접속한 후, /etc/samba/smb.conf 파일을 수정해 줍니다.
- 1. putty를 이용해 synology 에 접속을 합니다. (putty 다운로드는 구글에서 검색하면 바로 나옵니다)
- 2. sudo -i 실행 (root 권한으로 id를 변경. 비밀번호는 admin 비밀번호랑 동일)
- 3. vi /etc/samba/smb.conf 실행
- 4. 아래 내용 추가
server multi channel support = yes
aio read size = 1
aio write size = 1
- 5. 저장하고 나와서 NAS 재부팅 (samba 관련 서비스만 재시작 해도 됩니다)
결과 :
- 적용 전 : PC에서 Quad port (4-port) 로 Switch에 연결 되어 있음에도 110MB/s (1Gbps) 로 파일 복사 (NAS > PC)
- 적용 후 : PC에서 220MB/s 로 파일 복사 (NAS > PC)
Quad Port임에도 220MB/s 밖에 안 되는 이유는, PC의 SSD가 Write 성능에서 병목이 걸리기 때문입니다. Synology DS1815+ NAS는 Spec상 최대 Read&Write 400MB/s에 근접하는 속도를 RAID-5에서 제공하므로, 병목이 NAS에서 걸렸을 것으로 생각하지는 않습니다.
첨부한 스크린샷을 보면, 4개 Port에서 각각 500Mbps 전후로 트래픽을 나눠서 전송하는 것을 볼 수 있습니다.
추가 설명 :
- aio read size (S) 옵션 설명 : If Samba has been built with asynchronous I/O support and this integer parameter is set to non-zero value, Samba will read from file asynchronously when size of request is bigger than this value. Note that it happens only for non-chained and non-chaining reads and when not using write cache.
Current implementation of asynchronous I/O in Samba 3.0 does support only up to 10 outstanding asynchronous requests, read and write combined.
Related command: write cache size
Related command: aio write size
Default: aio read size = 0
- aio write size (S) 옵션 설명 : If Samba has been built with asynchronous I/O support and this integer parameter is set to non-zero value, Samba will write to file asynchronously when size of request is bigger than this value. Note that it happens only for non-chained and non-chaining reads and when not using write cache.
Current implementation of asynchronous I/O in Samba 3.0 does support only up to 10 outstanding asynchronous requests, read and write combined.
Related command: write cache size
Related command: aio read size
Default: aio write size = 0
옵션 정보에 대한 출처 : https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
잘못 된 내용이나 궁금하신 사항은 댓글 달아 주세요.
다만.. SMB 4.4에서도 아직 experimental feature라.. 말씀하신것처럼 중요한 시스템에서의 사용은 권장하지 않고 있습니다.