Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate MTU performance tweaks #19

Open
kylemanna opened this issue Dec 8, 2014 · 0 comments
Open

Investigate MTU performance tweaks #19

kylemanna opened this issue Dec 8, 2014 · 0 comments

Comments

@kylemanna
Copy link
Owner

Review OpenVPN's Gigabit Network Wiki Page and consider implementing some performance tweaks.

Currently, ~ 150 Mb/s consumes 100% of a Digital Ocean 1 CPU / 512 MB droplet.

A larger MTU should improve encryption/decryption efficiency and IPC between kernel and user space daemon.

Test Case

Client

~ ❯❯❯ curl http://cachefly.cachefly.net/100mb.test http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  http://cachefly.cachefly.net/100mb.test  > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  100M  100  100M    0     0  12.2M      0  0:00:08  0:00:08 --:--:-- 13.5M
100  100M  100  100M    0     0  14.5M      0  0:00:06  0:00:06 --:--:-- 14.4M
100  100M  100  100M    0     0  14.4M      0  0:00:06  0:00:06 --:--:-- 13.9M
100  100M  100  100M    0     0  14.8M      0  0:00:06  0:00:06 --:--:-- 15.0M
100  100M  100  100M    0     0  14.1M      0  0:00:07  0:00:07 --:--:-- 13.9M
100  100M  100  100M    0     0  14.4M      0  0:00:06  0:00:06 --:--:-- 14.8M
100  100M  100  100M    0     0  15.5M      0  0:00:06  0:00:06 --:--:-- 15.7M
100  100M  100  100M    0     0  14.3M      0  0:00:06  0:00:06 --:--:-- 14.1M
100  100M  100  100M    0     0  14.4M      0  0:00:06  0:00:06 --:--:-- 14.8M
100  100M  100  100M    0     0  14.9M      0  0:00:06  0:00:06 --:--:-- 15.0M
100  100M  100  100M    0     0  15.4M      0  0:00:06  0:00:06 --:--:-- 15.5M

Result

  • Server: imgur htop (running kylemanna/openvpn:0.2)
  • Client: imgur rMBP (running 2012 rMBP + TunnelBlick with OpenVPN 2.3.4)
  • User 😞

Suggested by @bydavy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant