Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2005 09:17:21 +0000
From:      Baldur Gislason <baldur@foo.is>
To:        =?iso-8859-1?Q?=D6zkan?= KIRIK <ozkan@mersin.edu.tr>
Cc:        Marc Olzheim <marcolz@stack.nl>, freebsd-hackers@freebsd.org
Subject:   Re: Real and Free Memory
Message-ID:  <20050720091721.GB79958@gremlin.foo.is>
In-Reply-To: <42DE12E1.3030808@mersin.edu.tr>
References:  <42DE0E91.9000607@mersin.edu.tr> <20050720085658.GA27390@stack.nl> <42DE12E1.3030808@mersin.edu.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
You must understand that in FreeBSD there is not much "free" memory
as free memory is wasted memory. However, most memory listed as buffers or 
cache will be given up by the kernel whenever requested.
top has a good level of information about your memory usage.
You can also fetch a program in ports called muse.

Baldur

On Wed, Jul 20, 2005 at 12:01:21PM +0300, Özkan KIRIK wrote:
> Thanks for your fast reply.
> 
> What about free memory?
> does  vm.vmtotal   give right value?
> 
> 
> Marc Olzheim wrote:
> 
> >On Wed, Jul 20, 2005 at 11:42:57AM +0300, zkan KIRIK wrote:
> > 
> >
> >>Hi,
> >>
> >>i am trying to measure free memory and real memory.
> >>
> >>but values at dmesg.boot and sysctl  are diffrent.
> >>
> >># cat /var/run/dmesg.boot | grep real
> >>real memory  = 268435456 (256 MB)
> >>
> >># sysctl vm.vmtotal  | grep Real
> >>Real Memory:            (Total: 232792K Active 122448K)
> >>
> >>As above, values are not equal,
> >>so that, i cant trust the Free Memory value that sysctl gives.
> >>
> >>how can i get right values?
> >>   
> >>
> >
> >sysctl hw.physmem
> >
> >Zlo
> > 
> >
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
> 




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