From owner-freebsd-net@FreeBSD.ORG Thu Aug 11 02:26:06 2005 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 5CF1F16A41F for ; Thu, 11 Aug 2005 02:26:06 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 53EA343D49 for ; Thu, 11 Aug 2005 02:26:05 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 64696 invoked by uid 89); 11 Aug 2005 02:26:01 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Thu, 11 Aug 2005 12:26:00 +1000 (EST) References: In-Reply-To: To: freebsd-net@freebsd.org Date: Thu, 11 Aug 2005 12:25:59 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit From: Dave+Seddon Message-ID: <1123727160.64678.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Subject: Re: Why Ierrs is so high? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 02:26:06 -0000 Greetings, Yeah I'd say there is something funny also. I've stuffed around with HZ and polling settings heaps and could only manage about 120MB/s-ish of HTTP traffic. I'm as running 5.4-stable from about 2-3 weeks ago. /etc/sysctl.conf kern.polling.enable=1 kern.polling.each_burst=50 #need to edit /usr/src/sys/kern/kern_poll.c for set this kern.polling.burst_max=1500 #DO NOT SET THIS HIGHER THAN 65536 * 2 (FREEBSD BUG) net.inet.tcp.sendspace=131072 net.inet.tcp.recvspace=131072 kern.random.sys.harvest.ethernet=0 kern.random.sys.harvest.interrupt=0 kern.ipc.somaxconn=1024 I still get lots of kern.polling.lost_polls and kern.polling.suspect. How do you edit the RXD is 256, TXD is 256? How do you view the errors when you set "sysctl hw.em0.stats=1"? Regards, Dave Mao Shou Yan writes: > Hi, all, > > I have a machine with 3 Intel pro1000 cards. > > em0 is in promisc mode, whose MAC controller is 82543 using fiber line > connected. > > em1, em2 is not connected with cable. > > Driver configuration is the default, RXD is 256, TXD is 256. > > > > Result of "netstat -i": > > > > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll > em0 1500 00:03:47:de:72:36 1701943600 369823630 1 0 0 > em1 1500 00:10:dc:56:8b:b5 5561 0 4608 0 0 > em2 1500 00:03:47:42:6d:17 0 0 0 0 0 > > > > Pps of em0 is about 20k/pps, and bandwidth is no more than 150Mbps. > > When I use "sysctl hw.em0.stats=1", I found the number of "missed > packets" is very high, which is about equal Ierrs. > > And I also found the number of"receive with no buffers"is raising with > about 10 per second. > > > > The machine is no extra load, only a raw system with em0 in promisc > mode! > > > > I'm looking forward your help! > > _______________________________________________ > 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"