From owner-freebsd-hackers Thu Jul 2 20:21:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA29716 for freebsd-hackers-outgoing; Thu, 2 Jul 1998 20:21:14 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles183.castles.com [208.214.165.183]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA29659; Thu, 2 Jul 1998 20:20:54 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id UAA03532; Thu, 2 Jul 1998 20:19:47 -0700 (PDT) Message-Id: <199807030319.UAA03532@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Joe Abley cc: Donn Miller , Mike Smith , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: FreeBSD equiv. of /proc/loadavg In-reply-to: Your message of "Fri, 03 Jul 1998 14:05:56 +1200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Jul 1998 20:19:47 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, 2 Jul 1998, Donn Miller wrote: > > > Mike Smith wrote: > > > > > > > > > > > Am looking for the FreeBSD equivalent of the Linux file /proc/loadavg. I > > > > want to use this instead of using getloadavg(). > > > > > > The obvious question here is "why"? > > > > I just figured that some Linux programs were trying to obtain load > > average info that way, and to ease porting, well, I wanted to open the > > equivalent FreeBSD file. I realize now though that if you want to port > > some apps with low-level details, you gotta do a little reworking. > > > > I was trying to port wmmon from WindowMaker. It's just for Linux now. > > In addition, the app tries to obtain loadaverage, uptime, and memory > > info about the machine like this: (from wmmon.c) > > What about rpc.rstatd(8) - isn't this a common enough interface for all > these numbers? No. Not everybody wants to leak that sort of information, and why should I run two more daemons just to get three bloody numbers from the kernel? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message