From owner-freebsd-hackers Wed Aug 21 20: 8:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9AE737B400; Wed, 21 Aug 2002 20:08:15 -0700 (PDT) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4526D43E77; Wed, 21 Aug 2002 20:08:15 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.5/8.12.5) with ESMTP id g7M38g33022079; Wed, 21 Aug 2002 20:08:43 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.5/8.12.5/Submit) id g7M38g96022078; Wed, 21 Aug 2002 20:08:42 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Wed, 21 Aug 2002 20:08:42 -0700 From: David Schultz To: Mario Sergio Fujikawa Ferreira Cc: FreeBSD-hackers@FreeBSD.ORG Subject: Re: Creating a sysctl? (mission impossible) Message-ID: <20020822030842.GA22058@HAL9000.homeunix.com> Mail-Followup-To: Mario Sergio Fujikawa Ferreira , FreeBSD-hackers@FreeBSD.ORG References: <20020820180222.927.qmail@exxodus.fedaykin.here> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020820180222.927.qmail@exxodus.fedaykin.here> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Mario Sergio Fujikawa Ferreira : > I am trying to create one sysctl so that I can read information > from a lottery scheduler that I am trying to write. > The sysctl is very very simple. I add a lottery node under kern > then add a member global_tickets under kern.lottery. Very simple stuff > that is not working. FYI, lottery scheduling has already been implemented at least twice for FreeBSD. For an example, see http://www.csua.berkeley.edu/computing/software/lottery-sched.html The code has not been maintained, apparently due to a lack of interest, and it incurs a high scheduling overhead. Note that the KSE work is likely to bring significant changes to scheduling in FreeBSD, possibly causing you headaches later. You might also be interested in Luigi's work on a PS scheduler; check the list archives. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message