From owner-freebsd-stable@FreeBSD.ORG Thu Mar 15 10:13:37 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 BC14916A401 for ; Thu, 15 Mar 2007 10:13:37 +0000 (UTC) (envelope-from freebsd-stable@clarotech.co.za) Received: from proxy.clarotech.co.za (proxy.clarotech.co.za [196.211.62.90]) by mx1.freebsd.org (Postfix) with ESMTP id 74DA513C43E for ; Thu, 15 Mar 2007 10:13:34 +0000 (UTC) (envelope-from freebsd-stable@clarotech.co.za) X-Virus-Scanned: amavisd-new at clarotech.co.za Received: from B52 (b52.clarotech.co.za [192.168.250.126]) by proxy.clarotech.co.za (8.13.8/8.13.8) with ESMTP id l2FADPh1085949 for ; Thu, 15 Mar 2007 12:13:25 +0200 (SAST) (envelope-from freebsd-stable@clarotech.co.za) From: "Emile Coetzee" To: Date: Thu, 15 Mar 2007 12:13:25 +0200 Message-ID: <000601c766ea$91e51b80$7efaa8c0@clarotech.co.za> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acdm6pGf2wnN+aYrQwG9aINKs8Dg1g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Openvpn tap uses 99% cpu time X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: emilec@clarotech.co.za List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 10:13:37 -0000 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 PID 1082 I then watched top in a second session and identified the PID (1083) of the openvpn process that was using up the CPU time. I then ran ktrace -p 1083 -f openvpn2.dump This produced no data at all. The dump is fairly large so I have dropped it here: http://pastebin.com/899318 If required/allowed I can post it to the list. Regards Emile