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 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

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