From owner-freebsd-isp@FreeBSD.ORG Tue Mar 31 11:48:36 2009 Return-Path: Delivered-To: isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96B7E106564A for ; Tue, 31 Mar 2009 11:48:36 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63905.mail.re1.yahoo.com (web63905.mail.re1.yahoo.com [69.147.97.120]) by mx1.freebsd.org (Postfix) with SMTP id 516758FC17 for ; Tue, 31 Mar 2009 11:48:36 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 91921 invoked by uid 60001); 31 Mar 2009 11:48:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238500115; bh=tsuuJOU1+oZCJRUdh30OYUqpJrZMYNgZTFMo+hqwuzk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=V+xrnJ0YcVDlTipaz7Ad+c8hdXO3aVz+mnlyt0Iel1Ynyah8Ig0Mg3lWk4PLG8gdX7YbbWawsGMtkkofouUPC6+eb8i2WYsJOgnZSHJQO5pCLQlb1wbyp9gHUME/0603eKx7jzElmk1mjERhmD8VZeDIwGLXAEcuBMePgAIV+nI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=htjaV74caNJebLBOegert+XXpvJ03mcHf+Na1mFbgtQYbJX/h5WrtqXT6xIgECqGapUUgvYwe/LPCv13+ynCmRpEYOmlvm/5L1Y0u83yR37Ejnp2f/rVTMKrCtgd+ykGlViVU1z/AF/XlTzmvahO8IfJtQ0T8wWc558LZgxFLaE=; Message-ID: <808603.91207.qm@web63905.mail.re1.yahoo.com> X-YMail-OSG: IezTwFcVM1mdwRKV5tw7UzArPDR.7ZFtHFaqnfbnjON6rmXMc7MRJxHMKgcVVKSl85oJR.i_CvJ2C7Er8jBBUnAyPElnWxdNDSHIFHgcQKGczS1_A5LAgmAgFxfWKjU2hGOXBPCHgq_.FhemKtfB1CVtd_7i_KfnHhfhFJkqD_asuoAOq9T76duDMD7waPO4FFMP428ZOHPnT6fLxPkRS.4shBtShw5WYxepSp.lD2eybDhRzPSN14Wg45P.HBINRGFa8pKqSjhHKtZWBHt3KGZskzTHmsOgismfV.E97dA3FxXyZfIzclXfDI1wQmsyT1MgvivwYLmJ94yq6Q8gSWd65G2u15QgNkYzsSQokQ-- Received: from [98.242.222.229] by web63905.mail.re1.yahoo.com via HTTP; Tue, 31 Mar 2009 04:48:35 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Tue, 31 Mar 2009 04:48:35 -0700 (PDT) From: Barney Cordoba To: Steve Bertrand In-Reply-To: <49D15AC3.7060607@ibctech.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: isp@freebsd.org Subject: Re: ISPs? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 11:48:37 -0000 --- On Mon, 3/30/09, Steve Bertrand wrote: > From: Steve Bertrand > Subject: Re: ISPs? > To: barney_cordoba@yahoo.com > Cc: isp@freebsd.org > Date: Monday, March 30, 2009, 7:50 PM > Barney Cordoba wrote: > >> From: Steve Bertrand > > >>>> In production, at 0.00% interrupt, > 686Mbps, <2% > >> load, 133Kpps. > >>> How many interfaces are you routing inbetween? > >> Currently: > >> > >> - 7 physical 'em' > >> - 6 loopback > >> - 1 discard > >> - 14 sub-ints off of the em devices > >> > > > > Obviously those load numbers are either incorrect or > > you're leaving something out. What version of the > > OS are you running? How many cores? What are the > values > > of your idle threads? > > Although the number of virtual interfaces has changed > slightly since my > original post: > > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.12-MHz > 686-class CPU) > Origin = "GenuineIntel" Id = 0xf65 Stepping = > 5 > Logical CPUs per core: 2 > real memory = 2139025408 (2039 MB) > avail memory = 2087784448 (1991 MB) > > router# cat /var/run/dmesg.boot | grep em > /var/run/dmesg.boot | grep Eth > em0: Ethernet address: 00:60:e0:42:b1:76 > em1: Ethernet address: 00:60:e0:42:b1:77 > em2: Ethernet address: 00:60:e0:42:b1:78 > em3: Ethernet address: 00:60:e0:42:b1:79 > em4: Ethernet address: 00:60:e0:42:b1:7a > em5: Ethernet address: 00:60:e0:42:b1:7b > em6: Ethernet address: 00:60:e0:42:b1:7c > > router# grep interface /usr/local/etc/quagga/*.conf > > zebra.conf:interface disc0 > zebra.conf:interface em0 > zebra.conf:interface em1 > zebra.conf:interface em1.10 > zebra.conf:interface em1.11 > zebra.conf:interface em1.99 > zebra.conf:interface em2 > zebra.conf:interface em2.98 > zebra.conf:interface em3 > zebra.conf:interface em3.300 > zebra.conf:interface em4 > zebra.conf:interface em5 > zebra.conf:interface em5.107 > zebra.conf:interface em5.162 > zebra.conf:interface em5.163 > zebra.conf:interface em5.164 > zebra.conf:interface em5.303 > zebra.conf:interface em6 > zebra.conf:interface gif0 > zebra.conf:interface gif1 > zebra.conf:interface lo0 > zebra.conf:interface lo1 > zebra.conf:interface lo2 > zebra.conf:interface lo3 > zebra.conf:interface lo6 > zebra.conf:interface lo10 > > I can reproduce the statistics tomorrow. Just tell me > exactly what > output from what commands you are interested in. uname would be useful, as you didn't mention what vers of FreeBSD you have. run 'top -S' in FreeBSD 7 or 'top -SH' in FreeBSD 8. Look at the cpu idle threads, and also "other" threads that may show significant usage. The numbers rarely add up as there are accounting issues. But FreeBSD 7 doesn't account for interrupt usage the same as previous versions. I never used 5 or 6 (mainly because they sucked) so I'm not sure when it changed. the em driver in 7 and 8 uses a newfangled concept of "interrupt filters" so you should see a queue task. But again, I'm not sure what version it was changed. Barney