From owner-freebsd-questions Wed Mar 25 04:16:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA26598 for freebsd-questions-outgoing; Wed, 25 Mar 1998 04:16:42 -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 EAA26586 for ; Wed, 25 Mar 1998 04:16:23 -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 TAA00291 for freebsd-questions@FreeBSD.ORG; Wed, 25 Mar 1998 19:58:46 GMT Date: Wed, 25 Mar 1998 19:58:46 GMT From: roger chen Message-Id: <199803251958.TAA00291@roger.iecs.fcu.edu.tw> To: freebsd-questions@FreeBSD.ORG Subject: Please do me a favor, and thanks a lot. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 from the array '_averunnable' in the kernel, and then make each value divided by FSCALE (a system constant.) as their "load agerage". One of my questions is how those three values 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 '_averunnable' divided by FSCALE? p.s.: I know FSCALE is a kernel variable(a pointer), and it points to an array which keeps the load values in /dev/kmem. Please reply to "hjchen@pine.iecs.fcu.edu.tw". Thank you 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