Development discussion of WireGuard
 help / color / mirror / Atom feed
* Sys CPU usage increasing over time
@ 2018-01-16 23:24 Luiz Angelo Daros de Luca
  2018-04-16 17:13 ` Jason A. Donenfeld
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Angelo Daros de Luca @ 2018-01-16 23:24 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 1979 bytes --]

Hello,

I'm testing wireguard with two LEDE (OpenWrt) 17.01.4 nodes. The "server"
is a TL-WR2543ND with 64MB RAM and the "client" (the one with a defined
endpoint address) a poor TL-WR741ND v4 with 32 RAM.
Both are ar71xx systems, arch MIPS 24Kc CPU, with little to no performance
difference.

As TL-WR741ND has only 4 MB or flash, the smaller footprint of wireguard
allowed me to squeeze all needed packages without removing any original
package (as web gui) creating a custom image. That was unimaginable with
openvpn. Thanks wireguard!

Both are using a little bit outdated wireguard module because modules are
only rebuild on new dot releases. Userland can be updated easier.

kmod-wireguard - 4.4.92+0.0.20171017-1
wireguard - 0.0.20171221-1
wireguard-tools - 0.0.20171221-1

Everything seems to work as expected. However, on the client (TL-WR741ND),
I noticed that something between half a day to a couple of days normal
network usage (not VPN) gets slower and slower. Checking the device,
loadavg reaches values as 15 a little bit before the router stops to work
and I need to do a cold restart. top tells me sys usage eats 90% of CPU. If
I restart wireguard interface, nothing changes. The CPU falls drastically
if I remove wireguard module from kernel (rmmod), returning to a normal
loadavg of 0.05.

My VPN link is normally idle, using a couple of MiB per day. The VPN usage
seems to not affect the time needed to manifest the problem, but normal
network usage does seem to make the problem appear sooner.

The strange thing is that the "server" node does not show the same
behavior. Maybe it is related to the fact that it has currently no local
network usage there. Both nodes uses the same wireguard binary code.

Is this a known issue of version 0.0.20171017? Or do I get something new? I
tried to read all changelog since 20171017 but I could not identify any
obvious fix.

Is there anything I can do?

Regards,


-- 

Luiz Angelo Daros de Luca
luizluca@gmail.com

[-- Attachment #2: Type: text/html, Size: 2512 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sys CPU usage increasing over time
  2018-01-16 23:24 Sys CPU usage increasing over time Luiz Angelo Daros de Luca
@ 2018-04-16 17:13 ` Jason A. Donenfeld
  2018-04-16 18:35   ` Luiz Angelo Daros de Luca
  0 siblings, 1 reply; 3+ messages in thread
From: Jason A. Donenfeld @ 2018-04-16 17:13 UTC (permalink / raw)
  To: Luiz Angelo Daros de Luca; +Cc: WireGuard mailing list

Hi Luiz,

Did this problem ever disappear?

Regards,
Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sys CPU usage increasing over time
  2018-04-16 17:13 ` Jason A. Donenfeld
@ 2018-04-16 18:35   ` Luiz Angelo Daros de Luca
  0 siblings, 0 replies; 3+ messages in thread
From: Luiz Angelo Daros de Luca @ 2018-04-16 18:35 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Hi Jason,

No, it didn't. I simply stop using wireguard for now. It was a remote site
that I have contact few days in a year.
For now, it was the safest solution.

The problem manifested only on the side that has an unstable ADSLv2 link.
It resets multiple times a day.
Maybe the memory problem is related to a change in WAN ip address (ADSL
never reuse previous addresses).

Regards,
Luiz


Em seg, 16 de abr de 2018 às 14:13, Jason A. Donenfeld <Jason@zx2c4.com>
escreveu:

> Hi Luiz,
>
> Did this problem ever disappear?
>
> Regards,
> Jason
>
-- 

Luiz Angelo Daros de Luca
luizluca@gmail.com

[-- Attachment #2: Type: text/html, Size: 1141 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-16 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 23:24 Sys CPU usage increasing over time Luiz Angelo Daros de Luca
2018-04-16 17:13 ` Jason A. Donenfeld
2018-04-16 18:35   ` Luiz Angelo Daros de Luca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).