From owner-freebsd-current@FreeBSD.ORG Thu Feb 28 13:43:07 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81F6B1065671 for ; Thu, 28 Feb 2008 13:43:07 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3A33F8FC19 for ; Thu, 28 Feb 2008 13:43:06 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 2230F19E027; Thu, 28 Feb 2008 14:43:05 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id 53E0819E019; Thu, 28 Feb 2008 14:42:58 +0100 (CET) Message-ID: <47C6BA70.5070509@quip.cz> Date: Thu, 28 Feb 2008 14:43:12 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Arne Schwabe References: <47C5E204.9080003@rfc2549.org> In-Reply-To: <47C5E204.9080003@rfc2549.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: Specific Swap Usage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 13:43:07 -0000 Arne Schwabe wrote: > Hi, > > is there any way to look what programs are swapped out and how much > memory they use? Looking at SIZE in top is just a wild guess. One server > here grows in swap usage and panics eventuelly when all swap is usage. > Swap usage is growing slowly (100 MB /week ) but it is growing and see > no way to get what really uses swap :( (Read man ps three times already :/) AFAIK swapped processes in top are shown in lt + gt signs (braces): 1382 root 1 5 0 1380K 0K ttyin 0:00 0.00% from `man top` COMMAND is the name of the command that the process is currently running (if the process is swapped out, this column is marked ""). In `ps` output in column state: W - The process is swapped out. You can get a list of swapped processes by this command: ps auxwww | awk '$8 ~ /.W.*/ { print $0}' (tested on FreeBSD 6.2 & FreeBSD 7.0) Miroslav Lachman