linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Andrea Arcangeli <andrea@e-mind.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
	John Alvord <jalvo@cloud9.net>,
	Nimrod Zimerman <zimerman@deskmail.com>,
	Linux Kernel mailing list <linux-kernel@vger.rutgers.edu>,
	linux-mm@kvack.org
Subject: Re: VM20 behavior on a 486DX/66Mhz with 16mb of RAM
Date: Thu, 21 Jan 1999 14:47:31 GMT	[thread overview]
Message-ID: <199901211447.OAA01170@dax.scot.redhat.com> (raw)
In-Reply-To: <Pine.LNX.3.96.990119212155.402A-100000@laser.bogus>

Hi,

On Tue, 19 Jan 1999 21:35:33 +0100 (CET), Andrea Arcangeli
<andrea@e-mind.com> said:

> My point is that the algorithm to do something of useful and safe needs an
> objective to reach. The algorithm need to know what has to do. I learn to
> the algorithm what to do, nothing more.

No.  The algorithm should react to the current *load*, not to what it
thinks the ideal parameters should be.  There are specific things you
can do to the VM which completely invalidate any single set of cache
figures.  For example, you can create large ramdisks which effectively
lock large amounts of memory into the buffer cache, and there's nothing
you can do about that.  If you rely on magic numbers to get the
balancing right, then performance simply disappears when you do
something unexpected like that.

This is not supposition.  This is the observed performance of VMs which
think they know how much memory should be allocated for different
purposes.  You cannot say that cache should be larger than or smaller
than a particular value, because only the current load can tell you how
big the cache should be and that load can vary over time.

> I dropped all others bogus percentage levels. So at least my code is
> 6/1 times less Horrible than pre8 (and sctvm) from your `must work
> (and mess) with magic' point of view.

sctvm used figures of (I think) 1% and 100% for the minimum and maximum
buffer/cache values.  In other words, the mechanism was there to let the
user set limits, but it wasn't used by default.

> If I am missing something (again ;) comments are always welcome.

Yes.  Offer the functionality of VM limits, sure.  Relying on it is a
disaster if the user does something you didn't predict.

--Stephen
--
This is a majordomo managed list.  To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org

  reply	other threads:[~1999-01-21 14:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19990116115459.A7544@hexagon>
1999-01-16 13:22 ` Andrea Arcangeli
1999-01-16 16:37   ` Andrea Arcangeli
1999-01-19 18:02   ` Stephen C. Tweedie
1999-01-19 20:09     ` John Alvord
1999-01-19 20:35       ` Andrea Arcangeli
1999-01-21 14:47         ` Stephen C. Tweedie [this message]
1999-01-21 19:32           ` Andrea Arcangeli
1999-01-23 19:16             ` Stephen C. Tweedie

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=199901211447.OAA01170@dax.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=andrea@e-mind.com \
    --cc=jalvo@cloud9.net \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=zimerman@deskmail.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