mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@gmx.net>
To: linux-kernel@vger.kernel.org
Subject: 2.4 kernel series and the oom_killer and /proc/sys/vm/overcommit_memory
Date: Thu, 22 Aug 2002 17:19:50 +0200	[thread overview]
Message-ID: <200208221719.50568.m.c.p@gmx.net> (raw)

Hi there,

I just have one question.

If I understand it correct, /proc/sys/vm/overcommit_memory controls if there 
is "1" always enough memory and if "0" every program call checks if there is 
enough memory.

I just tried to open up much Xterms until my RAM + SWAP is full. The system is 
up and response is slowly for ~ 5 minutes, doing whatever, swapping or kinda 
that. This was tested with overcommit_memory == 0 ... With 2.4.19, the 
oom_killer comes NOT in action, after the 5 minutes the system is dead. With 
2.4.18's oom_killer there are program kills at random.

My question now: Why isn't it possible, if overcommit_memory is 0, to really 
check if there is enough memory or not, and if NOT just to display a message 
like "Not enough memory for execution. Aborted" ?

TIA!

-- 
Kind regards
        Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16
Key available at www.keyserver.net. Encrypted e-mail preferred.

             reply	other threads:[~2002-08-22 15:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-22 15:19 Marc-Christian Petersen [this message]
2002-08-22 17:22 ` Robert Love
2002-08-22 17:32 ` Alan Cox
2002-08-24  2:07   ` Daniel Phillips
2002-08-24  3:46     ` Rik van Riel
2002-08-24 13:42       ` Daniel Phillips

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=200208221719.50568.m.c.p@gmx.net \
    --to=m.c.p@gmx.net \
    --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

all inboxes | Powered by JetHome®