Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jul 2009 11:25:30 -0400
From:      Larry Baird <lab@gta.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-net@freebsd.org, Paul Thornton <prt@prt.org>
Subject:   Re: Polling and kern.polling.idle_poll
Message-ID:  <20090702152530.GA93332@gta.com>
In-Reply-To: <20090702150917.GA52464@onelab2.iet.unipi.it>
References:  <20090630180029.GA8847@gta.com> <4A4C9FCC.6020304@prt.org> <20090702142155.GA71817@gta.com> <20090702150917.GA52464@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090702152530.GA93332>