From: William Lee Irwin III <wli@holomorphy.com>
To: Thunder from the hill <thunder@ngforever.de>
Cc: Lightweight patch manager <patch@luckynet.dynu.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Daniel Phillips <phillips@bonn-fries.net>,
Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Subject: Re: linux-2.5.20-ct1
Date: Mon, 3 Jun 2002 21:40:02 -0700 [thread overview]
Message-ID: <20020604044002.GC8263@holomorphy.com> (raw)
In-Reply-To: <20020604042300.GA8263@holomorphy.com> <Pine.LNX.4.44.0206032228550.3833-100000@hawkeye.luckynet.adm>
On Mon, 3 Jun 2002, William Lee Irwin III wrote:
>> There were discussions about a number of these patches resulting in
>> changes, would you mind letting me know what versions of these things
>> you're pushing upstream and let me hand you updates?
On Mon, Jun 03, 2002 at 10:30:18PM -0600, Thunder from the hill wrote:
> Since you gave it no version number, it's exactly the version which is
> saved at
> <URL:ftp://luckynet.dynu.com/pub/linux/2.5.20-ct1/single-patches/>
> Usually the latest available.
Rusty Russell gave me copious assistance in clarifying and verifying the
effectiveness of the explanation given in updated buddy comment patches.
Please replace the version you've provided with the following.
Thanks,
Bill
===== mm/page_alloc.c 1.63 vs edited =====
--- 1.63/mm/page_alloc.c Tue May 28 16:57:49 2002
+++ edited/mm/page_alloc.c Mon Jun 3 15:21:55 2002
@@ -82,10 +82,13 @@
* at the bottom level available, and propagating the changes upward
* as necessary, plus some accounting needed to play nicely with other
* parts of the VM system.
- *
- * TODO: give references to descriptions of buddy system allocators,
- * describe precisely the silly trick buddy allocators use to avoid
- * storing an extra bit, utilizing entry point information.
+ * At each level, we keep one bit for each pair of blocks, which
+ * is set to 1 iff only one of the pair is allocated. So when we
+ * are allocating or freeing one, we can derive the state of the
+ * other. That is, if we allocate a small block, and both were
+ * free, the remainder of the region must be split into blocks.
+ * If a block is freed, and its buddy is also free, then this
+ * triggers coalescing into a block of larger size.
*
* -- wli
*/
next prev parent reply other threads:[~2002-06-04 4:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-04 3:58 linux-2.5.20-ct1 Lightweight patch manager
2002-06-04 4:23 ` linux-2.5.20-ct1 William Lee Irwin III
2002-06-04 4:30 ` linux-2.5.20-ct1 Thunder from the hill
2002-06-04 4:37 ` linux-2.5.20-ct1 William Lee Irwin III
2002-06-04 4:41 ` linux-2.5.20-ct1 Thunder from the hill
2002-06-04 4:48 ` linux-2.5.20-ct1 William Lee Irwin III
2002-06-04 16:48 ` linux-2.5.20-ct1 Robert Love
2002-06-04 16:58 ` linux-2.5.20-ct1 Thunder from the hill
2002-06-04 4:40 ` William Lee Irwin III [this message]
2002-06-04 4:41 ` linux-2.5.20-ct1 William Lee Irwin III
2002-06-04 4:42 ` linux-2.5.20-ct1 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=20020604044002.GC8263@holomorphy.com \
--to=wli@holomorphy.com \
--cc=kai@tp1.ruhr-uni-bochum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=patch@luckynet.dynu.com \
--cc=phillips@bonn-fries.net \
--cc=thunder@ngforever.de \
/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