Date: Wed, 02 Sep 2009 15:32:34 +0200 From: Per olof Ljungmark <peo@intersonic.se> To: Bill Moran <wmoran@potentialtech.com> Cc: freebsd-questions@freebsd.org Subject: Re: memory usage displsy Message-ID: <4A9E73F2.2000908@intersonic.se> In-Reply-To: <20090902083348.40c21529.wmoran@potentialtech.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> <4A9DB590.6080605@intersonic.se> <20090902083348.40c21529.wmoran@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Moran wrote: > In response to Per olof Ljungmark <peo@intersonic.se>: > >> Dan Nelson wrote: >>> In the last episode (Sep 01), Bill Moran said: >>>> In response to Per olof Ljungmark <peo@intersonic.se>: >>>>> 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? >>> >> ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. >> Still over 3G Active. > > <snip> > > You did not sort by res and there are only 40 processes showing, which > means your output is truncated and may have truncated the problematic > process. > > Please use "top -o res" to get the output sorted by memory usage, or > don't truncate the output (former preferred). > > Also, please provide the output of "ipcs -a" > There was no more processes... ipcs -a Message Queues: T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME Shared Memory: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME Semaphores: T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A9E73F2.2000908>