From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 19:41:39 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11B7D106566B for ; Fri, 20 May 2011 19:41:39 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 94DF78FC12 for ; Fri, 20 May 2011 19:41:38 +0000 (UTC) Received: by fxm11 with SMTP id 11so3993170fxm.13 for ; Fri, 20 May 2011 12:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=n0HNLCeLOGGl9Yma2/69VM9gI10WUqaQ58Lgiv75UAI=; b=KlwIjRs4nrC80P+/W9q/IqRhoWjs4IHy7CJyc9cQmKclwclkjE/4r0wNfFMwoSAEP1 DUVqPOwS0Avw8exOukM7r0nkrHTggvdLqK6DVKi8tT8xh+ZkVaotJIOA+JfSWFBz5cEM oGyC/EE/9h7u4sQexdGYNdbPoVHqQxcQQvvN8= 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 :cc:content-type; b=OUCTXgazAIc3wOAfObP+WWHIqEkFAK0ApYRuK+0B8Zo0s2ge2sRPYBakHaxCa3t3/5 wqOXEkORzPBXbBthyPYyJc7zAp17b83UQPqi/+tfcuk00LYe/1FOmhra3YU4HRIaUtOh +zrVclPNc6YJ7wT4TFo8jbNjAvfXIq9J9mFxE= MIME-Version: 1.0 Received: by 10.223.72.202 with SMTP id n10mr5404900faj.88.1305918972833; Fri, 20 May 2011 12:16:12 -0700 (PDT) Received: by 10.223.118.148 with HTTP; Fri, 20 May 2011 12:16:12 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2011 14:16:12 -0500 Message-ID: From: Adam Vande More To: Daniel Braniss Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org Subject: Re: who is in swap? 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: Fri, 20 May 2011 19:41:39 -0000 On Fri, May 20, 2011 at 6:31 AM, Daniel Braniss wrote: > Hi, > We have a host, providing mainly http/postgres service, and its > swap usage is increasing. Is there any way to check which process > is using swap space? > > some facts > it's running 8.2-stable/amd64 > has 24gb of memory > zfs seems to be ok, arc size too. > top says 32G in use, while vmstat avm is around 2G (can't figure this one) > top seems to be concervative as to free memory vs. vmstat > it's dataless. > > the swap usage is monotonic increasing, but it will take some 20 days > to exhaust the space, it will hang before that :-( - which > is what I'm trying to find why > ps ax If second character of state column is W, the process is swapped out. -- Adam Vande More