From: Stephan von Krawczynski <skraw@ithnet.com>
To: <mingo@elte.hu>
Cc: bcrl <bcrl@redhat.com>, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch] mempool-2.5.1-D2
Date: Tue, 18 Dec 2001 00:57:01 +0100 [thread overview]
Message-ID: <200112172357.AAA17058@webserver.ithnet.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0112172140430.17088-100000@localhost.localdomain>
>
> On Mon, 17 Dec 2001, Stephan von Krawczynski wrote:
>
> > [...] You will obviously _not_ shoot down allocated and still used
> > bios, no matter how long they are going to take. So your fixed
size
> > pool will run out in certain (maybe weird) conditions. If you
cannot
> > resize (alloc additional mem from standard VM) you are just dead.
>
> 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.)
Hm, and where is the real-world-difference to standard VM? I mean
today your bad-ass application gets shot down by L's oom-killer and
your VM will "refill". So you're not going to die for long in the
current situation either.
I have yet to see the brilliance in mempools. I mean, for sure I can
imagine systems that are going to like it (e.g. embedded) a _lot_. But
these are far off the "standard" system profile.
I asked this several times now, and I will continue to, where is the
VM _design_ guru that explains the designed short path to drop page
caches when in need of allocable mem, regarding a system with
aggressive caching like 2.4? This _must_ exist. If it does not, the
whole issue is broken, and it is obvious that nobody will ever find an
acceptable implementation.
I turned this problem about a hundred times round now, and as far as I
can see everything comes down to the simple fact, that VM has to
_know_ the difference between a only-cached page and a _really-used_
one. And I do agree with Rik, that the only-cached pages need an aging
algorithm, probably a most-simple approach (could be list-ordering).
This should answer the question: who's dropped next?
On the other hand you have aging in the used-pages for finding out
who's swapped out next. BUT I would say that swapping should only
happen when only-cached pages are down to a minimum level (like 5% of
memtotal).
Forgive my simplistic approach, where are the guys to shoot me?
And where the hell is the need for mempool in this rough design idea?
Regards,
Stephan
next prev parent reply other threads:[~2001-12-17 23:57 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
2001-12-17 23:57 ` Stephan von Krawczynski [this message]
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=200112172357.AAA17058@webserver.ithnet.com \
--to=skraw@ithnet.com \
--cc=bcrl@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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