From owner-freebsd-performance@FreeBSD.ORG Sat Dec 26 15:41:41 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F4100106568D for ; Sat, 26 Dec 2009 15:41:40 +0000 (UTC) (envelope-from tvtubeblog@gmail.com) Received: from mail-pz0-f178.google.com (mail-pz0-f178.google.com [209.85.222.178]) by mx1.freebsd.org (Postfix) with ESMTP id CC6638FC14 for ; Sat, 26 Dec 2009 15:41:40 +0000 (UTC) Received: by pzk8 with SMTP id 8so1537691pzk.8 for ; Sat, 26 Dec 2009 07:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=BH3vj3MPXV5Fc8VvjYEliyv9K+cVK3yctW/BYSIN6Io=; b=pWHQf95LThXETtpoDpkWZNiSpTxzdo87Q5iWi+Qk/Ao/Tgxo9f+Yt6LDMhge58Gv7T xFoiuxVAJd9Hs77HXrnNqXmuY6GAS8o2YkyywNtZgE7OL4zvmu3L0BJH4rfgcv8chKu7 LOgcoMfDOVVSvB391Uipbc9hcz8dBXD/OOrSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tkOjVn5uJOUJ4mIlQQUi+7wsWBCfV6xWV22I0J61ib0iJ3+QrxKBM+TdRrj8HyfGkr BZmX0gYQ/gRIhUZGFYy2a0CxjkImt56L0/U8u0zjWX9ii02K1ssEOa56YpN3KoR3V8n0 /I4ZJsyklM2urUf7HJU3doxnWzfmNBv5BQkTA= MIME-Version: 1.0 Received: by 10.143.21.35 with SMTP id y35mr3339472wfi.210.1261840673179; Sat, 26 Dec 2009 07:17:53 -0800 (PST) Date: Sat, 26 Dec 2009 20:17:53 +0500 Message-ID: <8c7234990912260717r2da3f231ne0b07f573fa889b5@mail.gmail.com> From: tvtube blog To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Strange Freebsd Router Problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 15:41:41 -0000 Dear All, Now a days I getting a Problem with my 4.11 FreeBSD Router with 3 Gigabits (bge) Broadcom Ethernet Cards, It was working fine and uses to pass more then 200 Mbits/s Internet Traffic but now a day not passing more then 90Mbits/s. Even All cards are have Giga Connectivity. I am using ipfw + dummynet for bandwidth Shaping. Now what I got using TOP command is very high *81.3% interrupt.* 17 processes: 1 running, 16 sleeping *CPU states: 0.0% user, 0.0% nice, 0.0% system, 81.3% interrupt, 18.8% idle* Mem: 6016K Active, 6944K Inact, 48M Wired, 32K Cache, 5888K Buf, 1939M Free Swap: 240M Total, 240M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 932 root 28 0 1916K 1212K RUN 0:00 1.61% 0.29% top 847 root 2 0 5740K 4432K select 0:02 0.00% 0.00% snmpd 877 root 2 0 5300K 2292K select 0:01 0.00% 0.00% sshd 880 root 18 0 1328K 980K pause 0:00 0.00% 0.00% csh 824 root 2 0 2600K 1948K select 0:00 0.00% 0.00% sshd 813 root 2 0 992K 728K select 0:00 0.00% 0.00% syslogd 870 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 822 root 10 0 1036K 800K nanslp 0:00 0.00% 0.00% cron 872 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 871 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 869 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 873 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 866 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 867 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 868 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty 820 root 2 0 1052K 644K select 0:00 0.00% 0.00% inetd 29 root 18 0 212K 96K pause 0:00 0.00% 0.00% adjkerntz ######### netstat -m show every thing good. alpha4# netstat -m 2736/3872/262000 mbufs in use (current/peak/max): 2736 mbufs allocated to data 2734/3862/65500 mbuf clusters in use (current/peak/max) 8692 Kbytes allocated to network (4% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines ### vmstat -z Shows evey thing is good ITEM SIZE LIMIT USED FREE REQUESTS PIPE: 160, 0, 10, 92, 130 SWAPMETA: 160, 233016, 0, 0, 0 unpcb: 160, 0, 1, 49, 21 ripcb: 192, 65500, 0, 42, 685 divcb: 192, 65500, 0, 0, 0 syncache: 160, 15359, 0, 25, 1 tcpcb: 576, 65500, 4, 10, 4 udpcb: 192, 65500, 3, 39, 30 socket: 224, 65500, 8, 28, 773 KNOTE: 64, 0, 0, 128, 3 DIRHASH: 1024, 0, 30, 6, 30 NFSNODE: 352, 0, 0, 0, 0 NFSMOUNT: 544, 0, 0, 0, 0 VNODE: 192, 0, 1128, 38, 1128 NAMEI: 1024, 0, 0, 16, 14184 VMSPACE: 192, 0, 18, 46, 926 PROC: 416, 0, 29, 20, 942 DP fakepg: 64, 0, 0, 0, 0 PV ENTRY: 28, 2276416, 11662, 510146, 200115 MAP ENTRY: 48, 0, 381, 172, 29674 KMAP ENTRY: 48, 57551, 87, 126, 3393 MAP: 108, 0, 7, 3, 7 VM OBJECT: 92, 0, 551, 101, 13873 Please advice me what to do or how to decrease this *81.3% interrupt. Thanks in advance. TheOne KHan * From owner-freebsd-performance@FreeBSD.ORG Sat Dec 26 21:12:45 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70E19106566B for ; Sat, 26 Dec 2009 21:12:45 +0000 (UTC) (envelope-from tvtubeblog@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 466A98FC0C for ; Sat, 26 Dec 2009 21:12:45 +0000 (UTC) Received: by pwi15 with SMTP id 15so6301403pwi.3 for ; Sat, 26 Dec 2009 13:12:44 -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=jz8L/xrDjRDxJkuDiUbMn2FzfJ6au+8j3to1xJMQ2fc=; b=xYu9J8+1lQl8Jrx68A7i2lk449w1J4aBO0xlhdv5dCmQgeZfckZQ5yaFeNxzjMri19 0EbIBaRVcRyAjPbjNrAgJuncnUiBoZyJj7TZ5ofh8/oUmS9Dw0Yr5lfzzu9BYIgUcBQB 47gVb8+9yXHwMfY4C2nrDl18CKZymCkZ+Htgk= 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=WbgiLQdbN+W9d1tILpJIvQR4MjJBuFa6cfHqptn17F50PHY3HgQltqsWTNkr+IOVaj hP+U0HQs981iEQR5EyDEP0zOF+U1lEeu3jw0ObAOqX8v0pLpNSia7cah9XO8Yw5Y/hm1 TSWHsvU4RT4bylr/cpq9jOSfuQdF41rrxzqZI= MIME-Version: 1.0 Received: by 10.142.6.11 with SMTP id 11mr9358749wff.79.1261861964795; Sat, 26 Dec 2009 13:12:44 -0800 (PST) In-Reply-To: <422791705.20091226211859@starnet.cz> References: <8c7234990912260717r2da3f231ne0b07f573fa889b5@mail.gmail.com> <422791705.20091226211859@starnet.cz> Date: Sun, 27 Dec 2009 02:12:44 +0500 Message-ID: <8c7234990912261312q3a3fe28bo2e72c01ecec76c9d@mail.gmail.com> From: tvtube blog To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Strange Freebsd Router Problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 21:12:45 -0000 sorry I forget to mention that we use this router only for out going traffic ( that is upload ) .. Thanks every one for advice it will try then post it here. TheOne Khan 2009/12/27 Bc. Radek Krejca > Hi, > > try polling - man polling > > > -- > S pozdravem, > Bc. Radek Krejca > ICQ: 65895541 > > From owner-freebsd-performance@FreeBSD.ORG Sat Dec 26 22:37:33 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60AA6106568F for ; Sat, 26 Dec 2009 22:37:33 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outQ.internet-mail-service.net (outq.internet-mail-service.net [216.240.47.240]) by mx1.freebsd.org (Postfix) with ESMTP id 45D8C8FC12 for ; Sat, 26 Dec 2009 22:37:33 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id F10C6A1EA7; Sat, 26 Dec 2009 14:37:32 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 73C662D6017; Sat, 26 Dec 2009 14:37:32 -0800 (PST) Message-ID: <4B36902C.6010302@elischer.org> Date: Sat, 26 Dec 2009 14:37:32 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: tvtube blog References: <8c7234990912260717r2da3f231ne0b07f573fa889b5@mail.gmail.com> In-Reply-To: <8c7234990912260717r2da3f231ne0b07f573fa889b5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: Strange Freebsd Router Problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 22:37:33 -0000 tvtube blog wrote: > Dear All, > > Now a days I getting a Problem with my 4.11 FreeBSD Router with 3 Gigabits > (bge) Broadcom Ethernet Cards, It was working fine and uses to pass more > then 200 Mbits/s Internet Traffic but now a day not passing more then > 90Mbits/s. Even All cards are have Giga Connectivity. > > I am using ipfw + dummynet for bandwidth Shaping. > > Now what I got using TOP command is very high *81.3% interrupt.* > > 17 processes: 1 running, 16 sleeping > *CPU states: 0.0% user, 0.0% nice, 0.0% system, 81.3% interrupt, 18.8% > idle* > Mem: 6016K Active, 6944K Inact, 48M Wired, 32K Cache, 5888K Buf, 1939M Free > Swap: 240M Total, 240M Free > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 932 root 28 0 1916K 1212K RUN 0:00 1.61% 0.29% top > 847 root 2 0 5740K 4432K select 0:02 0.00% 0.00% snmpd > 877 root 2 0 5300K 2292K select 0:01 0.00% 0.00% sshd > 880 root 18 0 1328K 980K pause 0:00 0.00% 0.00% csh > 824 root 2 0 2600K 1948K select 0:00 0.00% 0.00% sshd > 813 root 2 0 992K 728K select 0:00 0.00% 0.00% syslogd > 870 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 822 root 10 0 1036K 800K nanslp 0:00 0.00% 0.00% cron > 872 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 871 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 869 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 873 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 866 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 867 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 868 root 3 0 960K 608K ttyin 0:00 0.00% 0.00% getty > 820 root 2 0 1052K 644K select 0:00 0.00% 0.00% inetd > 29 root 18 0 212K 96K pause 0:00 0.00% 0.00% adjkerntz > > ######### netstat -m show every thing good. > > alpha4# netstat -m > 2736/3872/262000 mbufs in use (current/peak/max): > 2736 mbufs allocated to data > 2734/3862/65500 mbuf clusters in use (current/peak/max) > 8692 Kbytes allocated to network (4% of mb_map in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > ### vmstat -z Shows evey thing is good > > ITEM SIZE LIMIT USED FREE REQUESTS > > PIPE: 160, 0, 10, 92, 130 > SWAPMETA: 160, 233016, 0, 0, 0 > unpcb: 160, 0, 1, 49, 21 > ripcb: 192, 65500, 0, 42, 685 > divcb: 192, 65500, 0, 0, 0 > syncache: 160, 15359, 0, 25, 1 > tcpcb: 576, 65500, 4, 10, 4 > udpcb: 192, 65500, 3, 39, 30 > socket: 224, 65500, 8, 28, 773 > KNOTE: 64, 0, 0, 128, 3 > DIRHASH: 1024, 0, 30, 6, 30 > NFSNODE: 352, 0, 0, 0, 0 > NFSMOUNT: 544, 0, 0, 0, 0 > VNODE: 192, 0, 1128, 38, 1128 > NAMEI: 1024, 0, 0, 16, 14184 > VMSPACE: 192, 0, 18, 46, 926 > PROC: 416, 0, 29, 20, 942 > DP fakepg: 64, 0, 0, 0, 0 > PV ENTRY: 28, 2276416, 11662, 510146, 200115 > MAP ENTRY: 48, 0, 381, 172, 29674 > KMAP ENTRY: 48, 57551, 87, 126, 3393 > MAP: 108, 0, 7, 3, 7 > VM OBJECT: 92, 0, 551, 101, 13873 > > > Please advice me what to do or how to decrease this *81.3% interrupt. > > Thanks in advance. It sounds as if the nature of the traffic has changed. maybe the average packet size has shrunk. I presume that the software has not changed for a long time because 4.11, thougha wonderful release, is ANCIENT. :-) have you tried profiling the traffic. You could use ipfw to count packets by size (see the iplen parameter) or you could use trafshow or wireshark. > > TheOne KHan > > * > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"