From owner-freebsd-current@FreeBSD.ORG Sun Jun 13 21:07:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64A8D16A4D0 for ; Sun, 13 Jun 2004 21:07:30 +0000 (GMT) Received: from cmsrelay01.mx.net (cmsrelay01.mx.net [165.212.11.110]) by mx1.FreeBSD.org (Postfix) with SMTP id 138C543D31 for ; Sun, 13 Jun 2004 21:07:30 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from uadvg128.cms.usa.net (165.212.11.128) by cmsoutbound.mx.net with SMTP; 13 Jun 2004 21:07:22 -0000 Received: from optimator.noacks.org [70.240.243.152] by uadvg128.cms.usa.net (ASMTP/noackjr@usa.net) via mtad (C8.MAIN.3.13N) with ESMTP id 747iFmVHs0051M28; Sun, 13 Jun 2004 21:07:18 GMT X-USANET-Auth: 70.240.243.152 AUTH noackjr@usa.net optimator.noacks.org Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 033916175; Sun, 13 Jun 2004 16:07:16 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06015-04; Sun, 13 Jun 2004 16:07:14 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id D72576153; Sun, 13 Jun 2004 16:07:13 -0500 (CDT) Received: from [127.0.0.1] (localhost.noacks.org [127.0.0.1]) by compgeek.noacks.org (8.12.11/8.12.11) with ESMTP id i5DL7DDT004218; Sun, 13 Jun 2004 16:07:13 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <40CCC201.6080804@alumni.rice.edu> Date: Sun, 13 Jun 2004 16:07:13 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 0.6 (X11/20040531) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ruslan Ermilov References: <40CC97E0.5010003@alumni.rice.edu> <20040613181315.GB54104@ip.net.ua> In-Reply-To: <20040613181315.GB54104@ip.net.ua> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: Magnus Carlebj?rk cc: freebsd-current@FreeBSD.org cc: luigi@iet.unipi.it Subject: Re: Device polling X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2004 21:07:30 -0000 On 06/13/04 13:13, Ruslan Ermilov wrote: > On Sun, Jun 13, 2004 at 01:07:28PM -0500, Jon Noack wrote: >> I just tested this on my SMP all-in-one home server (Web, Mail, >> NFS, Samba, Squid, etc.). It's been up for over 24 hours with no >> apparent issues. The machine is used pretty heavily, with NFS >> mounted home directories and CVS mirror (see below) -- a CVS update >> of the src tree over NFS has done a good job of breaking fragile >> setups in the past. Everything seemed OK. That said, peak >> performance (as tested by iperf) took a nosedive: with 32-bit em >> adapters (gige), tcp bandwidth dropped from over 360Mbps to around >> 200 Mbps. If anyone has any suggestions for more in-depth testing, >> I'd be willing to try them. If I have the time I may also try the >> latest netperf patch and see how that affects things. > > What are your operational polling(4) parameters? What the HZ is set > to? HZ=1000 and I was using the defaults for polling. Bumping up burst_max to 300 results in slightly better peak performance at 220 Mbps. polling(4) says burst_max=150 is good for HZ=1000 and 100 Mbit networks; are there any recommendations (for burst_max or in general) for 1 Gbit networks? $ sysctl kern.polling kern.polling.burst: 150 kern.polling.each_burst: 5 kern.polling.burst_max: 150 kern.polling.idle_poll: 0 kern.polling.poll_in_trap: 0 kern.polling.user_frac: 50 kern.polling.reg_frac: 20 kern.polling.short_ticks: 2000 kern.polling.lost_polls: 403164 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: 365727 kern.polling.stalled: 0 kern.polling.idlepoll_sleeping: 1 Jon