From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 20 09:01:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ACA216A41F for ; Wed, 20 Jul 2005 09:01:41 +0000 (GMT) (envelope-from ozkan@mersin.edu.tr) Received: from mail.mersin.edu.tr (mail.mersin.edu.tr [193.255.128.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF79343D45 for ; Wed, 20 Jul 2005 09:01:40 +0000 (GMT) (envelope-from ozkan@mersin.edu.tr) Received: from localhost (localhost.mersin.edu.tr [127.0.0.1]) by mail.mersin.edu.tr (Postfix) with ESMTP id 7272E45383; Wed, 20 Jul 2005 12:01:43 +0300 (EEST) Received: from mail.mersin.edu.tr ([127.0.0.1]) by localhost (mail.mersin.edu.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99892-18; Wed, 20 Jul 2005 12:01:32 +0300 (EEST) Received: from [10.0.50.20] (unknown [81.213.166.209]) by mail.mersin.edu.tr (Postfix) with ESMTP id A313D45351; Wed, 20 Jul 2005 12:01:31 +0300 (EEST) Message-ID: <42DE12E1.3030808@mersin.edu.tr> Date: Wed, 20 Jul 2005 12:01:21 +0300 From: =?ISO-8859-9?Q?=D6zkan_KIRIK?= User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Olzheim , freebsd-hackers@freebsd.org References: <42DE0E91.9000607@mersin.edu.tr> <20050720085658.GA27390@stack.nl> In-Reply-To: <20050720085658.GA27390@stack.nl> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mersin.edu.tr Cc: Subject: Re: Real and Free Memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 09:01:41 -0000 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 > >