From owner-freebsd-smp Thu Aug 13 13:04:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02053 for freebsd-smp-outgoing; Thu, 13 Aug 1998 13:04:46 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [209.118.174.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA01719 for ; Thu, 13 Aug 1998 13:03:24 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id OAA18395; Thu, 13 Aug 1998 14:54:41 -0400 (EDT) Date: Thu, 13 Aug 1998 14:54:39 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: Lars =?iso-8859-1?Q?K=F6ller?= cc: freebsd-smp@FreeBSD.ORG Subject: Re: Per processor load? In-Reply-To: <199808130659.GAA01921@mitch.hrz.uni-bielefeld.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.freebsd.org id NAA02047 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 13 Aug 1998, Lars Köller wrote: > -------- > > Hi! > > I want to exptend my port of xperfmon++ with per processor load > charts for 3.X. Is it possible to get the number of processors with a > syscall? And more important, how to get the load per processor? The > getloadavg function returns only the averaged load! For my 2 processor SMP board, sysctl gives: hw.machine: i386 hw.model: Pentium Pro hw.ncpu: 2 I'd guess you want the last one, right? > > Regards > > Lars > -- > E-Mail: | Lars Köller > Lars.Koeller@Uni-Bielefeld.DE | UNIX Sysadmin > lkoeller@cc.FH-Lippe.DE | Computing Center > PGP-key: | University of Bielefeld > http://www.nic.surfnet.nl/pgp/pks-toplev.html | Germany > ----------- FreeBSD, what else? ---- http://www.freebsd.org ------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message