Skip to main content
FTW! :)
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26

Another option: use "parallel scp" (somehow or other), then it will use more cores...

Another option: use "parallel scp" (somehow or other), then it will use more cores...

added 181 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
nc: 0m18.706s (100% cpu, v1.84, no -q option?
iperf3: without0m10.013s -q(100% optioncpu, but can transfergo truncatedup files...)
iperf3:to 0m10.013sat (least 20Gbe with 100% cpu so not sure it matters)
socat: 0m10.293s (88% cpu, possibly maxed out)

So on one instance netcat used less cpu, on the other socat, so YMMV.

With netcat, if it doesn't have a "-N -q 0" option it can transfer truncated files, be careful...other options like "-w 10" can also result in truncated files.

nc: 0m18.706s (100% cpu, v1.84, no -q option? without -q option can transfer truncated files...)
iperf3: 0m10.013s (100% cpu)
socat: 0m10.293s (88% cpu, possibly maxed out)

So on one instance netcat used less cpu, on the other socat, so YMMV.

nc: 0m18.706s (100% cpu, v1.84, no -q option
iperf3: 0m10.013s (100% cpu, but can go up to at least 20Gbe with 100% cpu so not sure it matters)
socat: 0m10.293s (88% cpu, possibly maxed out)

So on one instance netcat used less cpu, on the other socat, so YMMV.

With netcat, if it doesn't have a "-N -q 0" option it can transfer truncated files, be careful...other options like "-w 10" can also result in truncated files.

added 432 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26

suggestions from linode, add to /etc/sysctl.conf:

net.core.rmem_max = 268435456 
net.core.wmem_max = 268435456 
net.ipv4.tcp_rmem = 4096 87380 134217728
net.ipv4.tcp_wmem = 4096 65536 134217728
net.core.netdev_max_backlog = 250000
net.ipv4.tcp_no_metrics_save = 1
net.core.default_qdisc = fq 

Additionally, they would like you to run:

 /sbin/ifconfig eth0 txqueuelen 10000 

worth double checking after tweaking to make sure it didn't at least hurtchanges don't cause harm too.

worth double checking after tweaking to make sure it didn't at least hurt.

suggestions from linode, add to /etc/sysctl.conf:

net.core.rmem_max = 268435456 
net.core.wmem_max = 268435456 
net.ipv4.tcp_rmem = 4096 87380 134217728
net.ipv4.tcp_wmem = 4096 65536 134217728
net.core.netdev_max_backlog = 250000
net.ipv4.tcp_no_metrics_save = 1
net.core.default_qdisc = fq 

Additionally, they would like you to run:

 /sbin/ifconfig eth0 txqueuelen 10000 

worth double checking after tweaking to make sure changes don't cause harm too.

added 75 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 86 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 86 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
more cpu
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
add cpu
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
socat "sometimes" wins LOL
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 115 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 115 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 24 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 24 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
added 24 characters in body
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26
Loading