From owner-freebsd-net@FreeBSD.ORG Wed Feb 18 12:45:42 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4DA11065670 for ; Wed, 18 Feb 2009 12:45:42 +0000 (UTC) (envelope-from sepron@gmail.com) Received: from mail-gx0-f224.google.com (mail-gx0-f224.google.com [209.85.217.224]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4C58FC14 for ; Wed, 18 Feb 2009 12:45:42 +0000 (UTC) (envelope-from sepron@gmail.com) Received: by gxk24 with SMTP id 24so6693123gxk.19 for ; Wed, 18 Feb 2009 04:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/WJ2GjOOYdwf4/k9ARxPqebRFZ4W4Skb8epp5WewYyA=; b=spytAwqmf+9oTEBK9GsRmkezGz4Qtm5TJd31iwbsCxtZ2NdGUppuaBmVy8SuYMEIM2 gtBVh6B1aGp3D4k7Jzkiphf2duKEAHWLdIrp51bp+c6TUSE+2Qbq8EYDf44KfWyoEQi1 Yb5L8mTz0l/CtrKW4WEu1TQp+wgmFAgbADIeE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AXKUwmeuQYWtMOBWq6XD0Fva3YpLuyY6oMoxcNj9gYmuV82Q799MASfKoz2DahWC9i XD7n8Kn+e+ZyOlfAr5sp4B4McjFeKDGXAPcxFeuz241rifiHeimBAYWNVUELuY6wpdIP OKDB9e0dZXXIZAU//tmdZBz05To7tP68ilJwY= MIME-Version: 1.0 Received: by 10.151.47.7 with SMTP id z7mr26391ybj.110.1234961141886; Wed, 18 Feb 2009 04:45:41 -0800 (PST) In-Reply-To: <000f01c990e0$a70c1230$f5243690$@net> References: <000f01c990e0$a70c1230$f5243690$@net> Date: Wed, 18 Feb 2009 15:45:41 +0300 Message-ID: From: Sergey Pronin To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Synopsis: process swi1:net gives 100% CPU usage. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 12:45:43 -0000 Good day. As I'm using mpd4 I have mpd.conf and mpd.links. There are lots of static ngs created. So I'll post just a pattern of my mpd.conf: pppoe_def: set bundle disable multilink set bundle disable round-robin set bundle enable noretry set ipcp dns X.X.X.X Y.Y.Y.Y set iface disable on-demand set iface disable proxy-arp set iface enable tcpmssfix set link keep-alive 3 12 # set link mtu 1300 # set link mru 1460 set link max-redial -1 set pppoe service "*" set pppoe enable incoming set link enable chap set link enable chap-md5 set link enable chap-msv1 set link enable chap-msv2 set link disable passive callback no-orig-auth check-magic log -chat -bund -fsm -pptp set iface up-script "/root/scripts/up-script.pl" set iface down-script "/root/scripts/down-script.pl" set ipcp disable vjcomp set auth disable internal set auth enable radius-auth set radius server Z.Z.Z.Z password 1812 1813 set radius timeout 10 set radius retries 3 #ngctl types There are 27 total types: Type name Number of living nodes --------- ---------------------- pppoe 144 socket 2222 iface 2077 hole 0 gif_demux 0 gif 0 frame_relay 0 ether 560 echo 0 cisco 0 vjc 3 tty 0 tee 0 tcpmss 233 bridge 0 rfc1490 0 pptpgre 0 bpf 0 ppp 2076 one2many 0 async 0 mppc 0 lmi 0 UI 0 l2tp 0 ksocket 0 ip_input 0 I've tried to compile the kernel with and without netgraph options. I haven't seen any benefit. swi1:net still uses 100% CPU. I have the same problem with netgraph on 7.1-RELEASE, mpd 5.2, AMD Phenom. > Dummynet, divert and pf > are disabled in the kernel. > > While swi1:net (aka netgraph) is using 100% of CPU time m_tag_locate() and > ng_iface_output() > are constantly called from the infinite loop. > > Sergey, could you provide the content of mpd.conf and the output of "ngctl > types". >