From owner-freebsd-stable@FreeBSD.ORG Fri Mar 16 12:02:00 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CCE5416A50F for ; Fri, 16 Mar 2007 12:02:00 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id 905EE13C48C for ; Fri, 16 Mar 2007 12:02:00 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id A7EB11F9101; Fri, 16 Mar 2007 08:01:59 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Fri, 16 Mar 2007 08:01:59 -0400 X-Sasl-enc: 76gIZGXO4xLfnMlFjh5EwYpo5mk/P066Ul8GrV3RnjKh 1174046520 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 2E1E3B656; Fri, 16 Mar 2007 08:01:59 -0400 (EDT) Message-ID: <45FA8735.80608@FreeBSD.org> Date: Fri, 16 Mar 2007 12:01:57 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: emilec@clarotech.co.za References: <001101c76707$6e796530$7efaa8c0@clarotech.co.za> <45F94FA8.5020403@FreeBSD.org> <001901c76713$1b46e8e0$7efaa8c0@clarotech.co.za> In-Reply-To: <001901c76713$1b46e8e0$7efaa8c0@clarotech.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Openvpn tap uses 99% cpu time X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 12:02:01 -0000 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. In a quick look at the code, nothing jumps out at me which is out of the ordinary about the locking during clone and open. It would have been useful to have the ps output to correlate with in case the process was spinning trying to acquire a spin lock, which would show up in the WCHAN field. One thing that does jump out at me is the use of the persist-tun keyword. Can you try removing the use of this keyword? It is something I've never had to use with OpenVPN. To the best of my knowledge there have been no other reports of this problem on FreeBSD. I'm sorry there is just very little hard information to go on here at the moment.