C.W.K.
Stream
Lesson 12 of 12 · published

성능 튜닝

~18 min · performance, 10gbe, compression, bwlimit, ciphers

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

실제 속도 제한 요인

10GbE LAN 에서 rsync 의 디폴트는 거의 wire speed 안 찍어. 실전 세 가지가 병목 — 암호화 CPU, compression CPU, 파일별 메타데이터 overhead. 각각 튜닝하면 throughput 한 덩이씩.

빠른 LAN 에서 compression 빼

네트워크가 ~100 Mbit/s 보다 빨라지자마자 -z 가 병목을 네트워크에서 CPU 로 옮김. 10GbE 에선 -z 가 throughput 을 가능. 빼. 진짜 느린/metered link 만 유지.

빠른 cipher 골라

모던 OpenSSH 디폴트가 Apple Silicon 과 모던 x86 에서 빠름. 옛 하드웨어면 -e ssh -c ... 통해 -c aes128-gcm@openssh.com 으로 hardware-accelerated cipher 강제.

10GbE 기대치

네트워크이론치실제 rsync
1 GbE125 MB/s~100–110 MB/s
10 GbE1.25 GB/s~800 MB/s – 1.1 GB/s
Thunderbolt Bridge (Mac↔Mac)~5 GB/s~1–3 GB/s (디스크 제한)

iperf3 (Track 5) 가 wire speed 가까이 보이는데 rsync 안 그러면 — 병목이 네트워크 X — rsync 의 파일별 overhead, 암호화 CPU, 또는 디스크.

Code

Throughput 노브·bash
# Fast LAN — no compression, modern cipher
rsync -av --progress source/ host:/dest/

# Force a fast cipher (hardware-accelerated AES-GCM)
rsync -av --progress -e "ssh -c aes128-gcm@openssh.com" source/ host:/dest/

# WAN — keep compression
rsync -avz --progress source/ remote:/dest/

# Throttle on a metered link
rsync -av --bwlimit=10000 source/ remote:/dest/   # 10 MB/s cap

# Tar pipe with fast cipher beats rsync on tiny-file storms
tar cf - source | ssh -c aes128-gcm@openssh.com host 'tar xf - -C /dest/'

External links

Exercise

가장 빠른 LAN 연결에서 iperf3 (Track 5 셋업 있음) 돌려서 raw 네트워크 천장 찾아. 그다음 GB 디렉토리 진짜 rsync 를 -z 있고 없고 둘 다. iperf3 천장과 비교. 갭이 네 overhead — 보통 디스크나 암호화. 거기가 미래 최적화 속한 곳.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.