public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Rohland <cr@sap.com>
To: Matt_Domsch@Dell.com
Cc: linux-kernel@vger.kernel.org, R.E.Wolff@BitWizard.nl, fluffy@snurgle.org
Subject: Re: 2.4 and 2GB swap partition limit
Date: 05 Mar 2001 09:58:00 +0100	[thread overview]
Message-ID: <m3n1b0h9t3.fsf@linux.local> (raw)
In-Reply-To: <CDF99E351003D311A8B0009027457F1403BF9E09@ausxmrr501.us.dell.com>
In-Reply-To: <CDF99E351003D311A8B0009027457F1403BF9E09@ausxmrr501.us.dell.com>

Hi Matt,

On Sun, 4 Mar 2001, Matt Domsch wrote:
> My concern is that if there continues to be a 2GB swap
> partition/file size limitation, and you can have (as currently
> #defined) 8 swap partitions, you're limited to 16GB swap, which then
> follows a max of 8GB RAM.  We'd like to sell servers with 32GB or
> 64GB RAM to customers who request such for their applications.  Such
> customers generally have no problem purchasing additional disks to
> be used for swap, likely on a hardware RAID controller.

I did think about that too and I also think the 2GB limit is not
appropriate for the big servers. But I do not beleive that you need so
much swap on these machines. If you drive a 32 GB machine so heavily
into swap it is more busy finding the pages to swap than doing
anything really interesting. (At least that's my experience)

BTW often these big servers run databases and application servers
which have most of their memory in shared memory. Shared memory does
free the swap entries on swapin. (I thought about changing that but as
long as we have no garbage collection for idle swap entries I will not
do it)

On any loaded server you have to check the swap space requirements
regularly and adjust to your needs. But to setup more than let's
say 8GB swap is a waste of resource IMHO.

> We've also seen (anecdotal evidence here) cases where a kernel
> panics, which we believe may have to do with having 0 < swap < 2x
> RAM.  We're investigating further.

That would be a kernel bug which should be fixed. The kernel should
handle oom/oos.

>> Actually the deal is: either use enough swap (about 2x RAM) or use
>> none at all. 
> 
> If swap space isn't required in all cases, great!  We'll encourage
> the use of swap files as needed, rather than swap partitions.  But,
> if instead you *require* swap = 2x RAM, then the 2GB swap size
> limitation must go.

No it is not strictly required.

But still the 2GB limit is annoying and together with the
arch-independent maximum number of swap partitions/files it is pretty
dumb. 

So I would propose to first make a small patch to make MAX_SWAPFILES
arch-dependent and bigger. (x86 would allow a muc higher
MAX_SWAPFILES)

For 2.5 we could perhaps think about a new swapfile layout which
allows bigger partitions.

Greetings
		Christoph



  reply	other threads:[~2001-03-05  8:51 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-04 22:04 2.4 and 2GB swap partition limit Matt_Domsch
2001-03-05  8:58 ` Christoph Rohland [this message]
2001-03-05 14:30   ` Rik van Riel
2001-03-05 14:36   ` Rik van Riel
2001-03-05 14:52   ` Matti Aarnio
2001-03-05 13:30 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2001-05-03 14:04 Ishikawa
2001-04-30 18:45 Torrey Hoffman
2001-04-30 19:04 ` Richard B. Johnson
2001-04-30 19:07   ` David S. Miller
2001-04-30 19:14     ` Richard B. Johnson
2001-04-30 21:04       ` Andreas Ferber
2001-05-02 14:31     ` Andi Kleen
2001-05-02 22:17       ` Andreas Dilger
2001-05-04  8:16         ` Andi Kleen
2001-03-05 16:53 Andries.Brouwer
2001-03-02 21:23 Matt_Domsch
2001-03-02 23:52 ` Kenneth Johansson
2001-03-03  6:14 ` William T Wilson
2001-03-03 11:14   ` Rogier Wolff
2001-03-08 13:05     ` Goswin Brederlow
2001-04-27 10:51       ` Xavier Bestel
2001-04-27 11:13         ` Rogier Wolff
2001-04-27 20:52           ` LA Walsh
2001-04-27 21:44             ` Rik van Riel
2001-04-27 22:06               ` Thomas Dodd
2001-04-27 22:40               ` Hugh Dickins
2001-04-27 22:40                 ` Rik van Riel
2001-04-29 15:12                 ` Ingo Oeser
2001-04-27 22:44               ` LA Walsh
2001-04-28  7:47             ` Rogier Wolff
2001-04-27 22:22           ` Wakko Warner
2001-04-28 13:17             ` Rogier Wolff
2001-04-28 13:37               ` Wakko Warner
2001-04-28 14:11                 ` Rogier Wolff
2001-04-28 14:28                   ` J . A . Magallon
2001-04-30 18:12                     ` Alan Cox
2001-05-01 13:00                       ` Stephen C. Tweedie
2001-05-01 16:14                         ` Rogier Wolff
2001-05-01 16:35                           ` Stephen C. Tweedie
2001-05-02 10:54                             ` Rogier Wolff
2001-05-02 11:04                               ` Stephen C. Tweedie
2001-05-02 12:49                                 ` Hugh Dickins
2001-05-02 13:43                                   ` Stephen C. Tweedie
2001-05-02  0:28                         ` Rik van Riel
2001-05-02  0:34                           ` David S. Miller
2001-05-02  0:43                             ` Rik van Riel
2001-05-02  1:14                               ` Roger Larsson
2001-05-02  1:30                                 ` Rik van Riel
2001-05-01 13:39                       ` Christoph Rohland
2001-05-01 23:25                         ` Rik van Riel
2001-04-28 18:04                   ` Albert D. Cahalan
2001-04-28 21:23                     ` Rogier Wolff
2001-04-29  1:43                     ` Jonathan Lundell
2001-04-29  9:17                       ` Kenneth Johansson
2001-04-28 18:21                   ` David Lang
2001-04-28 21:25                     ` Rogier Wolff
2001-04-30 18:14               ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3n1b0h9t3.fsf@linux.local \
    --to=cr@sap.com \
    --cc=Matt_Domsch@Dell.com \
    --cc=R.E.Wolff@BitWizard.nl \
    --cc=fluffy@snurgle.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox