linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Devillard <ndevilla@mygale.org>
To: linux-mm@kvack.org
Subject: memory overcommitment
Date: Mon, 17 Aug 1998 10:46:24 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.SOL.3.96.980817103420.26929A-100000@opus3> (raw)

Dear all:

I can allocate up to 2 gigs of memory on a Linux box with 256 megs of
actual RAM + swap. Having browsed through pages and pages of linux-kernel
mailing-lists archives, I found out a thread discussing that with the
usual pros and cons, but could not find anything done about it. Ah, and I
know the standard answer: ulimit or limit would do the job, but they do
not apply system-wide.

The usual story of over-commitment compares memory allocation to
airplane companies, but in this case something goes wrong: the kernel
actually knows that it has only 256 megs, why does it commit itself to
promise more than 8 times this amount to any normal user requesting it??
A company selling 100 tickets for a 12-seat plane would have serious
problems I guess. It is Ok to overbook, but what are you doing exactly
when all passengers show up at the counter, especially when you have
overbooked by a factor 8 or so?

In this case, I found out that once I start touching the 2 generously
allocated gigs of memory, RAM goes away, then swap, then daemons start
dying one by one and the machine freezes to the point of unusability. More
than a single memory allocation problem or policy, it is a serious threat
to security, because it allows to kill dameons for any user.

Anything done about it? Some references I may have missed about this
point? Someone working on it? An easy quickfix maybe??

Thanks for helping,
Nicolas

--
This is a majordomo managed list.  To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org

             reply	other threads:[~1998-08-17  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-17  8:46 Nicolas Devillard [this message]
1998-08-17 18:33 ` Stephen C. Tweedie
1998-08-18 15:52   ` Chris Atenasio
1998-08-19 12:08     ` Stephen C. Tweedie
1998-08-18 16:34   ` Nicolas Devillard
1998-08-19 12:07     ` Stephen C. Tweedie
1998-08-19 17:17       ` Nicolas Devillard

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=Pine.SOL.3.96.980817103420.26929A-100000@opus3 \
    --to=ndevilla@mygale.org \
    --cc=linux-mm@kvack.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