Skip to content

Connection between computer and server on LAN is very slow.

I just decided to convert my gaming PC into a server becuase I don't really game anymore, both machines are running Arch. They are both connected via Ethernet. When copying files between them I get about 1MB/s, and it seems like it should be ~125MB/s with my Gigabit LAN? What could be up here? Cheers.

1 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
3cegd5

Author

11
posts
83
comments
5
media
View profile

12 comments

What category are the Ethernet cables? Are the connected using a router which has QoS enabled? Are you copying lots of small files, or large files?

2 points

What protocol are you using to transfer files?

Double checking, do your computers have gigabit nic? Older ones might not.

1 points

rsync and yes, but even if it was just 100mb it should be 12x faster

1 points

rsync over ssh or rsync over rsync daemon? (or something else?)

Are you maybe using the compress option -z of rsync?

1 points
  • First, run iperf on both machines to determine your raw interface speed. If that's not > 900 MBit/s, you have a problem with your network setup somewhere.
  • If your raw speed is good, and there's nothing else hogging bandwidth on either end, check your disk speed by doing a local rsync from/to a ramdisk (e.g. a large file from /home to /run/user/$UID and back).
  • Then you can start tweaking SSH performance. I use this little script to test the raw throughput of a bunch of ciphers. Which one is faster will depend on your hardware (especially CPU) in question.

(For comparison, I manage 937 MBit/s raw throughput on GbE through one router and two switches. On an Intel i5-3320M, my fastest cipher is aes128-gcm at 384 MiB/s; on an AMD G-T40E embedded CPU it's chacha20 at a blazingly fast 25 MiB/s.)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.