From owner-freebsd-hackers Wed Sep 17 13:12:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA07092 for hackers-outgoing; Wed, 17 Sep 1997 13:12:05 -0700 (PDT) Received: from usr02.primenet.com (tlambert@usr02.primenet.com [206.165.6.202]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA07076 for ; Wed, 17 Sep 1997 13:12:03 -0700 (PDT) Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id NAA13541; Wed, 17 Sep 1997 13:11:31 -0700 (MST) From: Terry Lambert Message-Id: <199709172011.NAA13541@usr02.primenet.com> Subject: Re: cpu load To: tom@sdf.com (Tom) Date: Wed, 17 Sep 1997 20:11:30 +0000 (GMT) Cc: jhay@mikom.csir.co.za, sebesty@cs.elte.hu, hackers@FreeBSD.ORG In-Reply-To: from "Tom" at Sep 17, 97 10:06:24 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > I'm searching for an easy way to get information cpu_load on FreeBSD. On > > > Linux people just reads /proc/stat, but that one won't work on FreeBSD. > > > > sysctl vm.loadavg > > getloadavg() might be better for use within a program. It is portable > to all BSD4.4 systems. If it is not a wrapper function for a sysctl(0 call, it should be. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.