public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Ford <david@blue-labs.org>
To: klink@clouddancer.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: "VM watchdog"? [was Re: VM nuisance]
Date: Fri, 17 Aug 2001 16:38:38 -0400	[thread overview]
Message-ID: <3B7D80CE.1070303@blue-labs.org> (raw)
In-Reply-To: <3B748AA8.4010105@blue-labs.org>    <20010814140011.B38@toy.ucw.cz> <20010817002420.C30521@unthought.net> <3B7C72CE.60601@blue-labs.org> <9li6sf$h5$1@ns1.clouddancer.com> <20010817090440.4A63B783F6@mail.clouddancer.com>

>
>
>>The kernel allocates memory within itself.  We will still reach OOM 
>>conditions.  It can't be avoided.
>>
>
>That doesn't sound good.
>
>What bugs me about this statement was that until 2.4, I never had
>lockups.  I sometimes had a LOT of swapping and slow response, but I
>also knew that running a complex numeric simulation when RAM <
>'program needs' does that.  I accepted it and tended to arrange such
>runs in my absence.  Now I find that I get some process nuked (or
>worse - partially nuked) even after increasing to 4x swap and
>eliminating lazy habits that would leave some idle process up for a
>few days in case I needed it again (worked fine in 2.0.36).  There are
>_alot_ of good things in 2.4, but sometimes....
>
>
>Does your statement imply that a machine left "alone" must eventually
>OOM given enough runtime??  It seems that it must.
>

Nope, not at all.  The kernel acquires and releases memory as it goes. 
 My statement is to the fact that we can reach a point where we have 
exhausted all the memory resources by the time we start a particular 
code path but in order to complete that code path we need more memory. 
 I.e. journaled filesystems.  We have reached 0 memory but we need to 
start down a code path to update data on the disk.  That means we may 
have to allocate memory to read and update the journal as we start 
writing regular file data to disk.

This only occurs when we ride right on the very edge of OOM.  This will 
also be fixed when we implement all the desired bean counting.

David



      reply	other threads:[~2001-08-17 20:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-11  1:30 VM nuisance David Ford
2001-08-11  2:48 ` Rik van Riel
2001-08-11  2:59   ` H. Peter Anvin
2001-08-11  4:17     ` Rik van Riel
2001-08-11  4:40       ` David Ford
2001-08-11  4:46         ` Rik van Riel
2001-08-11  4:41       ` safemode
2001-08-11  5:00       ` H. Peter Anvin
2001-08-11 13:13     ` Alan Cox
2001-08-11 15:39       ` David Ford
2001-08-11  3:50   ` safemode
2001-08-12 13:09   ` Maciej Zenczykowski
2001-08-12 13:45     ` Rik van Riel
2001-08-16 23:29       ` Justin A
2001-08-17  0:06         ` Dr. Kelsey Hudson
2001-08-17  0:24           ` Justin A
2001-08-17  2:54             ` Dr. Kelsey Hudson
2001-08-12 23:05     ` Dan Mann
     [not found]   ` <9l5v9a$ha9$1@ns1.clouddancer.com>
2001-08-13  0:01     ` Colonel
2001-08-13 14:32   ` dean gaudet
2001-08-13 19:47     ` Brian
2001-08-14  8:27     ` Helge Hafting
2001-08-17 13:34       ` Szabolcs Szakacsits
2001-08-17 17:29         ` Rik van Riel
2001-08-14 14:00 ` "VM watchdog"? [was Re: VM nuisance] Pavel Machek
2001-08-16 22:24   ` Jakob Østergaard
2001-08-17  1:26     ` David Ford
2001-08-17  1:41       ` Jakob Østergaard
     [not found]       ` <9li6sf$h5$1@ns1.clouddancer.com>
2001-08-17  9:04         ` Colonel
2001-08-17 20:38           ` David Ford [this message]

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=3B7D80CE.1070303@blue-labs.org \
    --to=david@blue-labs.org \
    --cc=klink@clouddancer.com \
    --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