Nas 업로드 속도 올리는 방법

�ó���� NAS 212J������Դϴ�.

���, 2TB�ϵ尡 �� �ʰ� ��ۿ��� �ٶ��� �����ٴϴ� 320G¥���� �׽�Ʈ���� ���Ⱦ��µ�..
�׶����� �׳� �׽�Ʈ�θ� �÷��� ���������� �ӵ� ������ ���沨����� ������ ��������..
�����㿡 Ǯ���ε带 �ϸ鼭 ���� ������ �����ҳ׿�...

���� ���� ������ �ִ� ������ �뷫 10��ġ.. 120G, 60000�� �����˴ϴ�. ���ٰ� ���� �������� ���� ���󿡼��� ���� ���� �͵� �ƴ� �����ε�..~

�켱,

1. ��Ʈ���ϵ�� ���� ���ε� �� ���
- ���ĺ��ʹ� ���� �ε��̰� ����� �����ϴ���.. NAS�� CPU�� �׾��� ���ư��ϴ�. ���� �������� �˼��� �����ϴ�.
- ���� ���� �� �ȵ� NAS CPU�� ������� �����Ǵ� ��Ȳ...-.-.

2. Synology Assistant�� ���ε� �� ���
- ���в��� �̹���� ���ڴٰ� ��۵� �޾Ҿ�����..��.��;
- �� ��쿡�� PC���� ������� �����Ͽ� ���� ���ε� ���ݴϴ�.
- �ٵ�... �̹����� ���ε� �ӵ��� ������... �㿡 �ڸ鼭 �ɾ�� ���ε尡 ��ħ�� �Ͼ�� ����.. 20%�� �ȿö󰬴�����..
(�ڴµ��� PC�� ������� ������ �͵� �Ѹ��߰�����..��.��)

��¶��... ��� ������� ����ȭ�� ����� ã�ƺ���� �ϰ� �ֽ��ϴٸ�...
���� ���ӱ� �ϳ׿�...

�׳��� ������ �Ǵ� ���� �ѹ� �� �ø���, �ε���/����ϱ��� ������ �űԷ� �߰��Ҷ����� ���� �ð��� �ȵ鲨��� ��...~

��...~


어제 겪은 일인데..
NAS와 공유가 삼바를 통해서 되고 있다면 Socket transfer options의 BUF 사이즈를 늘리고 재부팅 후 다시 해 보세요. 제 경우 10배의 속도 차이가 발생되더군요. (10 -> 100)

카르페 디엠작성자
2018.11.06. 15:12답글수정|삭제
답변 주셔서 감사드립니다.
윈도우 네트워크 폴더로 그냥 복사해 본 속도인데요....
말씀하시는 사이즈는 어느 기기, 어디에서 조절할 수 있어요?

백발귀
2018.11.06. 15:24답글신고
카르페 디엠 서버(NAS)쪽 SMB(삼바) 세팅 쪽에 찾아보시면 될 겁니다.
어제 참고해서 작업했던 글 링크입니다. https://ubuntuforums.org/showthread.php?t=2279604

카르페 디엠작성자
2018.11.06. 15:34답글수정|삭제
백발귀 네, 상세하게 답변 주셔서 너무 감사드립니다. 한번 해 보겠습니다!

------------------------------------------------------------------------------------------

느린 삼바 전송 속도를 높이는 방법
이것은 debian jessie로 수행되었지만 우분투와 분명히 관련이 있으며 커다란 차이를 만들었습니다.

win7 상자에서 리눅스로 파일을 전송할 때 속도는 기본적으로 ~ 20MB / s로 느리다. 
freenas를 실행하는 동일한 시스템으로의 전송은 10-12MB 범위였습니다. 
smbd 데몬을 조정하고 다시 시작한 후 win7 전송 
대화 상자 의 세부 사항에 따라 최대 112MB까지 속도가 올라갔습니다 .

상자가 백업 머신이기 때문에 ~ 90 %의 최대 네트워크 사용률을 유지하는 것이 가장 좋습니다. 
95 % 이상 사용하면 서핑 / 다운로드 / 스트리밍에 큰 해를 끼칩니다.
나는 80 % 사용 표시 주위의 데이터를 전송하고 1080p HD로 YouTube 비디오를 동시에 보았고 지원하는 경우 점보 프레임이 활성화되어 있는지 
비디오 손실을

점검 하지 않았습니다 .

