The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Is swap == 2 * RAM a permanent thing?
@ 2001-03-15 12:28 Mike A. Harris
  2001-03-15 13:08 ` Rik van Riel
  2001-03-15 15:23 ` Is swap == 2 * RAM a permanent thing? Ketil Froyn
  0 siblings, 2 replies; 21+ messages in thread
From: Mike A. Harris @ 2001-03-15 12:28 UTC (permalink / raw)
  To: Linux Kernel mailing list

Is the fact that we're supposed to use double the RAM size as
swap a permanent thing or a temporary annoyance that will get
tweaked/fixed in the future at some point during 2.4.x perhaps?

What are the technical reasons behind this change?  Just curious
as I see a lot of people are complaining about having to
repartition (although a slower swap file could be used also).

I'm curious because I currently have 96Mb of RAM and 256Mb of
swap, but swap rarely if ever gets used, and performance is very
good.  This is with 2.2.18 I'm speaking.

I'm planning on upping my RAM to 256Mb or more in the near future
however, and going to 2.4.3 or 2.4.4 when released, and since
96Mb does the job for me already it would suck to have to
increase swap at the same time when it never gets used as it is
right now.

Would it be better to make part of RAM a ramdisk and swap to
that?  Sounds like we're going backwards IMHO, but I don't
understand the details, so I'll let someone that does explain
them to me.

Thanks in advance.



----------------------------------------------------------------------
    Mike A. Harris  -  Linux advocate  -  Free Software advocate
          This message is copyright 2001, all rights reserved.
  Views expressed are my own, not necessarily shared by my employer.
----------------------------------------------------------------------
If it weren't for C, we'd all be programming in BASI and OBOL.


^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Is swap == 2 * RAM a permanent thing?
@ 2001-03-15 17:19 Torrey Hoffman
  2001-03-15 19:22 ` William T Wilson
  0 siblings, 1 reply; 21+ messages in thread
From: Torrey Hoffman @ 2001-03-15 17:19 UTC (permalink / raw)
  To: 'Rik van Riel', christophe barbe
  Cc: Mike A . Harris, Linux Kernel mailing list

IIRC, when this discussion of swap size first came up, the general 
conclusion was NOT that you should have swap = 2 * RAM, but that you 
should have swap(2.4.x) = 2 * swap(2.2.x), that is, twice as much swap 
as you did under 2.2.x.

So if you never swapped at all under 2.2.x, you should not need any 
swap space in 2.4.x either. 

Is this correct?  

Also, what would be the consequences of not having "enough" swap?  
Just OOM faster?  Or more serious than that?

I have 512MB of RAM and rarely swap, so normally have just a 256MB
swap partition.  Is this bad?  It seems to work fine...

Thanks!

Torrey Hoffman

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

end of thread, other threads:[~2001-03-19 15:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-15 12:28 Is swap == 2 * RAM a permanent thing? Mike A. Harris
2001-03-15 13:08 ` Rik van Riel
2001-03-15 14:24   ` Mike Harrold
2001-03-16  0:47     ` Rik van Riel
2001-03-15 16:09   ` christophe barbe
2001-03-15 23:26     ` Rik van Riel
2001-03-15 17:20       ` christophe barbe
2001-03-15 17:43       ` James Lewis Nance
2001-03-16  1:25         ` Rik van Riel
2001-03-16  2:52           ` kernel benchmark gis88530
2001-03-15 15:23 ` Is swap == 2 * RAM a permanent thing? Ketil Froyn
  -- strict thread matches above, loose matches on Subject: below --
2001-03-15 17:19 Torrey Hoffman
2001-03-15 19:22 ` William T Wilson
2001-03-16  2:44   ` Rik van Riel
2001-03-15 20:11     ` LA Walsh
2001-03-16  3:56       ` Rik van Riel
2001-03-15 21:45     ` Andrzej Krzysztofowicz
2001-03-16  5:08       ` Rik van Riel
2001-03-19 15:21         ` Guennadi Liakhovetski
2001-03-17 17:59     ` Boris Pisarcik
2001-03-17 17:53       ` Alexander Viro

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