From owner-svn-src-all@FreeBSD.ORG Thu May 23 06:13:26 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F128CB3C; Thu, 23 May 2013 06:13:25 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id B5994663; Thu, 23 May 2013 06:13:25 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E2FC87300A; Thu, 23 May 2013 08:16:00 +0200 (CEST) Date: Thu, 23 May 2013 08:16:00 +0200 From: Luigi Rizzo To: Adrian Chadd Subject: Re: svn commit: r250911 - head/sys/kern Message-ID: <20130523061600.GB6430@onelab2.iet.unipi.it> References: <201305221632.r4MGWIjK069433@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@freebsd.org, Luigi Rizzo , src-committers@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 06:13:26 -0000 On Wed, May 22, 2013 at 04:55:51PM -0700, Adrian Chadd wrote: > Odd, this reads like one of those things that's better off being > time-capped, rather than packet-count capped. this is in fact how it works: the control loop in the polling code dynamically adjusts the actual number of packets so that the fraction of CPU cycles spent in the polling routine does not exceed the threshold (100 - kern.polling.user_frac). Working in batches avoids reading the clock and calling the poll method at every packet, which would be too expensive. cheers luigi