Date: Thu, 02 Jul 1998 11:26:51 -0700 From: Mike Smith <mike@smith.net.au> To: Donn Miller <dmm125@bellatlantic.net> Cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: FreeBSD equiv. of /proc/loadavg Message-ID: <199807021826.LAA01241@antipodes.cdrom.com> In-Reply-To: Your message of "Thu, 02 Jul 1998 01:59:24 -0000." <Pine.NEB.3.96.980702015256.1590A-100000@myname.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807021826.LAA01241>