From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 18:24:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F35D16A4CE for ; Tue, 5 Oct 2004 18:24:10 +0000 (GMT) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF87E43D53 for ; Tue, 5 Oct 2004 18:24:09 +0000 (GMT) (envelope-from cpghost@cordula.ws) Received: from bsdbox.farid-hajji.net (bsdbox [192.168.254.3]) by fw.farid-hajji.net (Postfix) with ESMTP id A0A7A4B10E; Tue, 5 Oct 2004 20:24:01 +0200 (CEST) Date: Tue, 5 Oct 2004 20:24:20 +0200 From: cpghost@cordula.ws To: Rafa Teixeira Message-ID: <20041005182420.GA54144@bsdbox.farid-hajji.net> References: <1838.201.0.146.98.1096984767.squirrel@popmail1.pop.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1838.201.0.146.98.1096984767.squirrel@popmail1.pop.com.br> User-Agent: Mutt/1.5.6i cc: freebsd-questions@FreeBSD.org Subject: FreeBSD schedulers (was: Re: FreeBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 18:24:10 -0000 On Tue, Oct 05, 2004 at 10:59:27AM -0300, Rafa Teixeira wrote: > I'm from Brasil and I would like to know what kind of scheduling > FreeBSD uses. Hi Rafa, you may want to read Chapter 4 (Process Management), pages 99-108 of: The Design and Implementation of the FreeBSD Operating System Marshall Kirk McKusick, George V. Neville-Neil Addison-Wesley Pearson. ISBN 0-201-70245-2 Fortunately for you, Chapter 4 also happens to be the online demo chapter for this book. You may find it here: http://www.awprofessional.com/content/images/0201702452/samplechapter/mckusick_ch04.pdf In a nutshell: FreeBSD (5.x) can use two schedulers, the old SCHED_4BSD and the new, but still somewhat experimental SCHED_ULE. You can find the source code here: /usr/src/sys/kern/sched_4bsd.c /usr/src/sys/kern/sched_ule.c If you don't have the sources available, feel free to use cvsweb: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sched_4bsd.c http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sched_ule.c Cheers, cpghost. -- Cordula's Web. http://www.cordula.ws/