From owner-freebsd-stable@FreeBSD.ORG Thu Dec 15 09:11:22 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59D6E1065670; Thu, 15 Dec 2011 09:11:22 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 33C958FC13; Thu, 15 Dec 2011 09:11:20 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id pBF9BJKL014878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Dec 2011 01:11:20 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id pBF9BJd3014877; Thu, 15 Dec 2011 01:11:19 -0800 (PST) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA00785; Thu, 15 Dec 11 01:04:17 PST Date: Thu, 15 Dec 2011 08:03:22 -0800 From: perryh@pluto.rain.com To: freebsd@jdc.parodius.com Message-Id: <4eea1a4a.nJRbEc1jgKpVnVk4%perryh@pluto.rain.com> References: <4EE1EAFE.3070408@m5p.com> <4EE2AE64.9060802@m5p.com> <4EE88343.2050302@m5p.com> <4EE933C6.4020209@zedat.fu-berlin.de> <20111215004205.GA11556@icarus.home.lan> In-Reply-To: <20111215004205.GA11556@icarus.home.lan> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: tevans.uk@googlemail.com, attilio@freebsd.org, george+freebsd@m5p.com, freebsd-stable@freebsd.org, ohartman@zedat.fu-berlin.de Subject: Re: SCHED_ULE should not be the default X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 09:11:22 -0000 Jeremy Chadwick wrote: > It is already easy to switch schedulers. You change the > option in your kernel config, rebuild kernel (world isn't > necessary as long as you haven't csup'd between your last > rebuild and now), make installkernel, shutdown -r now, > done. and you have thereby shot freebsd-update in the foot, because you are no longer using a generic kernel. > If what you're proposing is to make the scheduler changeable > in real-time? I think that would require a **lot** of work > for something that very few people would benefit from ... Switching on the fly sounds frightfully difficult, as long as 4BSD and ULE are separate code bases. (It might not be so bad if a tunable or 3 could be added to ULE, so that it could be configured to behave like 4BSD.) However, the freebsd-update complication could in principle be relieved by building both schedulers into the generic kernel, with the choice being configurable in loader.conf. It would still take a reboot to switch, but not a kernel rebuild. Of course there may be practical issues, e.g. name collisions.