Date: Fri, 12 Nov 2010 00:33:14 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: How to obtain what swi1:net is doing? Message-ID: <ibhufr$1gk$1@dough.gmane.org> In-Reply-To: <4910622844.20101111212049@yandex.ru> References: <4910622844.20101111212049@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ibhufr$1gk$1>