In the last episode (Oct 19), Ashok TM said: > 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. ?
In the last episode (Oct 19), RW said: > On Thursday 19 October 2006 07:05, Ashok TM wrote: > > > 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 . > > top gets this kind of thing from sysctl. Specifically: kern.boottime for uptime vm.loadavg for system load vm.stats.vm.* for the memory stats -- Dan Nelson [EMAIL PROTECTED] _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"