Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-12 Thread Dave Hansen
On 08/11/2013 07:25 PM, Minchan Kim wrote: > +int set_pinned_page(struct pin_page_owner *owner, > + struct page *page, void *private) > +{ > + struct pin_page_info *pinfo = kmalloc(sizeof(pinfo), GFP_KERNEL); > + > + INIT_HLIST_NODE(>hlist); > + pinfo->owner =

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-12 Thread Dave Hansen
On 08/11/2013 07:25 PM, Minchan Kim wrote: +int set_pinned_page(struct pin_page_owner *owner, + struct page *page, void *private) +{ + struct pin_page_info *pinfo = kmalloc(sizeof(pinfo), GFP_KERNEL); + + INIT_HLIST_NODE(pinfo-hlist); + pinfo-owner = owner;

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Minchan Kim
Hello Benjamin, On Sun, Aug 11, 2013 at 11:16:47PM -0400, Benjamin LaHaise wrote: > Hello Minchan, > > On Mon, Aug 12, 2013 at 11:25:35AM +0900, Minchan Kim wrote: > > Hello, > > > > On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: > > > Hi, > > > > > > Currently zbud pages

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Benjamin LaHaise
Hello Minchan, On Mon, Aug 12, 2013 at 11:25:35AM +0900, Minchan Kim wrote: > Hello, > > On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: > > Hi, > > > > Currently zbud pages are not movable and they cannot be allocated from CMA > > region. These patches try to address the

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Minchan Kim
Hello, On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Currently zbud pages are not movable and they cannot be allocated from CMA > region. These patches try to address the problem by: The zcache, zram and GUP pages for memory-hotplug and/or CMA are same

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Minchan Kim
Hello, On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: Hi, Currently zbud pages are not movable and they cannot be allocated from CMA region. These patches try to address the problem by: The zcache, zram and GUP pages for memory-hotplug and/or CMA are same situation.

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Benjamin LaHaise
Hello Minchan, On Mon, Aug 12, 2013 at 11:25:35AM +0900, Minchan Kim wrote: Hello, On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: Hi, Currently zbud pages are not movable and they cannot be allocated from CMA region. These patches try to address the problem by:

Re: [RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-11 Thread Minchan Kim
Hello Benjamin, On Sun, Aug 11, 2013 at 11:16:47PM -0400, Benjamin LaHaise wrote: Hello Minchan, On Mon, Aug 12, 2013 at 11:25:35AM +0900, Minchan Kim wrote: Hello, On Fri, Aug 09, 2013 at 12:22:16PM +0200, Krzysztof Kozlowski wrote: Hi, Currently zbud pages are not movable

[RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-09 Thread Krzysztof Kozlowski
Hi, Currently zbud pages are not movable and they cannot be allocated from CMA region. These patches try to address the problem by: 1. Adding a new form of reclaim of zbud pages. 2. Reclaiming zbud pages during migration and compaction. 3. Allocating zbud pages with __GFP_RECLAIMABLE flag. This

[RFC PATCH v2 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-09 Thread Krzysztof Kozlowski
Hi, Currently zbud pages are not movable and they cannot be allocated from CMA region. These patches try to address the problem by: 1. Adding a new form of reclaim of zbud pages. 2. Reclaiming zbud pages during migration and compaction. 3. Allocating zbud pages with __GFP_RECLAIMABLE flag. This