From owner-freebsd-questions@FreeBSD.ORG Thu Nov 11 23:33:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA36B1065675 for ; Thu, 11 Nov 2010 23:33:30 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1B96A8FC25 for ; Thu, 11 Nov 2010 23:33:29 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGgdz-0002sa-Vn for freebsd-questions@freebsd.org; Fri, 12 Nov 2010 00:33:27 +0100 Received: from cpe-188-129-96-31.dynamic.amis.hr ([188.129.96.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2010 00:33:27 +0100 Received: from ivoras by cpe-188-129-96-31.dynamic.amis.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2010 00:33:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Fri, 12 Nov 2010 00:33:14 +0100 Lines: 68 Message-ID: References: <4910622844.20101111212049@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-188-129-96-31.dynamic.amis.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <4910622844.20101111212049@yandex.ru> X-Mailman-Approved-At: Thu, 11 Nov 2010 23:43:39 +0000 Subject: Re: How to obtain what swi1:net is doing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2010 23:33:30 -0000 On 11/11/10 20:20, =D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2 =D0=95=D0=B2= =D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 wrote: > Hi, all "How to obtain what swi1:net is doing?" The short answer is: depending on what your network card is, it could be = everything related to TCP/IP-level processing. In your case, you are doing a lot of work in netgraph and dummynet,=20 probably shaping, but have high dummynet usage which probably means its=20 handling the lower level of network IO, probably with a high packet rate.= You might try including the following loader.conf tunables: net.isr.direct_force=3D0 net.isr.maxthreads=3D2 =2E.. and report if it helps you. (but be careful: here you must measure = real-world performance not CPU usage!) > last pid: 65736; load averages: 3.54, 4.46, 3.92 up 4+07:51:26 = 21:19:08 > 215 processes: 8 running, 195 sleeping, 12 waiting > CPU 0: 2.9% user, 0.0% nice, 42.9% system, 11.4% interrupt, 42.9% idl= e > CPU 1: 0.0% user, 0.0% nice, 54.3% system, 17.1% interrupt, 28.6% idl= e > CPU 2: 2.9% user, 0.0% nice, 57.1% system, 5.7% interrupt, 34.3% idl= e > CPU 3: 0.0% user, 0.0% nice, 45.7% system, 17.1% interrupt, 37.1% idl= e > Mem: 502M Active, 87M Inact, 324M Wired, 24M Cache, 112M Buf, 1053M Fre= e > Swap: 20G Total, 72K Used, 20G Free > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND= > 15 root -44 - 0K 8K CPU1 3 31.4H 71.39% swi1: n= et > 35 root -68 - 0K 8K CPU0 0 21.7H 50.20% dummyne= t > 14 root 171 ki31 0K 8K RUN 0 74.8H 42.87% idle: c= pu0 > 11 root 171 ki31 0K 8K CPU3 3 78.4H 31.79% idle: c= pu3 > 13 root 171 ki31 0K 8K RUN 1 80.3H 29.69% idle: c= pu1 > 12 root 171 ki31 0K 8K RUN 2 76.9H 23.49% idle: c= pu2 > 1698 root -68 - 0K 8K sleep 2 312:30 15.38% ng_queu= e0 > 1700 root -68 - 0K 8K sleep 3 313:02 15.09% ng_queu= e2 > 1699 root -68 - 0K 8K sleep 2 314:18 14.89% ng_queu= e1 > 1701 root -68 - 0K 8K sleep 1 312:54 14.06% ng_queu= e3 > 63829 www 50 0 185M 123M select 0 0:47 4.05% httpd > 59213 root 96 0 400M 61940K CPU3 2 32:24 2.98% rtorrent= > 16 root -32 - 0K 8K WAIT 2 129:41 0.39% swi4: c= lock sio