From owner-freebsd-questions Thu Mar 19 10:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03869 for freebsd-questions-outgoing; Thu, 19 Mar 1998 10:00:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from roger.iecs.fcu.edu.tw (roger.iecs.fcu.edu.tw.24.134.140.in-addr.arpa [140.134.24.221] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA03637 for ; Thu, 19 Mar 1998 09:59:38 -0800 (PST) (envelope-from roger@roger.iecs.fcu.edu.tw) Received: (from roger@localhost) by roger.iecs.fcu.edu.tw (8.8.5/8.8.5) id BAA01535 for questions@FreeBSD.ORG; Fri, 20 Mar 1998 01:58:35 GMT Date: Fri, 20 Mar 1998 01:58:35 GMT From: roger chen Message-Id: <199803200158.BAA01535@roger.iecs.fcu.edu.tw> To: questions@FreeBSD.ORG Subject: Please do me a favor... :) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It's so glad to write this mail to you, and thank you for spending time to read and answer my questions. The commands "uptime" and "top" on FreeBSD both obtain three values from the array "_averunnable" in the kernel, and then each divided by FSCALE(a system constant.) right away as their "load average". One of my questions is how those three values in the "_averunnable" be generated by FreeBSD kernel. In other words, what factors does FreeBSD kernel depend on to decide the term "load average"? I know the value of FSCALE on FreeBSD is 2048, because I printed the constant in a test program. And on SunOS, FSCALE is 256. What is "256 scale array" or "2048 scale array"? What does they mean?! And why do we have to have the value in "_averunnable" divided by FSCALE ?! p.s.: I know that "_averunnable" is a kernel variable, and we can get the "load average" in the file "/dev/kmem" with this variable. p.s.: Please reply to "hjchen@pine.iecs.fcu.edu.tw". Thanks very much, and have a nice day! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message