From owner-freebsd-current@FreeBSD.ORG Sun Jun 13 18:08:41 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 188E916A4CE for ; Sun, 13 Jun 2004 18:08:41 +0000 (GMT) Received: from cmsrelay02.mx.net (cmsrelay02.mx.net [165.212.11.111]) by mx1.FreeBSD.org (Postfix) with SMTP id 9378D43D2D for ; Sun, 13 Jun 2004 18:08:40 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from uadvg137.cms.usa.net (165.212.11.137) by cmsoutbound.mx.net with SMTP; 13 Jun 2004 18:07:36 -0000 Received: from optimator.noacks.org [70.240.243.152] by uadvg137.cms.usa.net (ASMTP/noackjr@usa.net) via mtad (C8.MAIN.3.13N) with ESMTP id 083iFmsHh0005M37; Sun, 13 Jun 2004 18:07:33 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 352F56175; Sun, 13 Jun 2004 13:07:33 -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 05142-03; Sun, 13 Jun 2004 13:07:32 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 0B1206153; Sun, 13 Jun 2004 13:07:32 -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 i5DI7SaI003809; Sun, 13 Jun 2004 13:07:28 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <40CC97E0.5010003@alumni.rice.edu> Date: Sun, 13 Jun 2004 13:07:28 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 0.6 (X11/20040531) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Magnus_Carlebj=F6rk?= References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by amavisd-new at noacks.org Content-Transfer-Encoding: quoted-printable 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 18:08:41 -0000 On 06/11/04 03:05, Magnus Carlebj=F6rk wrote: > Hi. I have been using Luigi's polling code extensively i several multip= rocessor > systems for over a year now, and it works flawlessly and efficiently. N= icely > done Luigi! >=20 > In the beginning of /usr/src/sys/kern/kern_poll.c there are a few lines= thas > says that polling is incompatible with SMP. This is not true, polling I= S > compatible with SMP, it just does not utilize all of it's features. I just tested this on my SMP all-in-one home server (Web, Mail, NFS,=20 Samba, Squid, etc.). It's been up for over 24 hours with no apparent=20 issues. The machine is used pretty heavily, with NFS mounted home=20 directories and CVS mirror (see below) -- a CVS update of the src tree=20 over NFS has done a good job of breaking fragile setups in the past.=20 Everything seemed OK. That said, peak performance (as tested by iperf)=20 took a nosedive: with 32-bit em adapters (gige), tcp bandwidth dropped=20 from over 360Mbps to around 200 Mbps. If anyone has any suggestions for=20 more in-depth testing, I'd be willing to try them. If I have the time I=20 may also try the latest netperf patch and see how that affects things. > I'm getting tired of having the builkernel break everytime because of t= his > define in kern_poll.c. Would it be possible to change that so that is j= ust puts > a note in the syslog instead? Create an update script that automatically applies a patch after the=20 CVSup. Alternatively, use CVSup to mirror the repository and then check=20 out the src directory (with regular CVS from the local mirror). That=20 way you can make local changes and still keep updated. I was introduced=20 to this latter method recently (on this list) and it works quite well.=20 See the CVSup page in the Handbook and=20 /usr/share/examples/cvsup/cvs-supfile. Jon