public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How do I find out who uses swap?
@ 2005-01-26 13:11 Maciej Soltysiak
  2005-01-26 16:49 ` Chris Shoemaker
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej Soltysiak @ 2005-01-26 13:11 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have a problem for some time with that the amount of swap
being used constantly increases up to the moment where
the swap is used in 100% and the machine deadlocks.

How do I find out which proceses use swap and in what amount?

I tried using top and sorting by SWAP, it shows this:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP COMMAND
 3390 ncg       15   0 72504 3380 1720 S  0.0  0.7   0:00.76  67m ncgserver
24718 mysql     15   0 68056 7364 2232 S  0.0  1.4   2:30.70  59m mysqld
  582 fallen    16   0 30396  568  480 S  0.0  0.1   0:02.40  29m sc_serv
  624 vpopmail  16   0 31124 1736 1436 S  0.0  0.3   0:01.99  28m spamd
31765 solt      16   0 29916 1020  616 S  0.0  0.2   0:02.25  28m sc_serv
 3348 bind      22   0 31604 3872 1472 S  0.0  0.8   0:48.84  27m named
24021 root      16   0 32976  10m 7228 S  0.0  2.1   0:01.99  21m apache
13066 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.62  21m apache
13103 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.61  21m apache
13104 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.60  21m apache
13099 www-data  16   0 33104  10m 7276 S  0.3  2.2   0:00.63  21m apache
13142 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.61  21m apache
29898 www-data  16   0 33108  11m 7580 S  0.0  2.2   0:00.01  21m apache
13061 www-data  16   0 34492  12m 7700 S  0.0  2.5   0:00.56  21m apache
13057 www-data  15   0 35076  13m 7696 S  0.0  2.6   0:00.78  21m apache
23259 www-data  16   0 36344  14m 7784 S  0.0  2.9   0:01.15  21m apache
13062 www-data  15   0 37812  15m 7868 S  0.0  3.2   0:01.03  20m apache

Or should I look at VIRT or MEM ?
I am confused.

Regards,
Maciej



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How do I find out who uses swap?
  2005-01-26 13:11 How do I find out who uses swap? Maciej Soltysiak
@ 2005-01-26 16:49 ` Chris Shoemaker
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Shoemaker @ 2005-01-26 16:49 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: linux-kernel

On Wed, Jan 26, 2005 at 02:11:56PM +0100, Maciej Soltysiak wrote:
> Hi,
> 
> I have a problem for some time with that the amount of swap
> being used constantly increases up to the moment where
> the swap is used in 100% and the machine deadlocks.
> 
> How do I find out which proceses use swap and in what amount?
> 
> I tried using top and sorting by SWAP, it shows this:
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP COMMAND
>  3390 ncg       15   0 72504 3380 1720 S  0.0  0.7   0:00.76  67m ncgserver
> 24718 mysql     15   0 68056 7364 2232 S  0.0  1.4   2:30.70  59m mysqld
>   582 fallen    16   0 30396  568  480 S  0.0  0.1   0:02.40  29m sc_serv
>   624 vpopmail  16   0 31124 1736 1436 S  0.0  0.3   0:01.99  28m spamd
> 31765 solt      16   0 29916 1020  616 S  0.0  0.2   0:02.25  28m sc_serv
>  3348 bind      22   0 31604 3872 1472 S  0.0  0.8   0:48.84  27m named
> 24021 root      16   0 32976  10m 7228 S  0.0  2.1   0:01.99  21m apache
> 13066 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.62  21m apache
> 13103 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.61  21m apache
> 13104 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.60  21m apache
> 13099 www-data  16   0 33104  10m 7276 S  0.3  2.2   0:00.63  21m apache
> 13142 www-data  16   0 33104  10m 7276 S  0.0  2.2   0:00.61  21m apache
> 29898 www-data  16   0 33108  11m 7580 S  0.0  2.2   0:00.01  21m apache
> 13061 www-data  16   0 34492  12m 7700 S  0.0  2.5   0:00.56  21m apache
> 13057 www-data  15   0 35076  13m 7696 S  0.0  2.6   0:00.78  21m apache
> 23259 www-data  16   0 36344  14m 7784 S  0.0  2.9   0:01.15  21m apache
> 13062 www-data  15   0 37812  15m 7868 S  0.0  3.2   0:01.03  20m apache
                                                                ^^^
                                                              look here

> 
> Or should I look at VIRT or MEM ?
> I am confused.

man 1 top

-chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-26 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 13:11 How do I find out who uses swap? Maciej Soltysiak
2005-01-26 16:49 ` Chris Shoemaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox