From owner-freebsd-questions@FreeBSD.ORG Thu Oct 15 07:12:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0F21065679 for ; Thu, 15 Oct 2009 07:12:37 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9ADAA8FC13 for ; Thu, 15 Oct 2009 07:12:36 +0000 (UTC) Received: by ewy18 with SMTP id 18so543730ewy.43 for ; Thu, 15 Oct 2009 00:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=w3x9vuJ4dNJpaU+5xPfWe1mNa1t21XduFZXp2cvoT8k=; b=NEiQGFc+IOpUNJ3h0y0TtQE6lhAQEZ7ulW1MzjqLV8dbOfpOkeHjd0mcyQ+yzY512w NvkJOi6vgF0GfLQDQ4J+ykxOfaL2TYKGEY7qeAQVD+FrtGPQfun3pthx2AOY4ZoeK4ZL ImO0m2VDBA8QsCCUzjfzgyolg2Rd1pOsTnwjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YOCnE+fG7S3oBZei/ZcGYf0LlkvrEQMzBkcPDBu4s5oW0cSgmzeAdeHQ71Sg9JozAY a/h3qtgwRTm6PqBo+LlA3PXUOVL7LEfhgzqnwaRTY8C2mStohX1ZSV0JJYvbLs7TnSFI ukHBJEfVgqgEhIysNrwuf9eXF64NofWa7y+T8= MIME-Version: 1.0 Received: by 10.211.132.28 with SMTP id j28mr11593544ebn.95.1255590755296; Thu, 15 Oct 2009 00:12:35 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Oct 2009 03:12:35 -0400 Message-ID: From: grarpamp To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Adding up kernel mem usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 07:12:37 -0000 Is multiplying out the size and used columns from vmstat -z completely in addition to the amount used in vmstat -m, or do some of them overlap? vmstat -z | sed 's,^.*:,,' | sed -E 's,^ +,,' | sed -E 's/^([0-9]+),[^,]+, +/\1*/;s/,.*$//' | egrep '^[0-9]' | bc | add 58483416 Is netstat -m accounted for in one of the two vmstat's? systat -vm 1 Mem:KB REAL VIRTUAL Tot Share Tot Share Free Act 191564 39548 461348 48380 566632 All 423996 42600 2619680 53448 I'm not sure what Share means in this context? Thanks.