From owner-freebsd-questions Thu Jul 2 01:44:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA07975 for freebsd-questions-outgoing; Thu, 2 Jul 1998 01:44:25 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lorax.ubergeeks.com (lorax.ubergeeks.com [206.205.41.241]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA07959 for ; Thu, 2 Jul 1998 01:44:19 -0700 (PDT) (envelope-from adrian@lorax.ubergeeks.com) Received: from localhost (adrian@localhost) by lorax.ubergeeks.com (8.8.8/8.8.8) with SMTP id EAA08102; Thu, 2 Jul 1998 04:43:06 -0400 (EDT) (envelope-from adrian@lorax.ubergeeks.com) Date: Thu, 2 Jul 1998 04:43:05 -0400 (EDT) From: ADRIAN Filipi-Martin Reply-To: Adrian Filipi-Martin To: Donn Miller cc: questions@FreeBSD.ORG Subject: Re: FreeBSD equiv. of /proc/loadavg In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 2 Jul 1998, Donn Miller wrote: > > Am looking for the FreeBSD equivalent of the Linux file /proc/loadavg. I > want to use this instead of using getloadavg(). > > I'm also looking for the equivalent of these. This is what I think they > are: > > Linux FreeBSD > ===== ======= > /proc/meminfo /proc/curproc/mem > /proc/stat /proc/curproc/status > /proc/loadavg ??? (probably /kernel) > /proc/uptime ??? (probably /kernel) Hope I'm not missing the point, but what's wrong with uptime(1)? There has been talk of a /kernelfs, but I doubt that will be happening anytime soon. I suppose the closest thing to what you are looking for is the sysctl interface. Try 'sysctl vm.loadavg' and 'sysctl kern.boottime'. BTW, please don't cross post to multiple mailing lists. Adrian -- [ adrian@ubergeeks.com -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message