From owner-freebsd-net@FreeBSD.ORG Thu Jul 2 15:25:31 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A0C91065675 for ; Thu, 2 Jul 2009 15:25:31 +0000 (UTC) (envelope-from lab@gta.com) Received: from mailgate.gta.com (mailgate.gta.com [199.120.225.20]) by mx1.freebsd.org (Postfix) with SMTP id 10EEF8FC0A for ; Thu, 2 Jul 2009 15:25:30 +0000 (UTC) (envelope-from lab@gta.com) Received: (qmail 95587 invoked by uid 1000); 2 Jul 2009 15:25:30 -0000 Date: Thu, 2 Jul 2009 11:25:30 -0400 From: Larry Baird To: Luigi Rizzo Message-ID: <20090702152530.GA93332@gta.com> References: <20090630180029.GA8847@gta.com> <4A4C9FCC.6020304@prt.org> <20090702142155.GA71817@gta.com> <20090702150917.GA52464@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090702150917.GA52464@onelab2.iet.unipi.it> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Paul Thornton Subject: Re: Polling and kern.polling.idle_poll X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2009 15:25:31 -0000 > just to understand -- the patch below is just cosmetics to avoid > seeing the polling thread appear as "SYS" time, right ? Yes. Another fix would be to have the idle thread call poll_idle() like it did in 4.x. The comment for P_NOLOAD says /* Ignore during load avg calculations. */ Looking at the threads that set P_NOLOAD, all of them are appear to do minimal work. Both idle_poll() and vm_page_zero_idle() used to be called by the idle process. Mapping them back to the idle process seems reasonable to me. Larry -- ------------------------------------------------------------------------ Larry Baird | http://www.gta.com Global Technology Associates, Inc. | Orlando, FL Email: lab@gta.com | TEL 407-380-0220, FAX 407-380-6080