ifconfig를 사용하면 MTU가 1500으로 기본 설정됩니다 
/ etc / network / interfaces 파일 
을 편집하여 9000으로 변경하면 
닉 선언 아래에 "mtu 9000" 줄 을 추가해야합니다. 
이 변경은 영구적이지만 정적 주소를 설정해야합니다

!!! 하드웨어가 점보 프레임을 지원해야합니다. 그렇지 않으면 문제 / 지연이 발생할 수 있습니다. 
하드웨어가 7k 프레임 또는 4k 프레임 만 지원하는 경우 적절하게 값을 설정하십시오.
nic은 최상의 성능 / 호환성을 위해 동일한 점보 프레임 설정을 가져야하지만, 설정을 테스트하십시오 
. 어떤 규칙을 적용하든 지나치게 많은 하드웨어 의미가 있습니다.

가장 중요한 부분은 삼바 설정 (버전 4.x)입니다.

전송 속도를 높이기 위해 samba 소켓 옵션을 설정하십시오. 
이 작업은 smb.conf 파일에 직접 수행하거나 GUI를 사용하여 수행 할 수 있습니다. GADMIN-SAMBA

소켓 옵션 = TCP_NODELAY SO_RCVBUF = 524288 SO_SNDBUF = 524288 IPTOS_LOWDELAY

가장 큰 증가는 SO_RCVBUF 및 SO_SNDBUF 
를 기본 버퍼로 설정하여 8192 번의 
변경으로 인해 속도가 다음과 같이 변경되었습니다.

버퍼 크기 속도 네트워크 
사용률
524288 -> 1백메가바이트 + ~ 90 % 
262,144 -> 55메가바이트 ~ 50 % 
65,536 -> ~ 40메가바이트 ~ 40 % 
8192 -> ~ 20메가바이트 ~ 20 %

분명히 utlization, 작은 전송은 1 %와 40 %의 네트워크 사이에, 느린 어쨌든있는 
큰 파일을 명중 ~ 90 %의 문제없이

네트워크에있는 NIC는 Gigabit NIC이며, 케이블은 cat5e 또는 cat6 
이며 스위치와 라우터는 기가비트입니다.

이 정보가 도움이된다면 좋아요 /

gd 행운을 보냅니다

(새로운 것은 아니지만 SSO에 대한 새 계정을 만들어야 함)

How to make your slow samba transfers faster
This was done with debian jessie but is relevant obviously, to ubuntu and made a MASSIVE difference.

when transferring files from a win7 box to the linux nas the speed was slow, by default ~20MB/s.
transfers to the same machine running freenas were around the 10-12MB range.
after tweaking and restarting the smbd daemon, the rate went up to ~112MB according to the details in the win7 transfer
dialog window.

since the box is a backup machine, having a max network utilization of ~90% is the most i would like to leave it at.
if you do go for 95%+ utilization, this will affect any surfing/downloading/streaming in a very detrimental manner.
i was transferring data around the 80% utilization mark and watching a youtube video at 1080p HD at the same time and suffered 
no video loss

check that jumbo frames are enabled for all nic's if they support it:

the MTU is 1500 default when seen using ifconfig
change to 9000 by editing /etc/network/interfaces
you just need to add "mtu 9000"
on the line beneath your nic declaration
this change is permanent but will require setting up a static address

remember!!! your hardware must support jumbo frames or this can/will cause problems/lag.
if your hardware only supports 7k frames or 4k frames, set the value accordingly, also, both communicating
nic's should have the same jumbo frame settings for best performance/compatibility however, test your setup,
there are far too many hardware connotations to apply any rule across, ymmv.

the most important part is in the samba settings (version 4.x).

set the samba socket options to increase transfer speeds.
this can be done either directly to the smb.conf file, or using a gui, eg. GADMIN-SAMBA

socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288 IPTOS_LOWDELAY

the greatest increase came from setting the SO_RCVBUF and SO_SNDBUF
the default buffers were 8192
changes resulted in the following speed changes:

buffer size speed network
utilization
524288 -> 100MB+ ~90%
262144 -> 55MB ~50%
65536 -> ~40MB ~40%
8192 -> ~20MB ~20%

obviously, small transfers are slower anyway, between 1% and 40% network utlization
the larger files hit ~90% without issue

the nic's on the network are Gigabit nic's, the cables are cat5e or cat6
the switches and routers on the network are gigabit capable.

if this information helps you, give it a like/commend

gd luck