Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2011 14:16:12 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        hackers@freebsd.org
Subject:   Re: who is in swap?
Message-ID:  <BANLkTi=VPQ-hFePDuwACpvFTE8VLmhQN8w@mail.gmail.com>
In-Reply-To: <E1QNNvQ-000MGW-Ke@cs.huji.ac.il>
References:  <E1QNNvQ-000MGW-Ke@cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, May 20, 2011 at 6:31 AM, Daniel Braniss <danny@cs.huji.ac.il> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=VPQ-hFePDuwACpvFTE8VLmhQN8w>