Page 1 of 1

CPU 100% problem

Posted: Mon Mar 31, 2014 5:41 pm
by scegg
Hello. I have a strange 100% CPU usage problem about SoftEther.

My Test Environment:
Client side: Ubuntu Server 13.10 on Soekris Net6501-70 (CPU: Atom 1.6G, Mem: 2GB).
Server side in Test A1/2: Ubuntu Server 14 on Windows Azure
Server side in Test B1/2: Windows Server 2012 R2 on Windows Azure
SoftEther Version: 4.06 Build 9435.

Coz Windows Azure blocked all protocols other than TCP/UDP, I just used port 443 and SSTP for testing. Only SSTP clone is on.

Test A1:
Running a linux x64 version on server side with SecureNAT (bridge off) as well as a linux x86 version on client.
Result:
The cpu usage of vpnclient on client side will raise to 100% periodically. The cycle is no more than 1 min and it will keep on 100% for about 10 secs. After that, the server side will be similar to keep at 100% for 10 secs. Within these periods, no communication by VPN can be passed. In other time, it works great.

Test A2:
Running a linux x64 version on server side with bridge to a TAP device (SecureNAT is off) as well as a linux x86 version on client. Routing is set to on in server.
Result:
It works great for several hours then back to the same as A1.

Test B1:
Running a Windows version on server side with SecureNAT (bridge off) as well as a linux x86 version on client.
Result:
Same as A1. But the CPU usage on server side is not reached to 100%.

Test B2:
Running a Windows version on server side with bridge to a loopback NIC (SecureNAT is off) as well as a linux x86 version on client. RRAS is enabled for routing.
Result:
Same as A2. But the CPU usage on server side is not reached to 100%. I can reboot both server and client to reset this back to normal.

What's wrong with these?

Thanks for any advice.

Re: CPU 100% problem

Posted: Tue Apr 01, 2014 2:13 am
by arprip
Hi,
Thanks for the information. Since you are testing with SSTP.
Is there any chance to try l2tp or ether/ip mode ? Just guessing if SSTP is root cause.

Re: CPU 100% problem

Posted: Tue Apr 01, 2014 2:21 am
by scegg
Thanks for your reply.

I don't think it's possible to test other than SSTP coz GRE (used by PPTP) and ESP (used by L2TP and IKEv2) are not allowed by Windows Azure.

Re: CPU 100% problem

Posted: Thu Apr 03, 2014 6:57 am
by thisjun
Could you check a sever-side vpn logs ? Is there any error or warning?

Re: CPU 100% problem

Posted: Thu Apr 03, 2014 7:01 am
by scegg
thisjun wrote:
> Could you check a sever-side vpn logs ? Is there any error or warning?

I dont know how to get the log from server side.

After I rebooted the server side, in the Test case B2, I haven't repo this problem but the log file is not deleted by me.

Re: CPU 100% problem

Posted: Thu Apr 03, 2014 7:09 am
by thisjun

Re: CPU 100% problem

Posted: Thu Apr 03, 2014 7:19 am
by scegg
thisjun wrote:
> Please see this manual
> http://www.softether.org/4-docs/1-manua ... n_Terminal

There is no such a button to get log file on my instance of Server Manager. Maybe manual is obsoleted?

Re: CPU 100% problem

Posted: Sat Apr 05, 2014 7:58 pm
by mstenz
Hi,

I have the same problem with Windows Server 2012 R2. I have currently connected one Client via VPN and one Bridge, also I use a Virtual switch and Virtual DHCP without NATing.

I have tested this scenario with a previous version before without any issues, but with the last beta communctions stop regularly as can be checked ping:

Reply from 10.50.1.251: bytes=32 time=2ms TTL=255
Reply from 10.50.1.251: bytes=32 time=2ms TTL=255
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Reply from 10.50.1.12: Destination host unreachable.
Reply from 10.50.1.12: Destination host unreachable.
Reply from 10.50.1.12: Destination host unreachable.
Reply from 10.50.1.251: bytes=32 time=1298ms TTL=255

I can let give you access to our Server if needed.

The only errr message in the log is that:
2014-04-05 21:24:02.913 [HUB "AdminVPNGate"] Session "SID-MSTENZ-7": A large volume of broadcast packets has been detected. There are cases where packets are discarded based on the policy. The source MAC address is 00-AC-F5-3E-13-8B, the source IP address is fe80::15b8:173d:a110:ef73, the destination IP address is ff02::1:3. The number of broadcast packets is equal to or larger than 36 items per 1 second (note this information is the result of mechanical analysis of part of the packets and could be incorrect).

But thats my client VPN session and the unstable connection also happens if my client VPN connection is not established.

What I also see in the Windows Performance Monitor, that about 10MByte/s traffic is running through the SE daemon, even no real data are transferred.

Would be really great if you can find out what this issue is.

Re: CPU 100% problem

Posted: Sat Apr 05, 2014 8:00 pm
by mstenz
Additional note: I have disabled all other protocols. Only native SE VPN is used.

Re: CPU 100% problem

Posted: Sat Apr 05, 2014 8:35 pm
by mstenz
Hi, please note that I have:

- disabledUDPAcceleration set to 1 in all hubs

and now the problem is gone.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 7:05 am
by scegg
mstenz wrote:
> Hi, please note that I have:
>
> - disabledUDPAcceleration set to 1 in all hubs
>
> and now the problem is gone.

Thanks for your information.
After I rerun my test, this is proved useful but only in bridge mode. The problem is still existed while using SecureNAT but seems be better than before.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 8:55 am
by mstenz
Hi,

but you wrote you dont used NAT? I think with NAT 100% CPU is normal and this should not really be used.

rgds.

Michael

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 9:10 am
by scegg
mstenz wrote:
> Hi,
>
> but you wrote you dont used NAT? I think with NAT 100% CPU is normal and
> this should not really be used.
>
> rgds.
>
> Michael


I have 4 test scenarios.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 9:27 am
by mstenz
So I understand without NAT its working now like a charm?
If yes, all is ok.
Please do not use NAT, as 100% is normal when using it.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 10:41 am
by inten
scegg wrote:

> I have 4 test scenarios.

How many hubs do you operate?

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 11:11 am
by scegg
inten wrote:
> scegg wrote:
>
> > I have 4 test scenarios.
>
> How many hubs do you operate?


1 for each.

the 4 test servers are dedicated.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 11:12 am
by inten
and how many users in each hub?

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 11:31 am
by scegg
inten wrote:
> and how many users in each hub?

1 for each.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 12:30 pm
by inten
post vpn_server.config here.

Re: CPU 100% problem

Posted: Sun Apr 06, 2014 1:06 pm
by scegg
inten wrote:
> post vpn_server.config here.

it works without SecureNAT and UDP Accelerating. I don't need troubleshooting for this. Thanks.