Date: Wed, 13 Oct 1999 23:44:17 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> 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 Message-ID: <14341.18732.575731.734319@grasshopper.cs.duke.edu> In-Reply-To: <Pine.BSF.4.10.9910131934270.70146-100000@beppo.feral.com> References: <Pine.BSF.4.10.9910141158300.32868-100000@alphplex.bde.org> <Pine.BSF.4.10.9910131934270.70146-100000@beppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14341.18732.575731.734319>