Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 11:35:24 +0530
From:      "Ashok TM" <atmblr@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   sysinfo equivalent in Freebsd
Message-ID:  <ef4898ff0610182305s1632b522ja8248ce1429bcf0e@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef4898ff0610182305s1632b522ja8248ce1429bcf0e>