From owner-cvs-src@FreeBSD.ORG Sat Jan 20 16:11:47 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62A4316A401; Sat, 20 Jan 2007 16:11:47 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1A91B13C448; Sat, 20 Jan 2007 16:11:47 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 4E08749B86; Sat, 20 Jan 2007 11:11:46 -0500 (EST) Date: Sat, 20 Jan 2007 16:11:46 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Jeff Roberson In-Reply-To: <200701200903.l0K93hsE059379@repoman.freebsd.org> Message-ID: <20070120160954.F79123@fledge.watson.org> References: <200701200903.l0K93hsE059379@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern sched_ule.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 16:11:47 -0000 On Sat, 20 Jan 2007, Jeff Roberson wrote: > jeff 2007-01-20 09:03:43 UTC > > FreeBSD src repository > > Modified files: > sys/kern sched_ule.c > Log: > - In tdq_transfer() always set NEEDRESCHED when necessary regardless of > the ipi settings. If NEEDRESCHED is set and an ipi is later delivered > it will clear it rather than cause extra context switches. However, if > we miss setting it we can have terrible latency. > - In sched_bind() correctly implement bind. Also be slightly more > tolerant of code which calls bind multiple times. However, we don't > change binding if another call is made with a different cpu. This > does not presently work with hwpmc which I believe should be changed. sched_bind() appears not to be documented in scheduler(9), and the semantics you describe (bind requiring an unbind before a thread can be bound again) sound like something it would be useful to document, especially as schedulers differ on what is allowed? Robert N M Watson Computer Laboratory University of Cambridge