mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Rik van Riel <riel@conectiva.com.br>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Out of memory handling broken
Date: Wed, 26 Sep 2001 16:03:06 +0200	[thread overview]
Message-ID: <20010926160306.D7290@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20010925003416.A151@bug.ucw.cz> <Pine.LNX.4.33L.0109251702540.26091-100000@duckman.distro.conectiva>
In-Reply-To: <Pine.LNX.4.33L.0109251702540.26091-100000@duckman.distro.conectiva>

Hi!

> > I need to allocate as much memory as possible (but not more).
> > Okay, so I use out_of_memory, right?
> 
> Nope, out_of_memory() is about virtual memory handling,
> not at all about physical memory.

Yes, so... What happens at physical memory exhaustion? System crash?

> > But, when I looked into out_of_memory... Of course its
> > wrong. out_of_memory() contains
> >
> >         if (nr_swap_pages > 0)
> >                 return 0;
> >
> > ...which is obviously wrong. It is well possible to have free
> > swap _and_ be out of memory -- eat_memory() loop gets system to
> > this state easily.
> 
> This is because you're using out_of_memory() for something
> it was never meant for.  ;)

Okay, okay. Is there any solution (in 2.4.10) in doing what I want to
do?

								Pavel
-- 
Causalities in World Trade Center: 6453 dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.

  reply	other threads:[~2001-09-26 14:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-24 22:34 Pavel Machek
2001-09-25 20:05 ` Rik van Riel
2001-09-26 14:03   ` Pavel Machek [this message]
2001-09-26 14:08     ` Rik van Riel
2001-09-26 14:25       ` Pavel Machek

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=20010926160306.D7290@atrey.karlin.mff.cuni.cz \
    --to=pavel@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riel@conectiva.com.br \
    /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®