From owner-freebsd-hackers Thu Jul 2 11:28:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12043 for freebsd-hackers-outgoing; Thu, 2 Jul 1998 11:28:00 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles224.castles.com [208.214.165.224]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA11999; Thu, 2 Jul 1998 11:27:36 -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 LAA01241; Thu, 2 Jul 1998 11:26:51 -0700 (PDT) Message-Id: <199807021826.LAA01241@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Donn Miller cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: FreeBSD equiv. of /proc/loadavg In-reply-to: Your message of "Thu, 02 Jul 1998 01:59:24 -0000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Jul 1998 11:26:51 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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'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 No. /proc/meminfo is memory information about the machine, while /proc/ curproc/mem is the current process' address space. /proc/stat is random junk, while /proc/curproc/stat is the status of the current process. > /proc/loadavg ??? (probably /kernel) sysctlbyname("vm.loadavg", ...) > /proc/uptime ??? (probably /kernel) The difference between gettimeofday() and sysctlbyname("kern.boottime", ...) -- \\ 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