From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 1 14:24:12 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CA2F106564A for ; Thu, 1 Dec 2011 14:24:12 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 23AEB8FC15 for ; Thu, 1 Dec 2011 14:24:11 +0000 (UTC) Received: by eekc13 with SMTP id c13so1747079eek.13 for ; Thu, 01 Dec 2011 06:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=c0W6w3w8RxSm8+5FQ2/JtzLz16awyQEUX5jGQVqgdZQ=; b=mehfKb0hrMxF+mGzFZsGgrvhspeq0VyBqeitzevuRFBYfG1428B56CPWn6E5tgp3cz 9djeXOUBE2ohf/ySOwcrW7g6onXwHm+WKi+RF39i85IUr2iC6aOCYKAeghXgrnW9bbiG oK6WPUnCyHu6fTbsV/gyBegr0BkXi+sacMgPk= Received: by 10.14.7.211 with SMTP id 59mr933367eep.146.1322747902835; Thu, 01 Dec 2011 05:58:22 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id 17sm6619485eej.3.2011.12.01.05.58.20 (version=SSLv3 cipher=OTHER); Thu, 01 Dec 2011 05:58:21 -0800 (PST) Date: Thu, 1 Dec 2011 13:58:18 +0000 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20111201135818.641625c5@gumby.homeunix.com> In-Reply-To: <547298A3C38F407887E1AAAAC487DF6D@multiplay.co.uk> References: <547298A3C38F407887E1AAAAC487DF6D@multiplay.co.uk> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Invalid memory stats from vmstat and sysctl vm.vmtotal? 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: Thu, 01 Dec 2011 14:24:12 -0000 On Wed, 30 Nov 2011 12:39:10 -0000 Steven Hartland wrote: > We're seeing some impossible memory usage stats reported on machines > here from vmstat and sysctl vm.vmtotal. > > We have machines reporting to be using 31GB total when they only have > 8GB physical and are not using any swap. > > Here's an output from one of our machines:- > vmstat -c 2 -w 1 -n 0 > procs memory page faults cpu > r b w avm fre flt re pi po fr sr in sy cs us > sy id 0 0 0 31768M 2112M 586 0 0 0 421 0 106 270 > 569 0 6 94 0 0 0 31768M 2112M 2 0 0 0 0 0 370 > 8139 3996 0 1 99 > > ... > It looks like it may be out by a factor of 4, possibly due to the fact > the its a 4k page size not 1k as indicated by the vmstat man page:- > I don't think so, I have 16GB and tops shows: Mem: 817M Active, 396M Inact, 1364M Wired, 82M Cache, 1282M Buf, 13G Free but vmstat -c 2 -w 1 -n 0 procs memory page faults cpu r b w avm fre flt re pi po fr sr in sy cs us sy id 0 0 0 9750M 13G 450 5 3 1 560 0 234 50201 5206 2 2 96 1 0 0 9742M 13G 79 4 0 0 573 0 239 51886 4700 0 1 99