From owner-freebsd-questions@FreeBSD.ORG Thu Oct 19 06:05:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ED4316A407 for ; Thu, 19 Oct 2006 06:05:27 +0000 (UTC) (envelope-from atmblr@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D1CD43D60 for ; Thu, 19 Oct 2006 06:05:25 +0000 (GMT) (envelope-from atmblr@gmail.com) Received: by wx-out-0506.google.com with SMTP id t4so508618wxc for ; Wed, 18 Oct 2006 23:05:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cLFMvGXcPYmVtRBZDb6K16bJ1n/r0/a1eze9yQ2hRSe0kC5zbts9cVqhhpMt0wgVk1MKgGdISZ1D6sh5SvsBvLravV4u6maPy9/HwHubGUQgJaihNwP2yU5+HfV3p2rU4FRRDKh5kLbJP3RQW0wCx9qPMm3lQ0G96TqcSiWSWmU= Received: by 10.70.83.4 with SMTP id g4mr17686531wxb; Wed, 18 Oct 2006 23:05:24 -0700 (PDT) Received: by 10.70.43.15 with HTTP; Wed, 18 Oct 2006 23:05:24 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2006 11:35:24 +0530 From: "Ashok TM" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sysinfo equivalent in Freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 06:05:27 -0000 Hi, In linux we have "sysinfo" system call which provides overall system statistics. struct sysinfo { long uptime; /* Seconds since boot */ unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ unsigned long totalram; /* Total usable main memory size */ unsigned long freeram; /* Available memory size */ unsigned long sharedram; /* Amount of shared memory */ unsigned long bufferram; /* Memory used by buffers */ unsigned long totalswap; /* Total swap space size */ unsigned long freeswap; /* swap space still available */ unsigned short procs; /* Number of current processes */ unsigned long totalhigh; /* Total high memory size */ unsigned long freehigh; /* Available high memory size */ unsigned int mem_unit; /* Memory unit size in bytes */ } How to find the similar statistics from freebsd , is there any equivalent system call in freebsd. ? I tried using WMMemFree (ports to bsd )without much luck . Regrds atm