lkml.org 
[lkml]   [1998]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Swap area: why not more than 128M each?

I'm so sick of these rules..

They come from the days of super expensive ram..

The theory is: If your working set is large enough to warrent x ram then
you really need 4x ram.. This is silly!

I've got several computer that never need to hit swap, any the only reason
they have any swap at all is because I like them to be able to swap out
some app data to make room for more disk cache..


The only swap formula I consider valid is:

Swap = How much memory you need - How much you have.
(Rember that Linux doesn't use ram till it's written to, and when apps
fork it's copy-on-write.. OTOH, a app gone crazy can write to alot more
memory then it should, and linux doesn't handle out of memory situations
very well)

I doubt that many people today need 4x what they have..

On Fri, 13 Mar 1998, Mark H. Wood wrote:

> On Fri, 13 Mar 1998 p0thead@ooz.net wrote:
>
> > Not to sound like a dork, but why edo you need a gig of swap? just curious
> > :)
>
> Rule of thumb: swap >= 4 * physical_memory
>
> > On Fri, 13 Mar 1998, Werner Almesberger wrote:
> >
> > > Gabriele Paciucci wrote:
> > > > Yes but you can use more 128M partitions!!!
> > >
> > > Sigh, yes ...
> > >
> > > Device Boot Begin Start End Blocks Id System
> > > /dev/sda1 1 1 7 56196 83 Linux native
> > > /dev/sda2 8 8 24 136552+ 82 Linux swap
> > > /dev/sda3 25 25 41 136552+ 82 Linux swap
> > > /dev/sda4 42 42 526 3895762+ 5 Extended
> > > /dev/sda5 43 43 59 136552+ 82 Linux swap
> > > /dev/sda6 60 60 76 136552+ 82 Linux swap
> > > /dev/sda7 77 77 93 136552+ 82 Linux swap
> > > /dev/sda8 94 94 110 136552+ 82 Linux swap
> > > /dev/sda9 111 111 127 136552+ 82 Linux swap
> > > /dev/sda10 128 128 144 136552+ 82 Linux swap
> > > /dev/sda11 145 145 210 530145 83 Linux native
> > > /dev/sda12 211 211 526 2538270 83 Linux native
> > >
> > > That's a machine with 256 MB RAM. I always feel extremely stupid when my
> > > auto-install script starts creating partitions in the two-digit range
> > > just because of that darn swap limit ...
>
> --
> Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu
> One more time: a (level-2) switch is a bridge. A "level-3 switch" is
> a router. Deal with it.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.044 / U:1.968 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site