From owner-freebsd-net@FreeBSD.ORG Wed Apr 26 17:47:23 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F01E16A401 for ; Wed, 26 Apr 2006 17:47:23 +0000 (UTC) (envelope-from mihai@duras.ro) Received: from mail.duras.ro (mail.duras.ro [86.105.56.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7707143D53 for ; Wed, 26 Apr 2006 17:47:22 +0000 (GMT) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id DC129285BC; Wed, 26 Apr 2006 20:47:23 +0300 (EEST) Received: from mail.duras.ro ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25325-04; Wed, 26 Apr 2006 20:47:22 +0300 (EEST) Received: from sky.mediasat.ro (sky.mediasat.ro [193.231.169.23]) by mail.duras.ro (Postfix) with ESMTP id 9D84A285A1; Wed, 26 Apr 2006 20:47:22 +0300 (EEST) From: Mihai Tanasescu To: tpeixoto@widesoft.com.br In-Reply-To: <56286.200.230.201.250.1146067775.squirrel@www.widemail.com.br> References: <49594.200.230.201.250.1146063341.squirrel@www.widemail.com.br> <444F8E89.2050905@wildcard.net.uk> <56286.200.230.201.250.1146067775.squirrel@www.widemail.com.br> Content-Type: text/plain Date: Wed, 26 Apr 2006 20:46:30 +0300 Message-Id: <1146073590.1089.80.camel@sky.mediasat.ro> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (RedHat) at duras.ro Cc: Lee Johnston , freebsd-net@freebsd.org Subject: Re: Packet loss with traffic shaper and routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mihai@duras.ro List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 17:47:23 -0000 Then try commenting these out: #ifdef SMP #ifndef COMPILING_LINT #error DEVICE_POLLING is not compatible with SMP #endif #endif It should compile with both SMP and POLLING. On Wed, 2006-04-26 at 13:09 -0300, tpeixoto@widesoft.com.br wrote: > Hi Lee, > > I got excited, but... surprise! > > ../../../kern/kern_poll.c:46:2: #error DEVICE_POLLING is not compatible > with SMP > mkdep: compile failed > *** Error code 1 > > :( > > Thanks anyway! > > > > Hi, > > > > Try using device polling to reduce the number of interrupts. > > > > Add this to your kernel: > > options DEVICE_POLLING > > options HZ=1000 > > > > And set sysctl kern.polling.enable=1 > > > > Hope this helps, > > > > Regards, > > Lee. > > > > > > > > > > > > tpeixoto@widesoft.com.br wrote: > >> Hello all! > >> > >> We have a machine working as a router and bandwidth limiter for our > >> network. It routes the traffic through two 'bge' interfaces utilizing > >> only > >> public IPs. No NAT is used. We only have IPFW rules for traffic shaping > >> by > >> MAC addresses. > >> It works fine, but we have been experiencing high latency and packet > >> loss. > >> There is no other major services in this machine, cpu utilization is > >> low, > >> memory is fine, no disk activity, but load average is always around 1.5 > >> or > >> 2, even if I disable IPFW layer 2 filtering. > >> Network traffic is not greater than 12 Mbit/s. > >> > >> The system is a FreeBSD 5.4-RELEASE, running on a dual CPU: Intel(R) > >> Xeon(TM) CPU 3.06GHz (3051.47-MHz 686-class CPU) compiled with SMP > >> kernel: > >> cpu0 (BSP): APIC ID: 0 > >> cpu1 (AP): APIC ID: 1 > >> cpu2 (AP): APIC ID: 6 > >> cpu3 (AP): APIC ID: 7 > >> > >> > >> top output: > >> > >> last pid: 14039; load averages: 1.61, 1.62, 1.56 > >> 37 processes: 1 running, 35 sleeping, 1 zombie > >> CPU states: 0.0% user, 0.0% nice, 1.4% system, 30.8% interrupt, 67.8% > >> idle > >> Mem: 16M Active, 421M Inact, 149M Wired, 688K Cache, 112M Buf, 1417M > >> Free > >> Swap: 1024M Total, 1024M Free > >> > >> PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU > >> COMMAND > >> 6245 root 96 0 2672K 2236K select 2 3:48 0.00% 0.00% > >> dhcpd > >> 329 root 96 0 1328K 892K select 0 2:48 0.00% 0.00% > >> syslogd > >> 453 root 96 0 3384K 2508K select 2 0:33 0.00% 0.00% sshd > >> > >> > >> > >> > >> systat -iostat output: > >> > >> /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 > >> /10 > >> Load Average |||||||||| > >> > >> /0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100 > >> cpu user| > >> nice| > >> system| > >> interrupt|XXXXXXXXXXXXXXXXX > >> idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > >> > >> /0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100 > >> da0 MB/s > >> tps|X > >> pass0 MB/s > >> tps| > >> > >> > >> Can anyone give me some advice? > >> Thank you in advance! > >> > >> > >> _______________________________________________ > >> freebsd-net@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-net > >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >> > >> > >> > > > > > > -- > > ------------------------------------------------------------------------ > > Wildcard Internet - end-to-end internet solutions > > Lee Johnston - Wildcard Internet > > Tel: 0845 165 1510 > > Fax: 0845 165 1511 > > Email: lee@wildcard.net.uk > > Web: www.wildcard.net.uk > > > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"