From owner-freebsd-questions@FreeBSD.ORG Wed Jun 30 16:45:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A205416A4CE for ; Wed, 30 Jun 2004 16:45:34 +0000 (GMT) Received: from otech.servercentral.net (office2.ord.scnet.net [64.202.110.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F6DE43D1D for ; Wed, 30 Jun 2004 16:45:34 +0000 (GMT) (envelope-from djh@servercentral.net) Received: from servercentral.net (localhost [127.0.0.1]) i5UGjArD000140 for ; Wed, 30 Jun 2004 11:45:11 -0500 (CDT) (envelope-from djh@servercentral.net) Message-ID: <40E2EE16.1070808@servercentral.net> Date: Wed, 30 Jun 2004 11:45:10 -0500 From: Danny Howard User-Agent: Mozilla Thunderbird 0.5 (X11/20040405) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <40E2B6DC.5080908@servercentral.net> <40E2E34B.5090308@gmx.de> In-Reply-To: <40E2E34B.5090308@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How do I calculate the size and utilization of my VM from sysctl? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 16:45:34 -0000 Phil Schulz wrote: > Danny Howard wrote: > >> What's the easiest command to read to get good information on memory >> usage? I played with "/sbin/sysctl -n hw.physmem hw.usermem >> vm.kvm_size vm.kvm_free" yesterday but I have the feeling that these >> are not the numbers I think they are, because they add up wrong. >> >> There's some pretty good stuff at the top of top, but I'd be happier >> with output in raw numbers of bytes, to feed to my graphing program. >> This would also save the trouble of reinterpreting M into * 1024^2. > [...] > Are you looking for vmstat(8)? Actually, I'm looking for: "How do I calculate the size and utilization of my VM from sysctl?" vm.kvm_size is not consistent with the size of swap output by top. But then, I'm not sure what "kvm" is supposed to be anyway. I've looked at vm.stats.vm.v_page_size * vm.stats.vm.v_page_count but that aint right either ... ? Thanks, -danny -- Danny Howard djh@servercentral.net Technical Support Manager (312)829-1111 x235 Server Central Network http://www.servercentral.net