All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-mips@oss.sgi.com
Subject: [RFC] tree-based bootmem
Date: Mon, 26 Nov 2001 22:38:22 -0800	[thread overview]
Message-ID: <20011126223822.N1048@holomorphy.com> (raw)

A number of people have expressed a wish to replace the bitmap-based            
bootmem allocator with one that tracks ranges explicitly. I have
written such a replacement in order to deal with some of the situations
I have encountered, in particular, to require less programming effort
to initialize on machines with sparse and irregular memory layouts.

The following patch features space usage proportional only to the number
of distinct fragments of memory, tracking available memory at address
granularity up until the point of initializing per-page data structures,
and the use of segment trees in order to support efficient searches on
those rare machines where this is an issue. According to testing, this
patch appears to save somewhere between 8KB and 2MB on i386 PC's versus
the bitmap-based bootmem allocator.

The following patch has been tested on i386 PC's, IA64 Lions, Netwinders,
DecStation 5000/200's, and IBM IA64 NUMA hardware with sparse memory,
and debugged without the help of logic analyzers or in-target probes. I
would like to thank the testers of #kernelnewbies (reltuk and asalib)
and my co-workers for their help in making this work, and Tony Luck and
Jack Steiner for their assistance in profiling the existing bootmem.

I am now especially interested in feedback regarding its design, and
also the results of wider testing.

The patch is available at

  ftp://ftp.kernel.org/pub/linux/kernel/people/wli/bootmem/bootmem-2.5.1-pre1


Cheers,
Bill

             reply	other threads:[~2001-11-27  7:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-27  6:38 William Lee Irwin III [this message]
     [not found] <20011118005819.3762.qmail@science.horizon.com>
2001-11-18  1:24 ` [RFC] tree-based bootmem William Lee Irwin III
  -- strict thread matches above, loose matches on Subject: below --
2001-11-17  9:14 William Lee Irwin III
     [not found] ` <20011118001657.A467@ucw.cz>
2001-11-18  0:01   ` William Lee Irwin III
2001-11-19  8:08     ` Robert Love
2001-11-26 21:02       ` Martin Mares
2001-11-21 16:20 ` William Lee Irwin III
2001-11-23  9:30 ` William Lee Irwin III
2001-11-28  9:04 ` Chris Wright
2001-11-28 12:40   ` William Lee Irwin III
2001-11-29  0:33     ` Chris Wright
2001-11-29  1:23   ` William Lee Irwin III
2001-11-30  2:29     ` Robert Love
2001-12-02  6:59       ` William Lee Irwin III
2001-12-02  7:08         ` Anton Blanchard

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=20011126223822.N1048@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=linux-mips@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.