From owner-cvs-all Wed Oct 13 20:44:59 1999 Delivered-To: cvs-all@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 7ABDF14E56; Wed, 13 Oct 1999 20:44:49 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.1/8.9.1) with ESMTP id XAA17696; Wed, 13 Oct 1999 23:44:48 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id XAA56784; Wed, 13 Oct 1999 23:44:17 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 13 Oct 1999 23:44:17 -0400 (EDT) To: mjacob@feral.com Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/alpha clock.c interrupt.c In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14341.18732.575731.734319@grasshopper.cs.duke.edu> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Matthew Jacob writes: > > Actually, it also turns out that hz varies widely- sometimes it is 1024. > Sometimes 1200. It is platform dependent- Drew- what did you do here???? Hmm.. Where have you seen 1200? I've checked the following hardware & found it to be 1024 on all of it: DEC 3000/500, AlphaStation 200/166, AlphaServer 400/233, AlphaServer 2000 4/200, PC164LX@600MHz, Miatas @ 433MHz, 500MHz & 600MHz, AlphaStation 500/266, AlphaStation 600/266, Monet @500MHz, and a DS20 @500MHz. That's pretty close to one of everything we support.. Have a look at NetBSD's arch/alpha/alpha/clock.c where they set schedhz to 16. Then see their arch/alpha/alpha/interrupt.c where they call schedclock every 64th interrupt. They're assuming a hz of 1024. Ata any rate, what I think I've done is translated NetBSD's solution to the niceness problem & hidden some bugs in schedcpu(). Before I did this, scheduling was so bad that I really can't see how I could possibly have made anything worse... BTW, Did you see my example yesterday on -alpha of how broken nice is? Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message