public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Swap Usage with Kernel 2.4.14
@ 2001-11-17  0:42 war
  2001-11-17  2:13 ` Mike Fedyk
  2001-11-17 11:18 ` Alvaro Lopes
  0 siblings, 2 replies; 6+ messages in thread
From: war @ 2001-11-17  0:42 UTC (permalink / raw)
  To: linux-kernel

Regular usage on my box, launching netscape, opera, pan, xchat, gaim;
the kernel eventually digs into swap.

However, the swap is never released?

Mem:   900596K av,  185896K used,  714700K free,       0K shrd,    4172K
buff
Swap: 2048276K av,   63728K used, 1984548K free                   91176K
cached

Are there any settings I should have set or be aware of?

I current use 4GB support, 1GB of ram, 2GB of swap.

Having 1GB, I thought I had enough memory for basic operations without
the disk swapping like mad.


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

* Re: Swap Usage with Kernel 2.4.14
  2001-11-17  0:42 Swap Usage with Kernel 2.4.14 war
@ 2001-11-17  2:13 ` Mike Fedyk
  2001-11-17 11:18 ` Alvaro Lopes
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Fedyk @ 2001-11-17  2:13 UTC (permalink / raw)
  To: war; +Cc: linux-kernel

On Fri, Nov 16, 2001 at 07:42:29PM -0500, war wrote:
> Regular usage on my box, launching netscape, opera, pan, xchat, gaim;
> the kernel eventually digs into swap.
> 
> However, the swap is never released?
> 
> Mem:   900596K av,  185896K used,  714700K free,       0K shrd,    4172K
> buff
> Swap: 2048276K av,   63728K used, 1984548K free                   91176K
> cached
> 
> Are there any settings I should have set or be aware of?
> 
> I current use 4GB support, 1GB of ram, 2GB of swap.
> 
> Having 1GB, I thought I had enough memory for basic operations without
> the disk swapping like mad.

run top and change it to show the "swap" field.  Now check to see which
processes are in swap...

Does anyone know another way to get this information?  I didn't find
anything in ps that would help... :(

Mike

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

* Re: Swap Usage with Kernel 2.4.14
  2001-11-17  0:42 Swap Usage with Kernel 2.4.14 war
  2001-11-17  2:13 ` Mike Fedyk
@ 2001-11-17 11:18 ` Alvaro Lopes
  2001-11-17 15:05   ` safemode
  1 sibling, 1 reply; 6+ messages in thread
From: Alvaro Lopes @ 2001-11-17 11:18 UTC (permalink / raw)
  To: war; +Cc: Linux Kernel

On Sáb, 2001-11-17 at 00:42, war wrote:
> Regular usage on my box, launching netscape, opera, pan, xchat, gaim;
> the kernel eventually digs into swap.
> 
> However, the swap is never released?
> 
> Mem:   900596K av,  185896K used,  714700K free,       0K shrd,    4172K
> buff
> Swap: 2048276K av,   63728K used, 1984548K free                   91176K
> cached
> 
> Are there any settings I should have set or be aware of?
> 
> I current use 4GB support, 1GB of ram, 2GB of swap.
> 
> Having 1GB, I thought I had enough memory for basic operations without
> the disk swapping like mad.
> 

AFAIK with 2.4.14 processes can be in memory and swap at the same time. 

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



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

* Re: Swap Usage with Kernel 2.4.14
@ 2001-11-17 14:59 Ed Tomlinson
  0 siblings, 0 replies; 6+ messages in thread
From: Ed Tomlinson @ 2001-11-17 14:59 UTC (permalink / raw)
  To: linux-kernel

> I current use 4GB support, 1GB of ram, 2GB of swap.
> 
> Having 1GB, I thought I had enough memory for basic operations without
> the disk swapping like mad.

In 2.4.14 linux leave pages in swap when swaping in.  This is a win when
the page has not been changed and there is memory pressure.  This behavior
is maintained until swap is 50% full.  An this point linux starts releasing
swap pages at swapin.

In short linux keeps pages in swap and memory to perform better but starts
releasing swap pages when swap start filling.

Ed Tomlinson
 

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

* Re: Swap Usage with Kernel 2.4.14
  2001-11-17 11:18 ` Alvaro Lopes
@ 2001-11-17 15:05   ` safemode
  2001-11-17 21:43     ` Mike Fedyk
  0 siblings, 1 reply; 6+ messages in thread
From: safemode @ 2001-11-17 15:05 UTC (permalink / raw)
  To: Alvaro Lopes, war; +Cc: Linux Kernel

On Saturday 17 November 2001 06:18, Alvaro Lopes wrote:
> On Sáb, 2001-11-17 at 00:42, war wrote:
> > Regular usage on my box, launching netscape, opera, pan, xchat, gaim;
> > the kernel eventually digs into swap.
> >
> > However, the swap is never released?
> >
> > Mem:   900596K av,  185896K used,  714700K free,       0K shrd,    4172K
> > buff
> > Swap: 2048276K av,   63728K used, 1984548K free                   91176K
> > cached
> >
> > Are there any settings I should have set or be aware of?
> >
> > I current use 4GB support, 1GB of ram, 2GB of swap.
> >
> > Having 1GB, I thought I had enough memory for basic operations without
> > the disk swapping like mad.
>
> AFAIK with 2.4.14 processes can be in memory and swap at the same time.
>

look at swap cached in /proc/meminfo       that will tell you what is 
mirrored. 
Also, your box may not be actually doing much swapping if any at all.  vmstat 
will tell if you're actually doing any swapping at a given time.  
Allocation may carry over to swap, but it doesn't effect performance in any 
way in doing so.  That's why looking at anything but vmstat really wont tell 
you much about what's actually being used in swap. 

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

* Re: Swap Usage with Kernel 2.4.14
  2001-11-17 15:05   ` safemode
@ 2001-11-17 21:43     ` Mike Fedyk
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Fedyk @ 2001-11-17 21:43 UTC (permalink / raw)
  To: safemode; +Cc: Alvaro Lopes, war, Linux Kernel

On Sat, Nov 17, 2001 at 10:05:02AM -0500, safemode wrote:
> Also, your box may not be actually doing much swapping if any at all.  vmstat 
> will tell if you're actually doing any swapping at a given time.  
> Allocation may carry over to swap, but it doesn't effect performance in any 
> way in doing so.  That's why looking at anything but vmstat really wont tell 
> you much about what's actually being used in swap. 

procinfo will also list the number of swap(in|out) since the last reboot...

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

end of thread, other threads:[~2001-11-17 21:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-17  0:42 Swap Usage with Kernel 2.4.14 war
2001-11-17  2:13 ` Mike Fedyk
2001-11-17 11:18 ` Alvaro Lopes
2001-11-17 15:05   ` safemode
2001-11-17 21:43     ` Mike Fedyk
  -- strict thread matches above, loose matches on Subject: below --
2001-11-17 14:59 Ed Tomlinson

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