[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc-2.95



On Thu, Apr 19, 2001 at 07:54:22PM +0200, Matthias Klose wrote:
> Neal H Walfield writes:
>  > On Thu, Apr 19, 2001 at 07:26:36PM +0200, Matthias Klose wrote:
>  > > Neal H Walfield writes:
>  > >  > > Is there a way to determine the amount of free memory (including free
>  > >  > > swap)?
>  > >  > 
>  > >  > Absolutely;  take a look at mach/mach.defs:vm_statistics and
>  > >  > <mach/vm_statistics.c>.
>  > > 
>  > > interesting ... is there NO way to get this information via a shell
>  > > command/script?
>  > 
>  > vmstat.
> 
> doesn't print the amount of free swap.

It does, see attached.


pagesize:          4K
size:           28.1M
free:           14.5M
active:         5.47M
inactive:       6.14M
wired:          1.96M
zero filled:    14.8M
reactivated:       0 
pageins:         3.5M
pageouts:        668K
page faults:    23025
cow faults:      2448
memobj hit ratio: 93%
swap size:       886M
swap free:       886M

Reply to: