From: Christopher B. Browne <cbbrowne@knuth.brownes.org>
Subject: Re: bogus swap space rule-of-thumb (was Re: UDB ( adding memory ))
Date: Sun, 13 Apr 1997 07:54:00 -0500 [thread overview]
Message-ID: <94dfa9338d8c68785e0d0894e11dfd3f.axp-list@archive.invalid> (raw)
> > For Linux/x86 twice the memsize is recommended for swap. I believe that
> > this is generally assumed to be valid for axp as well, but I doubt if
> > anyone ever investigated this.
>
> Gee, so on my Intel box which has 192M of physical RAM, I should have
> 384M of swap? And on my Alpha with 88M of RAM I should have 176M of swap?
> I don't think so.
>
> The problem with this sort of rule of thumb is that it has no objective
> basis. The fact that I have x megabytes of physical memory doesn't in any
> way suggest that I need 3x megabytes of virtual.
On the contrary, there is an objective basis. Just not for Linux.
BSD variants have long required that swap be at least twice the size of
physical RAM. This allowed kernel memory allocation code to make certain
assumptions (that I don't recall).
At one time, the Linux kernel may have laboured under similar assumptions, but
that's definitely not been true for several years; swap>2*real was not
required when I first installed 1.0.9 back in 1994. At that time, the
limitation I had was that I couldn't have swap partitions *larger* than
2*real, because I had 8MB of RAM, and Linux only supported 16MB swap
partitions. The limits have, of course, grown since then.
--
Christopher B. Browne, cbbrowne@unicomp.net, chris_browne@sdt.com
Web: http://www.conline.com/~cbbrowne SAP Basis Consultant, UNIX Guy
Windows NT - How to make a 100 MIPS Linux workstation perform like an 8 MHz 286
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-04-13 12:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-13 12:54 Christopher B. Browne [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-04-14 16:19 bogus swap space rule-of-thumb (was Re: UDB ( adding Przemek Klosowski
1997-04-14 17:02 ` bogus swap space rule-of-thumb (was Re: UDB ( adding memory )) Andreas Kostyrka
1997-04-13 9:57 Eric Smith
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox