From owner-freebsd-performance@FreeBSD.ORG Wed Dec 5 01:01:38 2007 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 0356616A419 for ; Wed, 5 Dec 2007 01:01:38 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 987DC13C447 for ; Wed, 5 Dec 2007 01:01:37 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from working (c-71-60-127-199.hsd1.pa.comcast.net [71.60.127.199]) (AUTH: LOGIN wmoran, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 04 Dec 2007 19:51:32 -0500 id 0005642D.4755F614.00006B2C Date: Tue, 4 Dec 2007 19:51:31 -0500 From: Bill Moran To: Philipp Wuensche Message-Id: <20071204195131.56cb1307.wmoran@collaborativefusion.com> In-Reply-To: <4755ED57.6030603@h3q.com> References: <4755ED57.6030603@h3q.com> Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-performance@freebsd.org" Subject: Re: tuning for high connection rates 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: Wed, 05 Dec 2007 01:01:38 -0000 Philipp Wuensche wrote: > > Hi, > > we are running a FreeBSD 7-BETA4 with SCHED_4BSD on a Intel Core2Dual > E6600 2.4GHz system for our bittorrent Opentracker. > > The system handles about 20Kpps (18Mbit/s) incoming and 15kpps (22 > Mbit/s) outgoing traffic serving 4000 connections/sec using TCP. The > connections are very short-living, all answered within one packet. > > You can find the system stats at > http://outpost.h3q.com/stalker/munin/opentracker/opentracker.html > > We are now running into some limits at peak time, system is up to 100% > and em0 takes about 80% on one CPU while the Opentracker software only > takes 10-15% CPU. The system is still responsible and answers all the > requests, but we are worried what will happen if the tracker grows at > the current rate. > > Currently we are out of ideas for tuning, so we kindly ask for ideas on > tuning the system to bring down the CPU usage from the em and the system > CPU usage. We tried tuning the em int_delay and abs_int_delay but > without success. Enable polling on the interface and see if that helps. See man polling. -- Bill Moran Collaborative Fusion Inc. wmoran@collaborativefusion.com Phone: 412-422-3463x4023