linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Rik van Riel <riel@nl.linux.org>
Cc: Bernd Kaindl <bk@suse.de>,
	Linux Kernel <linux-kernel@vger.rutgers.edu>,
	kernel@suse.de, linux-mm@kvack.org,
	Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [patch] fix for OOM deadlock in swap_in (2.2.10) [Re: [test program] for OOM situations ]
Date: Sun, 4 Jul 1999 16:35:41 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9907041624010.2274-100000@laser.random> (raw)
In-Reply-To: <Pine.LNX.4.03.9907041142420.216-100000@mirkwood.nl.linux.org>

On Sun, 4 Jul 1999, Rik van Riel wrote:

>I'm curious why you haven't yet included my process
>selection algoritm. I know it can select a blocked
>or otherwise unkillable process the way the code is
>in right now, but a workaround for that can be made
>in about 5 minutes.

Yes, we can try killing the "best" task some time and cache it's task
struct, if the task won't go away shortly (say in 5 sec) then we can
revert to the safe choice (we always have) of killing the current task
that will sure return to userspace soon.

I didn't merged your selection algorithm in the patch I posted, only
because I tried to produce a patch with only bugfix and simple things
included to give it a way to go into 2.2.11. The only object of the patch
is to avoid linux to deadlock and avoid init to be screwed up. You can
still avoid the admin to login on the console with an evil script, but the
kernel will continue running fine (no deadlock). That's what 2.2.x should
do just now.

>The "show me the code" attitude doesn't seem to fit
>me now, unfortunately. I'm still busy moving house
>and I have to be a good python programmer by tomorrow.
>Having never seen much python but with the book in
>front of me :)

Don't worry, a friend of mine said me that phyton is very easy to learn
:). I can't talk of myself since I never used phyton (I'll try it soon
though).

Andrea

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

  reply	other threads:[~1999-07-04 14:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.10.9907010152410.17156-100000@Wotan.suse.de>
1999-07-03 13:52 ` Andrea Arcangeli
1999-07-04  9:48   ` Rik van Riel
1999-07-04 14:35     ` Andrea Arcangeli [this message]
1999-07-04 17:11     ` Linus Torvalds
1999-07-04 17:38       ` Andrea Arcangeli
1999-07-04 17:49         ` Linus Torvalds
1999-07-04 20:15           ` Andrea Arcangeli
1999-07-04 20:32             ` Linus Torvalds

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.LNX.4.10.9907041624010.2274-100000@laser.random \
    --to=andrea@suse.de \
    --cc=bk@suse.de \
    --cc=kernel@suse.de \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=riel@nl.linux.org \
    --cc=torvalds@transmeta.com \
    /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