linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: "Martin J. Bligh" <mbligh@aracnet.com>
Cc: Andrew Morton <akpm@digeo.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-mm@kvack.org
Subject: Re: overcommit stuff
Date: Sun, 22 Sep 2002 02:04:04 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0209220151030.2448-100000@localhost.localdomain> (raw)
In-Reply-To: <16785326.1032628095@[10.10.2.3]>

On Sat, 21 Sep 2002, Martin J. Bligh wrote:
> 
> > The usual tricks for amortising this counter's cost have (serious)
> > accuracy implications.
> 
> Well, seems it's a rough guess anyway ... at least it's vastly
> inaccurate in one direction (pessimistic).

Yesss.  I don't think it matters much if it's somewhat inaccurate
(the half-of-memory thing is just pulled out of a hat anyway, isn't
it? and there's no accounting for taste^Hthe kernel's memory usage,
just a hope that it won't go over half).

But it would be very wrong to introduce any indeterminacy in the
calculations, such that the numbers might progressively drift
further and further away from what's right.  That's one of the
reasons it ends up so pessimistic, because it would be impossible
(or too costly) to do the accounting otherwise.

> I was thinking of moving the update in vm_enough_memory under
> the switch for what type of overcommit you had, and doing something
> similar for the other places it's updated. I suppose that would do
> unfortunate things if you turned overcommit from 1 to something
> else whilst the system was running though ... not convinced that's
> a good idea anyway OTOH.

It is intended that you should be able to switch commit modes while
running.  There is one hole there that we've not got around to
plugging yet, the handling of MAP_NORESERVE, but otherwise I believe
it makes sense: please don't take that away.

I like to see those Committed_AS numbers (though I don't care for
the "_AS" prefix), even though I run loose.

Hugh

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

  reply	other threads:[~2002-09-22  1:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-21 23:27 Andrew Morton
2002-09-21 23:28 ` William Lee Irwin III
2002-09-21 23:31 ` Martin J. Bligh
2002-09-22  0:03   ` Andrew Morton
2002-09-22  0:08     ` Martin J. Bligh
2002-09-22  1:04       ` Hugh Dickins [this message]
2002-09-22  1:07         ` Martin J. Bligh
2002-09-21 23:46 ` Hugh Dickins
2002-09-21 23:53   ` Andrew Morton
2002-09-22  0:49     ` Hugh Dickins
2002-09-22  1:07       ` Andrew Morton
2002-09-22  1:45         ` Hugh Dickins
2002-09-22  1:49           ` Andrew Morton
2002-09-21 23:53   ` William Lee Irwin III
2002-09-22  1:12     ` Andrew Morton

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.44.0209220151030.2448-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=akpm@digeo.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-mm@kvack.org \
    --cc=mbligh@aracnet.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