[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <45975274.6020909@yahoo.com.au>
Date: Sun, 31 Dec 2006 17:02:28 +1100
From: Nick Piggin <nickpiggin@...oo.com.au>
To: Aubrey <aubreylee@...il.com>
CC: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: Page alignment issue
Aubrey wrote:
> As for the buddy system, much of docs mention the physical address of
> the first page frame of a block should be a multiple of the group
> size. For example, the initial address of a 16-page-frame block should
> be 16-page aligned. I happened to encounted an issue that the physical
> addresss pf the block is not 4-page aligned(0x36c9000) while the order
> of the block is 2. I want to know what out of buddy algorithm depend
> on this feature?
I think that's correct. The buddy allocator uses bitwise operations to
find buddy pages and promote free pairs (eg. see __page_find_buddy()
and __find_combined_index()).
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists