LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2013, 10:07 PM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
should a core i3 3.3ghz openvpn server max out at 47mbps?


title says it all. I have a linux router/vpn server with a core i3 2120 cpu. For vpn connnections to the public internet this isn't an issue, but i'm curious why an iperf test or an ftp download maxes out at around 47-50mbps.

Local tests on the gigabit LAN without the vpn achieves around 947mbps. But over the vpn up stops at around 47. CPU usage by openvpn during a transfer goes up to no more than 18-20%.

motherboard is intel dh77eb, 4gb RAM, arch linux installed on an msata 6gbps drive. it functions as an iptables router for 4 separate networks including the internet.
 
Old 06-07-2013, 02:18 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
The CPU usage indicate to all core average or individual thread, which one is it?
 
Old 06-07-2013, 05:20 PM   #3
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
i'm just reading from top, the %cpu for the openvpn process
 
Old 06-10-2013, 02:18 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
The number of %CPU for particular process is average usage for all threads. You can hit 1 to show all individual threads usage. If individual thread(CPU) is high, that's your CPU power.
 
Old 06-10-2013, 02:39 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by nini09 View Post
The number of %CPU for particular process is average usage for all threads.
Incorrect. The %CPU shown on top is for one processor. If a process is multi-threaded you can see this number jump way above 100%. A value of 20% means it's using 20% of one core of the processor. A dual core CPU like the OP's won't be saturated until you see 200% usage in top (one 200% process, two 100% processes, four 50% processes, etc). Of course this is ignoring hyperthreading though, which changes things a bit.

Last edited by suicidaleggroll; 06-10-2013 at 02:41 PM.
 
Old 06-10-2013, 03:55 PM   #6
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
afaik openvpn is not multithreaded... i could be wrong. in any case I would think that I should be getting more than 47mbps.... is there anything else that could slow it down? i've tested another openvpn setup on a 1.8GHz sempron cpu, and was able to get ~80mbps, so.... somethings up..
 
Old 06-12-2013, 02:19 PM   #7
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
What is individual CPU(threads) usage show? Does the openvpn process wait for something else?
 
Old 06-13-2013, 03:41 AM   #8
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
figured it out, kind of a facepalm thing. some time ago I had added some tc/iptables classes on the internal interface to limit the speed to around 50mbps. stupid me, didn't make the connection that this would also apply to the tunneling interface, limiting iperf tests done on that interface as well. temporarily removed the tc stuff and speed is around 175-200mpbs now.

oh well. thanks for the help as always folks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directing OpenVPN client's traffic through the OpenVPN server mohtasham1983 Linux - Networking 1 01-17-2012 06:44 PM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-24-2009 02:42 AM
2.1GHz Quad Core Barcelona CPU was recognized as 1.3GHz Quad Core libin88 Linux - Hardware 6 11-03-2008 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration