From owner-freebsd-questions@FreeBSD.ORG Tue Sep 1 20:41:49 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 C79BA106568B for ; Tue, 1 Sep 2009 20:41:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 634E88FC2A for ; Tue, 1 Sep 2009 20:41:49 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.0/8.14.0) with ESMTP id n81KfmcN022586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Sep 2009 15:41:48 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n81KfmK7071990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Sep 2009 15:41:48 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n81KflL9071974; Tue, 1 Sep 2009 15:41:47 -0500 (CDT) (envelope-from dan) Date: Tue, 1 Sep 2009 15:41:47 -0500 From: Dan Nelson To: Bill Moran Message-ID: <20090901204147.GC2855@dan.emsphone.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090901162931.d85ec256.wmoran@potentialtech.com> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email2.allantgroup.com [199.67.51.78]); Tue, 01 Sep 2009 15:41:48 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: memory usage displsy 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: Tue, 01 Sep 2009 20:41:49 -0000 In the last episode (Sep 01), Bill Moran said: > In response to Per olof Ljungmark : > > What is a good way to find out how memory is used? Have a 6.4 box where > > memory is used by something but I fail to see what is using it - tried > > different switches to ps(1), tried the stat tools but a big chunk of > > memory does not show at all. > > > > A proper tool for analyzing memory usage "live", this is a production > > box? > > I've always been able to get what I need from top. You can do -o res to > sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that "something" is using it? -- Dan Nelson dnelson@allantgroup.com