OpenVPN takes a lot CPU on GoFlex Home

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

OpenVPN takes a lot CPU on GoFlex Home

Postby auzn » Wed May 21, 2014 4:02 am

I have a GoFlex Home as a download server. I just noticed that OpenVPN sometimes takes as high as 45% CPU when I am downloading. I am not sure if this is normal, or I didn't config OpenVPN properly. Does anyone else also see this high CPU usage happen?
auzn
 
Posts: 13
Joined: Fri Nov 16, 2012 8:39 pm

Re: OpenVPN takes a lot CPU on GoFlex Home

Postby Guidobelix » Wed May 21, 2014 7:24 am

I have a similar problem with a PP4. The only workaround I could find up to now was to reboot the system every couple of days, as I have noticed that this generally happens after a while the PP4 is running.

If anybody has a hint......

Thanks
Guido
Guidobelix
 
Posts: 45
Joined: Fri Jun 21, 2013 6:52 am

Re: OpenVPN takes a lot CPU on GoFlex Home

Postby tomcheng76 » Thu May 22, 2014 4:18 am

check with this post
viewtopic.php?f=30&t=2452

this is my lsmod under goflex net
$this->bbcode_second_pass_code('', '[root@alarm system]# lsmod
Module Size Used by
xt_tcpudp 1952 1
iptable_filter 1124 1
ipt_MASQUERADE 1496 2
iptable_nat 2297 1
nf_conntrack_ipv4 11483 1
nf_defrag_ipv4 1083 1 nf_conntrack_ipv4
nf_nat_ipv4 3196 1 iptable_nat
nf_nat 11092 3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack 63614 5 ipt_MASQUERADE,nf_nat,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4
ip_tables 10358 2 iptable_filter,iptable_nat
x_tables 11923 4 ip_tables,xt_tcpudp,ipt_MASQUERADE,iptable_filter
mv_cesa 11034 0
tun 18310 4
ipv6 300997 18
autofs4 23037 2
')

you should also have a mv_cesa module ?

it is under 5% cpu usage when i am using the openvpn, although my 3G network is slow, so downloading using the VPN should not be fast
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: OpenVPN takes a lot CPU on GoFlex Home

Postby auzn » Sun May 25, 2014 3:15 am

I have already installed the openssl-cryptodev . Using lsmod, the mv_cesa also shows up.

My openvpn goes to almost 30%~40% cpu when downloading at about 500KB/s. Maybe this is the best this cpu can do?
auzn
 
Posts: 13
Joined: Fri Nov 16, 2012 8:39 pm

Re: OpenVPN takes a lot CPU on GoFlex Home

Postby tomcheng76 » Mon May 26, 2014 4:02 am

You can post your openvpn conf

This is mine
$this->bbcode_second_pass_code('', '
port 1194
proto udp
dev tun
server 10.0.0.0 255.255.255.0 #you may choose any subnet. 10.0.0.x is used for this example.

ca ca.crt #certs are optional. you may choose to go with keys or passwords instead.
cert server.crt
key server.key
dh dh1024.pem

push "redirect-gateway def1"

push "dhcp-option DNS 8.8.8.8"

#the following commands are optional
keepalive 10 120
comp-lzo
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3

log-append /var/log/openvpn
#last updated May 29, 2011')
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: OpenVPN takes a lot CPU on GoFlex Home

Postby Socaltom » Thu Aug 21, 2014 4:46 pm

try turning off comp lzo,
I turned it off on my PPV2 and I believe its faster. If its using lots of CPU on downloads, its probably trying to compresse the files.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 24 guests