public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin LaHaise <bcrl@redhat.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Stephan von Krawczynski <skraw@ithnet.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch] mempool-2.5.1-D2
Date: Mon, 17 Dec 2001 15:44:23 -0500	[thread overview]
Message-ID: <20011217154423.B9581@redhat.com> (raw)
In-Reply-To: <20011217171931.1a87bab2.skraw@ithnet.com> <Pine.LNX.4.33.0112172140430.17088-100000@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.33.0112172140430.17088-100000@localhost.localdomain>; from mingo@elte.hu on Mon, Dec 17, 2001 at 09:56:07PM +0100

On Mon, Dec 17, 2001 at 09:56:07PM +0100, Ingo Molnar wrote:
> sure, the pool will run out under heavy VM load. Will it stay empty
> forever? Nope, because all mempool users are *required* to deallocate the
> buffer after some (reasonable) timeout. (such as IO latency.) This is
> pretty much by definition. (Sure there might be weird cases like IO
> failure timeouts, but sooner or later the buffer will be returned, and it
> will be reused.)

loop.  deadlock.  kmap.  deadlock.  You've got a lot of code to fix before 
this statement is remotely true.

> (by the way, this is true for every other reservation solution as well,
> just look at the patches. You wont resize on the fly whenever there is
> shortage - thats the problem with shortages, there just wont be more RAM.
> If anyone uses reserved pools and doesnt release those buffers then we are
> deadlocked. Memory reserves *must not* be used as a kmalloc pool. Doing
> that can be considered an advanced form of a 'memory leak'.)

Absolutely.  That's why I think we should at least do some work on design 
of the code so that we have an idea of what the pitfalls are, plus 
documentation before putting it into the kernel.

		-ben
-- 
Fish.

  reply	other threads:[~2001-12-17 20:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-15 22:17 [patch] mempool-2.5.1-D2 Ingo Molnar
2001-12-17 16:19 ` Stephan von Krawczynski
2001-12-17 20:56   ` Ingo Molnar
2001-12-17 20:44     ` Benjamin LaHaise [this message]
2001-12-17 23:57     ` Stephan von Krawczynski
2001-12-18 16:43       ` Ingo Molnar
2001-12-18 15:36         ` Stephan von Krawczynski
  -- strict thread matches above, loose matches on Subject: below --
2001-12-14 18:14 [patch] mempool-2.5.1-D1 Ingo Molnar
2001-12-14 19:13 ` [patch] mempool-2.5.1-D2 Ingo Molnar
2001-12-14 22:27   ` Benjamin LaHaise
2001-12-15  6:41     ` Ingo Molnar
2001-12-15  5:29       ` Benjamin LaHaise
2001-12-15 17:50       ` Stephan von Krawczynski
2001-12-18  0:46       ` 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=20011217154423.B9581@redhat.com \
    --to=bcrl@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=skraw@ithnet.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