From owner-freebsd-performance@FreeBSD.ORG Fri Mar 9 14:04:30 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BEF1916A400 for ; Fri, 9 Mar 2007 14:04:30 +0000 (UTC) (envelope-from cryx-freebsd@h3q.com) Received: from mail.h3q.com (mail.h3q.com [217.13.206.148]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3BA13C4A5 for ; Fri, 9 Mar 2007 14:04:29 +0000 (UTC) (envelope-from cryx-freebsd@h3q.com) Received: (qmail 77990 invoked from network); 9 Mar 2007 14:04:28 -0000 Received: from unknown (HELO ?192.168.23.150?) (smtpsend@85.179.43.128) by mail.h3q.com with AES256-SHA encrypted SMTP; 9 Mar 2007 14:04:28 -0000 Message-ID: <45F1696C.30401@h3q.com> Date: Fri, 09 Mar 2007 15:04:28 +0100 From: Philipp Wuensche User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 2000req/sec with RTL8169 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: Fri, 09 Mar 2007 14:04:30 -0000 Hi, I administrate a FreeBSD 6-STABLE server with a RTL8169 network card which has 64k buffer for incoming packets. We get about 2000req/sec on our service which results in about 12-15k packets/sec in and out. Packets are about 100-600 bytes. After not using an SMP kernel (it locked up with interrupt) I get about 9-10k interrupts on the re0 interface which works okay until the point where the CPU will do something else (monitoring getting triggered for example) resulting in input errors etc. The service producing the traffic is not very CPU hungry. Seems like the system will not do much more using interrupt. I tried using polling enabled with HZ=1000 set in the kernel configuration but this leads to the system hanging after a while with pings coming through sometimes, so it seems it gets a lot of packetloss. Did the same with SMP enabled. Are there any sysctl setting or any hints which I could use to get polling to work? Unfortunally I don't have the choice to use a better network card and the server only has remote access :-/. greetings, philipp