RE: Openvpn tap uses 99% cpu time

2007-10-03 Thread Emile Coetzee
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emile Coetzee Posted At: 20 March 2007 14:16 PM Posted To: freebsd-stable Conversation: Openvpn tap uses 99% cpu time Subject: RE: Openvpn tap uses 99% cpu time Emile Coetzee wrote: > Okay I finally have a ktrace of the offending process. You can

RE: Openvpn tap uses 99% cpu time

2007-03-20 Thread Emile Coetzee
Emile Coetzee wrote: > Okay I finally have a ktrace of the offending process. You can view it here: > http://www.clarotech.co.za/dump/openvpn2.txt > >>Thanks for this. If this is the correct trace, of the correct process, then it looks like OpenVPN is hanging immediately on opening the tap devi

Re: Openvpn tap uses 99% cpu time

2007-03-16 Thread Bruce M. Simpson
Emile Coetzee wrote: Okay I finally have a ktrace of the offending process. You can view it here: http://www.clarotech.co.za/dump/openvpn2.txt Thanks for this. If this is the correct trace, of the correct process, then it looks like OpenVPN is hanging immediately on opening the tap device.

RE: Openvpn tap uses 99% cpu time

2007-03-15 Thread Emile Coetzee
>Still no diagnostic info I'm afraid. What is needed is for the problem to be reproduced, with the openvpn process which is spinning under ktrace. You might need to hack your script to do this i.e. run openvpn directly from ktrace. Let it run for a bit, let it spin, then kill it. Check that you

RE: Openvpn tap uses 99% cpu time

2007-03-15 Thread Emile Coetzee
Emile Coetzee wrote: > No worries below is the last part of the first ktrace. I have dropped a full > copy on our webserver: http://www.clarotech.co.za/dump/openvpn.txt > Hi, >Still no diagnostic info I'm afraid. What is needed is for the problem to be reproduced, with the openvpn process whic

Re: Openvpn tap uses 99% cpu time

2007-03-15 Thread Bruce M. Simpson
Emile Coetzee wrote: No worries below is the last part of the first ktrace. I have dropped a full copy on our webserver: http://www.clarotech.co.za/dump/openvpn.txt Hi, Still no diagnostic info I'm afraid. What is needed is for the problem to be reproduced, with the openvpn process which is

Re: Openvpn tap uses 99% cpu time

2007-03-15 Thread Emile Coetzee
> > I then ran > > ktrace -p 1083 -f openvpn2.dump > > This produced no data at all. > >Shouldn't. :-) You need to run ktrace then kdump to dump the trace.< I figured that part out on my own thanks ;) The second file is 0kb in size running a kdump on it produces no output. >Correlate the cp

Re: Openvpn tap uses 99% cpu time

2007-03-15 Thread Bruce M. Simpson
Emile Coetzee wrote: I then ran ktrace -p 1083 -f openvpn2.dump This produced no data at all. Shouldn't. :-) You need to run ktrace then kdump to dump the trace. Correlate the cpu spin with the wallclock time in the kdump output, and paste an excerpt of what you get -- it sounds like

Re: Openvpn tap uses 99% cpu time

2007-03-15 Thread Emile Coetzee
Hi Bruce I have run a ktrace as you suggested I put the following in a script /usr/local/sbin/openvpn --daemon --config /usr/local/etc/openvpn/tapserver.conf and called it tapserver.sh and then used ktrace -d -f openvpn.dump ./tapserver.sh This captured all the information for the parent

Re: Openvpn tap uses 99% cpu time

2007-03-15 Thread Bruce M. Simpson
Emile Coetzee wrote: I have done some more investigation. Rolling back to RELENG_6_2 solves the problem. I have now had this problem on 3 boxes in 2 days and have been able to reproduce it on a 4th in our lab. Starting openvpn with full debug it stops just before the point where the TAP devices

Re: Openvpn tap uses 99% cpu time

2007-03-14 Thread Emile Coetzee
I have done some more investigation. Rolling back to RELENG_6_2 solves the problem. I have now had this problem on 3 boxes in 2 days and have been able to reproduce it on a 4th in our lab. Starting openvpn with full debug it stops just before the point where the TAP devices gets initiated. And the

Re: Openvpn tap uses 99% cpu time

2007-03-14 Thread Luigi Rizzo
On Wed, Mar 14, 2007 at 03:48:38PM +0200, Vlad GALU wrote: > On 3/14/07, Emile Coetzee <[EMAIL PROTECTED]> wrote: > > Since the latest updates to sys/net/if_tap.c (I suspect) in 6.2-STABLE > > my openvpn tap server is using up all available CPU time (99%) > > effectively killing the box. ... >I

Re: Openvpn tap uses 99% cpu time

2007-03-14 Thread Jeremy Chadwick
On Wed, Mar 14, 2007 at 03:11:58PM +0200, Emile Coetzee wrote: > Since the latest updates to sys/net/if_tap.c (I suspect) in 6.2-STABLE > my openvpn tap server is using up all available CPU time (99%) > effectively killing the box. > > I replicated this on a second machine which was about 3 weeks

Re: Openvpn tap uses 99% cpu time

2007-03-14 Thread Vlad GALU
On 3/14/07, Emile Coetzee <[EMAIL PROTECTED]> wrote: Since the latest updates to sys/net/if_tap.c (I suspect) in 6.2-STABLE my openvpn tap server is using up all available CPU time (99%) effectively killing the box. I replicated this on a second machine which was about 3 weeks behind with a cvsu