From owner-freebsd-net@FreeBSD.ORG Mon Jul 26 17:03:29 2004 Return-Path: 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 84DCC16A533 for ; Mon, 26 Jul 2004 17:03:29 +0000 (GMT) Received: from mx01.bos.ma.towardex.com (mx01.bos.ma.towardex.com [65.124.16.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F20743D79 for ; Mon, 26 Jul 2004 17:03:29 +0000 (GMT) (envelope-from haesu@mx01.bos.ma.towardex.com) Received: by mx01.bos.ma.towardex.com (TowardEX ESMTP 3.0p11_DAKN, from userid 1001) id 088842F933; Mon, 26 Jul 2004 13:02:58 -0400 (EDT) Date: Mon, 26 Jul 2004 13:02:58 -0400 From: James To: Don Bowman Message-ID: <20040726170257.GA75739@scylla.towardex.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org Subject: Re: device polling takes more CPU hits?? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 17:03:29 -0000 Hi Don, > That's a pretty high HZ, here's what i have: > kern.clockrate: { hz = 2500, tick = 400, tickadj = 1, profhz = 1024, stathz > = 128 } Hmm... I'll try setting it to 2500 later this week during maint. window for customers behind that box. It's weird b/c I have another box with devpolling that has 4000 as its HZ and has no problems. Thanks, -J > I have the same box spec as you, only with em (bge doesn't > support polling, but it has its own interrupt coalescer that works... > you can tune that in the if_bge.h I think, there's some comments). > I'm doing ~800Kpps with polling. My polling params are below. > > root@r2.bos# sysctl kern.polling > > kern.polling.burst: 150 > > kern.polling.each_burst: 5 > > kern.polling.burst_max: 150 > > kern.polling.idle_poll: 1 > > kern.polling.poll_in_trap: 1 > > kern.polling.user_frac: 50 > > kern.polling.reg_frac: 20 > > kern.polling.short_ticks: 4909 > > kern.polling.lost_polls: 11464 > > kern.polling.pending_polls: 0 > > kern.polling.residual_burst: 0 > > kern.polling.handlers: 1 > > kern.polling.enable: 1 > > kern.polling.phase: 0 > > kern.polling.suspect: 10249 > > kern.polling.stalled: 3 > > > > root@r2.bos# sysctl machdep.cpu_idle_hlt > > machdep.cpu_idle_hlt: 1 > > > > kern.polling.burst: 1000 > kern.polling.each_burst: 80 > kern.polling.burst_max: 1000 > kern.polling.idle_poll: 1 > kern.polling.poll_in_trap: 0 > kern.polling.user_frac: 5 > kern.polling.reg_frac: 120 > kern.polling.short_ticks: 29 > kern.polling.lost_polls: 55004 > kern.polling.pending_polls: 0 > kern.polling.residual_burst: 0 > kern.polling.handlers: 4 > kern.polling.enable: 1 > kern.polling.phase: 0 > kern.polling.suspect: 50690 > kern.polling.stalled: 25 > _______________________________________________ > 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" -- James Jun TowardEX Technologies, Inc. Technical Lead Network Design, Consulting, IT Outsourcing james@towardex.com Boston-based Colocation & Bandwidth Services cell: 1(978)-394-2867 web: http://www.towardex.com , noc: www.twdx.net