linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@digeo.com>
Cc: "Frederic Rossi (LMC)" <Frederic.Rossi@ericsson.ca>, linux-mm@kvack.org
Subject: Re: freemaps
Date: Sun, 15 Dec 2002 09:41:02 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.44.0212150926130.1831-100000@localhost.localdomain> (raw)
In-Reply-To: <3DFBF26B.47C04A6@digeo.com>

On Sat, 14 Dec 2002, Andrew Morton wrote:

> So this is the key part.  It is a per-mm linear list of unmapped areas.

yep.

> As this is a linear list, I do not understand why it does not have
> similar failure modes to the current search.  Suppose this list
> describes 100,000 4k unmapped areas and the application requests an 8k
> mmap??

i bet because in the (artificial?) test presented the 'hole' distribution
is much nicer than the 'allocated areas' distribution. There are real-life
allocation patterns, where this scheme suffers the same kind of regression
the old scheme suffered. Eg. the one i presented originally, which
triggered a regression, the NPTL stack allocator, where there is a 4K
unmapped area between thread stacks. Under that workload the
freemap-patched kernel will suffer badly over 2.5.50.

but the hole-index might in fact be a quality improvement in a number of
cases. It wont save us in a number of other cases, but one thing is sure:
holes do not have types, allocated vmas have. So the complexity of the
hole-space will always be at least as low as the complexity of the
allocated-area-space. If there are lots of vmas of different types then
the complexity of the hole-space can be significantly lower than the
complexity of the vma-space. This happens quite often.

a hybrid approach would keep both improvements: take the hole index _plus_
the free-area cache i introduced, and if there's a cachemiss, search the
hole-list.

another approach might be to maintain some sort of tree of holes.

	Ingo

--
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-12-15  8:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-14 22:47 freemaps Frederic Rossi (LMC)
2002-12-15  3:09 ` freemaps Andrew Morton
2002-12-15  8:41   ` Ingo Molnar [this message]
2002-12-15  9:03     ` freemaps Andrew Morton
2002-12-15  9:36       ` freemaps Ingo Molnar
2002-12-16  0:51       ` freemaps William Lee Irwin III
2002-12-16  1:03         ` freemaps Andrew Morton
2002-12-16  1:09           ` freemaps William Lee Irwin III

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.0212150926130.1831-100000@localhost.localdomain \
    --to=mingo@elte.hu \
    --cc=Frederic.Rossi@ericsson.ca \
    --cc=akpm@digeo.com \
    --cc=linux-mm@kvack.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