From owner-freebsd-questions Thu Apr 2 22:37:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA29697 for freebsd-questions-outgoing; Thu, 2 Apr 1998 22:37:34 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mailbox.syr.edu (root@mailbox.syr.edu [128.230.1.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA29678 for ; Thu, 2 Apr 1998 22:37:25 -0800 (PST) (envelope-from tlei@mailbox.syr.edu) Received: from mailbox.syr.edu (sudial0604-152.syr.edu [128.230.1.152]) by mailbox.syr.edu (8.8.8/8.8.8) with ESMTP id BAA12699 for ; Fri, 3 Apr 1998 01:37:17 -0500 (EST) Message-ID: <352483F8.B30950F7@mailbox.syr.edu> Date: Fri, 03 Apr 1998 01:38:48 -0500 From: Mike Lei X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD kernel Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear Mr. or Mrs. I am so glad to write the mail to you, and thank you for spending time to read my questions. The commands 'uptime' and 'top' on FreeBSD both obtain three values through the kernel variable '_averunnable'. Actually, '_averunnable' points to an array in /dev/kmem which holds three values. After both commands get those values, they make them divided by FSCALE as "load average". One of my questions is how those three values in that array be generated by FreeBSD kernel. In other words, what factors does FreeBSD kernel depend on to determine the term "load average"?? I know the value of FSCALE on FreeBSD is 2048, because I printed the constant in a program. And on SunOs, FSCALE is 256, right? What is "256 scale array" or "2048 scale array"? What do thay mean? And why do we have to make the values that get from that array in /dev/kmem divided by FSCALE? Thank you very much, and have a nice day. Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message