Re: [RFC][PATCH 3/3] alloc contig pages with migration.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Minchan Kim
Date: Saturday, October 16, 2010 - 9:05 pm

On Wed, Oct 13, 2010 at 12:18 PM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@jp.fujitsu.com> wrote:

I got found many typos but I don't pointed out each by each. :)
Please, correct typos in next version.


Could you add _range_ which can be specified by user into your TODO list?
Maybe some embedded system have a requirement to allocate contiguous
pages in some bank.
so guys try to allocate pages in some base address and if it fails, he
can try to next offset in same bank.
But it's very annoying. So let's add feature that user can specify
_range_ where user want to allocate.


As I said previous, how about "strict" or "ALLOC_FIXED" like MAP_FIXED?


Typo
whether


Why do you mention page_count() = 1?
Do users of this function have to know it?


Nitpick.
page migration is implementation, too. Do we need to mention it in here?
We might add page reclaim/or new feature in future or page migration
might be very light function although it is not a easy. :)
Let's not show the implementation for users.


I think this information is enough to users.


Couldn't we add handling of this exception?
If (hint != MAX_ORDER_ALIGH(hint) && no_search == true)
    return 0 or WARN_ON?


You increased hint before "break".
So if the no_search is true, this condition (found != hint) is always true.



Hmm.. as you mentioned, It would be better to remove many flush lru/per-cpu.
But in embedded system, it couldn't be a big overhead.


Thanks for the good patches, Kame.


-- 
Kind regards,
Minchan Kim
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 1/3] contigous big page allocator, KAMEZAWA Hiroyuki, (Tue Oct 12, 8:15 pm)
[RFC][PATCH 2/3] find a contiguous range., KAMEZAWA Hiroyuki, (Tue Oct 12, 8:17 pm)
[RFC][PATCH 3/3] alloc contig pages with migration., KAMEZAWA Hiroyuki, (Tue Oct 12, 8:18 pm)
Re: [RFC][PATCH 1/3] contigous big page allocator, KOSAKI Motohiro, (Tue Oct 12, 10:05 pm)
Re: [RFC][PATCH 1/3] contigous big page allocator, Andi Kleen, (Wed Oct 13, 12:01 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, KAMEZAWA Hiroyuki, (Wed Oct 13, 12:12 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Andi Kleen, (Wed Oct 13, 1:36 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, KAMEZAWA Hiroyuki, (Wed Oct 13, 1:39 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, KOSAKI Motohiro, (Wed Oct 13, 6:59 pm)
Re: [RFC][PATCH 1/3] contigous big page allocator, FUJITA Tomonori, (Thu Oct 14, 12:07 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Andi Kleen, (Thu Oct 14, 12:24 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, FUJITA Tomonori, (Thu Oct 14, 1:36 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Felipe Contreras, (Thu Oct 14, 5:09 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Felipe Contreras, (Thu Oct 14, 5:10 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Andi Kleen, (Thu Oct 14, 5:55 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, FUJITA Tomonori, (Thu Oct 14, 8:09 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, FUJITA Tomonori, (Thu Oct 14, 8:24 am)
Re: [RFC][PATCH 1/3] contigous big page allocator, Felipe Contreras, (Thu Oct 14, 2:50 pm)
Re: [RFC][PATCH 2/3] find a contiguous range., Minchan Kim, (Sat Oct 16, 8:18 pm)
Re: [RFC][PATCH 3/3] alloc contig pages with migration., Minchan Kim, (Sat Oct 16, 9:05 pm)
Re: [RFC][PATCH 2/3] find a contiguous range., KAMEZAWA Hiroyuki, (Sun Oct 17, 5:29 pm)
Re: [RFC][PATCH 3/3] alloc contig pages with migration., KAMEZAWA Hiroyuki, (Sun Oct 17, 5:35 pm)
Re: [RFC][PATCH 3/3] alloc contig pages with migration., Minchan Kim, (Sun Oct 17, 10:18 pm)
Re: [RFC][PATCH 3/3] alloc contig pages with migration., KAMEZAWA Hiroyuki, (Sun Oct 17, 10:52 pm)
Re: [RFC][PATCH 3/3] alloc contig pages with migration., Minchan Kim, (Sun Oct 17, 10:52 pm)