From: Dave Hansen <haveblue@us.ibm.com>
To: Hiroyuki KAMEZAWA <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
lhms <lhms-devel@lists.sourceforge.net>
Subject: Re: [RFC] buddy allocator without bitmap(2) [0/3]
Date: Tue, 31 Aug 2004 09:26:30 -0700 [thread overview]
Message-ID: <1093969590.26660.4806.camel@nighthawk> (raw)
In-Reply-To: <41345491.1020209@jp.fujitsu.com>
On Tue, 2004-08-31 at 03:36, Hiroyuki KAMEZAWA wrote:
> Disadvantage:
> - using one more PG_xxx flag.
> - If mem_map is not aligned, reserve one page as a victim for buddy allocater.
>
> How about this approach ?
Granted, we have some free wiggle room in page->flags right now, but
using another bit effectively shifts the entire benefit of your patch.
Instead of getting rid of the buddy bitmaps, you simply consume a
page->flag instead. While you don't have to allocate anything (because
of the page->flags use), the number of bits consumed in the operation is
still the same as before. And the patch is getting more complex by the
minute.
Something ate your patch:
* Global page accounting. One instance per CPU. Only unsigned longs are
@@ -290,6 +297,9 @@ extern unsigned long __read_page_state(u
#define SetPageCompound(page) set_bit(PG_compound, &(page)->flags)
#define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags)
+#define PageBuddyend(page) test_bit(PG_buddyend, &(page)->flags)
+#define SetPageBuddyend(page) set_bit(PG_buddyend, &(page)->flags)
+
#ifdef CONFIG_SWAP
#define PageSwapCache(page) test_bit(PG_swapcache, &(page)->flags)
#define SetPageSwapCache(page) set_bit(PG_swapcache, &(page)->flags)
-- Dave
WARNING: multiple messages have this Message-ID (diff)
From: Dave Hansen <haveblue@us.ibm.com>
To: Hiroyuki KAMEZAWA <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
lhms <lhms-devel@lists.sourceforge.net>
Subject: Re: [RFC] buddy allocator without bitmap(2) [0/3]
Date: Tue, 31 Aug 2004 09:26:30 -0700 [thread overview]
Message-ID: <1093969590.26660.4806.camel@nighthawk> (raw)
In-Reply-To: <41345491.1020209@jp.fujitsu.com>
On Tue, 2004-08-31 at 03:36, Hiroyuki KAMEZAWA wrote:
> Disadvantage:
> - using one more PG_xxx flag.
> - If mem_map is not aligned, reserve one page as a victim for buddy allocater.
>
> How about this approach ?
Granted, we have some free wiggle room in page->flags right now, but
using another bit effectively shifts the entire benefit of your patch.
Instead of getting rid of the buddy bitmaps, you simply consume a
page->flag instead. While you don't have to allocate anything (because
of the page->flags use), the number of bits consumed in the operation is
still the same as before. And the patch is getting more complex by the
minute.
Something ate your patch:
* Global page accounting. One instance per CPU. Only unsigned longs are
@@ -290,6 +297,9 @@ extern unsigned long __read_page_state(u
#define SetPageCompound(page) set_bit(PG_compound, &(page)->flags)
#define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags)
+#define PageBuddyend(page) test_bit(PG_buddyend, &(page)->flags)
+#define SetPageBuddyend(page) set_bit(PG_buddyend, &(page)->flags)
+
#ifdef CONFIG_SWAP
#define PageSwapCache(page) test_bit(PG_swapcache, &(page)->flags)
#define SetPageSwapCache(page) set_bit(PG_swapcache, &(page)->flags)
-- Dave
--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-08-31 16:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 10:36 [RFC] buddy allocator without bitmap(2) [0/3] Hiroyuki KAMEZAWA
2004-08-31 10:36 ` Hiroyuki KAMEZAWA
2004-08-31 16:26 ` Dave Hansen [this message]
2004-08-31 16:26 ` Dave Hansen
2004-08-31 22:44 ` [Lhms-devel] " Hiroyuki KAMEZAWA
2004-08-31 22:44 ` Hiroyuki KAMEZAWA
2004-08-31 23:24 ` Andrew Morton
2004-08-31 23:24 ` Andrew Morton
2004-08-31 23:53 ` Hiroyuki KAMEZAWA
2004-08-31 23:53 ` Hiroyuki KAMEZAWA
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=1093969590.26660.4806.camel@nighthawk \
--to=haveblue@us.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=lhms-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--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 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.